> ## Documentation Index
> Fetch the complete documentation index at: https://docs.equalsmoney.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a persona's role

> Now that we've updated our persona's details, let's try updating their role.

# Step 6: update a persona's role

Now that we've updated our persona's details, let's try updating their role.

In this example, we're updating it to `Payer`.

<CodeGroup>
  ```bash Sandbox theme={null}
  curl -i -X PATCH \
    'https://api-sandbox.equalsmoney.com/v2/personas/{personaId}/role?accountId={accountId}' \
    -H 'Authorization: ApiKey {apiKey}' \
    -H 'Content-Type: application/json' \
    -d '{
      "roleName": "Payer"
    }'
  ```

  ```bash Production theme={null}
  curl -i -X PATCH \
    'https://api.equalsmoney.com/v2/personas/{personaId}/role?accountId={accountId}' \
    -H 'Authorization: ApiKey {apiKey}' \
    -H 'Content-Type: application/json' \
    -d '{
      "roleName": "Payer"
    }'
  ```
</CodeGroup>

If your request is successful, you'll receive a `200` response containing the name of the new role.

```json theme={null}
{
  "name": "Payer"
}
```
