> 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/atualizacao-dos-dados-de-um-video-preexistente-utilizando-oauth.md).

# Atualização dos dados de um vídeo preexistente (utilizando OAuth)

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

#### Path Parameters

| Name                                               | Type   | Description                                       |
| -------------------------------------------------- | ------ | ------------------------------------------------- |
| identifierOrigin<mark style="color:red;">\*</mark> | String | identificador único do vídeo no sistema de origem |

#### Query Parameters

| Name              | Type   | Description                                                                                                                                                                                                                                                                  |
| ----------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| changeAssociation | String | flag para definir se é para alterar as associações entre o vídeo e os canais e playlists. Se definido como `true` TODAS as associações existentes e novas (caso desejado), devem ser enviadas juntamente com o vídeo. As associações que NÃO forem enviadas SERÃO removidas. |

#### Request Body

| Name                                    | Type          | Description                                                                                                                                                                                                          |
| --------------------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| video<mark style="color:red;">\*</mark> | videoMetadata | parâmetro do tipo `multipart` com as informações do vídeo a ser atualizado, conforme formato do tipo `videoMetadata`, definido na descrição dos serviços em [api-docs](https://eduplay.rnp.br/services/v3/api-docs). |

{% tabs %}
{% tab title="201: Created " %}

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

{% endtab %}

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

{% endtab %}

{% tab title="503: Service Unavailable " %}

{% endtab %}

{% tab title="500: Internal Server Error " %}

{% endtab %}

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

{% endtab %}
{% endtabs %}

**Considerações sobre os metadados para atualização do vídeo:**

* Apenas as informações de <mark style="color:red;">`title`</mark> e <mark style="color:red;">`keywords`</mark> são obrigatórias.
* Sempre enviar para o serviço todas as informações do vídeo, mesmo que não tenham sofrido alteração, pois as informações enviadas em branco são consideradas como remoção. As únicas exceções são as associações com playlists e canais que só serão alteradas/removidas se o parâmetro <mark style="color:red;">`changeAssociation`</mark> for definido com o valor <mark style="color:red;">`true`</mark>.
* Outros detalhes sobre os metadados estão descritos no endpoint [Publicação de novo vídeo](/eduplay/video-sob-demanda/manual-de-integracoes/api-para-integracao-com-o-eduplay/videos-pontos-de-integracao/publicacao-de-novo-video-utilizando-oauth.md).


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ajuda.rnp.br/eduplay/video-sob-demanda/manual-de-integracoes/api-para-integracao-com-o-eduplay/videos-pontos-de-integracao/atualizacao-dos-dados-de-um-video-preexistente-utilizando-oauth.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
