# Rename audience

`opensend audiences update`

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

Needs the scope: `audiences:write`

## Flags

- `<id>` (string, required): The id of the item. Up to 64 characters.
- `--name` (string, required): The new name of the audience. Up to 120 characters.

## Returns

The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. [Output and scripts](https://opensend.sh/docs/scripting) lists the codes.

- `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

CLI:

```bash
opensend audiences update 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"
}
```
