> For the complete documentation index, see [llms.txt](https://docs.certdox.com.br/gateway-de-registros/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.certdox.com.br/gateway-de-registros/reference/notificacoes/atualizar-notificacao.md).

# Atualizar Notificação

Atualiza uma Notificação com Tipos de Notificação informados

<mark style="color:orange;">`PUT`</mark> `https://registroeletronico-homolog.cdxti.com.br/api/notifications/{id}`

#### Headers

| Name                                            | Type         | Description                              |
| ----------------------------------------------- | ------------ | ---------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | Bearer Token | Token gerado pelo método de autenticação |

#### Request Body

| Name                                                | Type   | Description                                                  |
| --------------------------------------------------- | ------ | ------------------------------------------------------------ |
| organization<mark style="color:red;">\*</mark>      | Object | Organização autorizada a realizar essa operação              |
| notificationTypes<mark style="color:red;">\*</mark> | Array  | Array contendo os tipos de notificação que serão habilitados |

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

```javascript
{
    "id": 204402,
    "organization": {
        "id": 1051,
        "identifier": "00000000000000",
        "name": "Organization XPTO"
    },
    "notificationTypes": [
        {
            "id": 203752
        },
        {
            "id": 203751
        },
        {
            "id": 203753
        }
    ]
}
```

{% endtab %}

{% tab title="401 Permission denied" %}

```json
{
    "type": "https://registroeletronico.certdox.com.br/problem/problem-with-message",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Full authentication is required to access this resource",
    "path": "/api/notifications",
    "message": "error.http.401"
}
```

{% endtab %}
{% endtabs %}

#### Organization - Schema

```json
{
    "identifier": "00000000000000" // CNPJ | String | Required | mix = 14, max = 14
}
```

#### Notification Type - Schema

```json
[
    {
        "id": 203751 // Id do Tipo de Notificação | Long | Required
    }
]
```

#### Exemplo de Payload Completo

```json
{
    "organization":{
         "identifier":"00000000000000"
    },
    "notificationTypes": [
        {
            "id": 203751
        },
        {
            "id": 203752
        },
        {
            "id": 203753
        }
    ]
}
```
