# Rename audience

`PATCH /v1/audiences/{id}`

Gives an audience another name. Its contacts and its broadcasts stay as they are.

Needs the scope: `audiences:write`

## Path parameters

- `id` (string, required): The id of the item. Up to 64 characters.

## Body parameters

- `name` (string, required): The new name of the audience. Up to 120 characters.

## Returns

- `object` ("audience"): Always `audience`.
- `id` (string): The id of the audience.
- `name` (string): The name of the audience.
- `contacts` (integer): How many contacts are in it.
- `subscribed` (integer): How many of them are subscribed.
- `unsubscribed` (integer): How many of them have unsubscribed.
- `createdAt` (string): When the audience was made.

## Example

cURL:

```bash
curl -X PATCH "$OPENSEND_API_URL/v1/audiences/aud_03" \
  -H "Authorization: Bearer $OPENSEND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Early access"
}'
```

TypeScript:

```ts
await opensend.audiences.update('aud_03', {
  name: 'Early access',
})
```

CLI:

```bash
opensend audiences update aud_03 --name 'Early access'
```

MCP:

```json
{
  "name": "audiences_update",
  "arguments": {
    "id": "aud_03",
    "name": "Early access"
  }
}
```

Answer:

```json
{
  "object": "audience",
  "id": "aud_03",
  "name": "Early access",
  "contacts": 248,
  "subscribed": 244,
  "unsubscribed": 4,
  "createdAt": "2026-11-22T09:30:00.000Z"
}
```
