> For the complete documentation index, see [llms.txt](https://ajuda.rnp.br/eduplay/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.rnp.br/eduplay/video-sob-demanda/manual-de-integracoes/api-para-integracao-com-o-eduplay/videos-pontos-de-integracao/contabilizacao-de-acessos-a-video-ao-longo-da-visualizacao-com-o-identificador-no-eduplay.md).

# Contabilização de acessos a vídeo ao longo da visualização com o identificador no eduplay

<mark style="color:green;">`POST`</mark> `https://eduplay.rnp.br/services/video/{idVideo}/view/overtime`

#### Path Parameters

| Name                                      | Type | Description                             |
| ----------------------------------------- | ---- | --------------------------------------- |
| idVideo<mark style="color:red;">\*</mark> | Long | identificador único do vídeo no eduplay |

#### Headers

| Name                                           | Type   | Description                                                                                |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------------------ |
| content-type<mark style="color:red;">\*</mark> | String | deve ser definido como <mark style="color:red;">`application/x-www-form-urlencoded`</mark> |

#### Request Body

| Name                                        | Type    | Description                                                                                                                                                                                                                                                                                                                                                          |
| ------------------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| uip<mark style="color:red;">\*</mark>       | String  | IP do usuário que acessou o vídeo.                                                                                                                                                                                                                                                                                                                                   |
| partView<mark style="color:red;">\*</mark>  | Integer | número da parte assistida do vídeo. Esse parâmetro aceita valores de 0 a 8, sendo 0 (zero) corresponde ao evento de play no vídeo e os demais valores correspodentes a fração do vídeo assistido, considerando a divisão da duração do vídeo em 8 partes;                                                                                                            |
| timestamp<mark style="color:red;">\*</mark> | Long    | tempo, em millisegundos, em que o acesso foi coletado                                                                                                                                                                                                                                                                                                                |
| timezone<mark style="color:red;">\*</mark>  | Integer | timezone associado a timestamp de coleta                                                                                                                                                                                                                                                                                                                             |
| userAgent<mark style="color:red;">\*</mark> | String  | user agent a partir do qual o vídeo foi acessado pelo usuário                                                                                                                                                                                                                                                                                                        |
| sessionId<mark style="color:red;">\*</mark> | String  | identificador único associado ao usuário que acessou, de forma a permitir identificar requisições de usuários distintos. No eduplay, consideramos o sessionId como identificador de usuário distinto, porém esse parâmetro pode ser utilizado para enviar qualquer outro tipo de identificador que faça sentido para aplicação que está consumindo o fluxo de vídeo. |

{% tabs %}
{% tab title="200: OK " %}

```
<returnMessage>
	<operationCode>CODIGO_DA_OPERACAO_DE_SUCESSO_OU_ERRO</operationCode>
	<message>MENSAGEM_EXPLICATIVA</message>
</returnMessage>
```

{% endtab %}

{% tab title="403: Forbidden " %}

{% endtab %}

{% tab title="404: Not Found " %}

{% endtab %}

{% tab title="412: Precondition Failed " %}

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ajuda.rnp.br/eduplay/video-sob-demanda/manual-de-integracoes/api-para-integracao-com-o-eduplay/videos-pontos-de-integracao/contabilizacao-de-acessos-a-video-ao-longo-da-visualizacao-com-o-identificador-no-eduplay.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
