> For the complete documentation index, see [llms.txt](https://docs.w3lcome.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.w3lcome.com/blockedlist/update-a-person-on-the-blacklist.md).

# Update a Person on the Blocked List

## Update a person

<mark style="color:purple;">`PATCH`</mark> `https://api.w3lcome.com/v1/blockedlist/:id`

This endpoint allows you to update a person on the blocked list

#### Path Parameters

| Name | Type   | Description      |
| ---- | ------ | ---------------- |
| id   | string | ID of the person |

#### Headers

| Name           | Type   | Description      |
| -------------- | ------ | ---------------- |
| Content-Type   | string | application/JSON |
| Authentication | string | Basic `token`    |

#### Request Body

| Name     | Type   | Description |
| -------- | ------ | ----------- |
| name     | string |             |
| reason   | string |             |
| phone    | string |             |
| email    | string |             |
| document | string |             |
| cpf      | string |             |
| rg       | string |             |

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

```javascript
{
    "id": "dc08c9dc-7aaa-4356-8268-f265b91a1624",
    "name": "Alisson Enz Rossi",
    "type": "blacklist",
    "email": "alisson@w3lcome.com",
    "phone": "43999820420",
    "cpf": "99999999999",
    "rg": "11111111"
}
```

{% endtab %}

{% tab title="404 Error" %}

```javascript
{
    "type": "NOT_FOUND"
}
```

{% endtab %}
{% endtabs %}
