> For the complete documentation index, see [llms.txt](https://docs.gestao.plus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gestao.plus/api/private/update_user_info.md).

# Atualizar Dados do Usuário

## Atualizar informações do usuário

<mark style="color:purple;">`PATCH`</mark> `https://api.gestao.plus/user/:id`

Esta rota permite que você atualize os dados de um determinado usuário, enviando os novos dados dentro do corpo da requisição.

#### Headers

| Name                                             | Type   | Description                                  |
| ------------------------------------------------ | ------ | -------------------------------------------- |
| Origin<mark style="color:red;">\*</mark>         | string | Origem da requisição.                        |
| Content-Type<mark style="color:red;">\*</mark>   | string | application/json                             |
| Authentication<mark style="color:red;">\*</mark> | string | Token de autenticação gerado durante o login |

#### Request Body

| Name                                      | Type   | Description   |
| ----------------------------------------- | ------ | ------------- |
| zipCode<mark style="color:red;">\*</mark> | string | CEP           |
| address<mark style="color:red;">\*</mark> | string | Novo endereço |

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

```
{
    "address": "My new address",
    "zipCode": "74000000",
    "_links": {
        "self": {
            "href": "https://api.gestao.plus/user/108"
        }
    }
}
```

{% endtab %}

{% tab title="400 " %}

```
{
    "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
    "title": "Bad Request",
    "status": 400,
    "detail": "You cannot change the field: fieldname"
}
```

{% endtab %}

{% tab title="401 " %}

```
```

{% endtab %}
{% endtabs %}
