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

# Update a persona

> Changes a persona.

Fields you omit are unchanged. `job_titles` replaces the whole list.

A search uses each persona as it was when the search started. Changing a persona does not affect searches already running.

### Path parameters

**persona\_id** `string` *required*

The persona's `id`.

### Body

**name** `string | null`

A label for the persona.

Maximum 191 characters.

**job\_titles** `string[]`

Replaces the whole list of job titles.

**contacts\_per\_company** `integer`

How many contacts to find per company for this persona.

Range: 1 to 100.

**enrich\_emails** `boolean`

Look up an email address for each contact.

**enrich\_phones** `boolean`

Look up a phone number for each contact. Costs more than email.

**contact\_countries** `string[] | null`

Where the contacts are located, as ISO 3166-1 alpha-2 codes. `null` or empty means worldwide.

### Response

**`200`** The updated persona.

**object** `string` *required*

Always `persona`.

**id** `string` *required*

The persona's identifier. Use it in `persona_ids`.

**name** `string | null`

A label for the persona.

**job\_titles** `string[]` *required*

The job titles to look for at each company.

**contacts\_per\_company** `integer` *required*

How many contacts to find per company for this persona.

**enrich\_emails** `boolean` *required*

Whether to look up email addresses.

**enrich\_phones** `boolean` *required*

Whether to look up phone numbers.

**contact\_countries** `string[] | null`

Where the contacts are located, as ISO 3166-1 alpha-2 codes. This is the person's location, not the company's headquarters. `null` or empty means worldwide.

**created\_at** `string` *required*

When the persona was created.

**updated\_at** `string` *required*

When the persona was last changed.

### Errors

| Status | Code | When |
| - | - | - |
| `400` | `invalid_request` | The request is invalid. `details` names each problem. |
| `401` | `invalid_api_key` | The API key is missing, invalid or revoked. |
| `404` | `not_found` | No such object in this workspace. |
| `429` | `rate_limited` | Too many requests. Retry after `Retry-After` seconds. |
| `500` | `internal_error` | Something went wrong on our side. Retry with backoff, and with the same `Idempotency-Key` if you sent one. |

Every error uses the same shape. See [Errors](https://docs.data.avina.io/api-reference/errors.md).

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X PATCH https://api.avina.io/v1/personas/$PERSONA_ID \
  -H "Authorization: Bearer $AVINA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "job_titles": ["VP Sales", "CRO"]
  }'
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
import os
import requests

response = requests.patch(
    f"https://api.avina.io/v1/personas/{persona_id}",
    headers={"Authorization": f"Bearer {os.environ['AVINA_API_KEY']}"},
    json={
      "job_titles": ["VP Sales", "CRO"]
    },
)
response.raise_for_status()
print(response.json())
```

```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
const response = await fetch(`https://api.avina.io/v1/personas/${personaId}`, {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.AVINA_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "job_titles": ["VP Sales", "CRO"]
  }),
});
const data = await response.json();
console.log(data);
```

```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "object": "persona",
  "id": "c92d77d7-cc85-4a62-bcec-518b1d7d6260",
  "name": "Sales leaders",
  "job_titles": ["VP Sales", "CRO"],
  "contacts_per_company": 2,
  "enrich_emails": true,
  "enrich_phones": false,
  "contact_countries": ["US", "CA"],
  "created_at": "2026-10-05T17:02:11Z",
  "updated_at": "2026-11-12T09:30:00Z"
}
```

```json 400 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "error": {
    "code": "invalid_request",
    "message": "job_titles: must contain at least one title",
    "request_id": "req_8f2a61c09d4e7b3a5f10c2d8",
    "details": [
      {
        "field": "job_titles",
        "message": "must contain at least one title"
      }
    ]
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.