Documentation
Sign inGet started

Update an audience

PATCH
/v1/audiences/{audience_id}
await bird.audiences.update("adn_01krdgeqcxet5s7t44vh8rt9mg", { name: "Renamed" });
Updates an audience's name or description. Omitted fields are left unchanged; set description to null to clear it.
Parámetros
audience_id
string
ID of the audience to update (adn_-prefixed).
Cuerpo de la solicitud
name
string
New display name for the audience. Omit to keep the current name. The name cannot be cleared, and a whitespace-only value returns a validation error.
description
nullable string
Longer description of who this audience is. Set to null to clear.
Carga de respuesta
id
string
obligatorio
ID of the audience (adn_-prefixed), accepted by every operation that takes an audience_id.
name
string
obligatorio
Display name for the audience.
description
nullable string
Longer description of who this audience is.
type
string
obligatorio
How the audience's recipients are determined. static is an explicit member list you manage by adding and removing contacts.
Possible values: static
created_at
string
obligatorio
updated_at
string
obligatorio