Rename audience
Gives an audience another name. Its contacts and its broadcasts stay as they are.
View as
opensend.audiences.update(id, input)Needs the scopeaudiences:writeFrom a terminal
opensend audiences updateInput
id goes first, on its own, and the rest in one object. One object that holds id works too.
idstringRequiredThe id of the item. Up to 64 characters.
namestringRequiredThe new name of the audience. Up to 120 characters.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"audience"Always
audience.idstringThe id of the audience.
namestringThe name of the audience.
contactsintegerHow many contacts are in it.
subscribedintegerHow many of them are subscribed.
unsubscribedintegerHow many of them have unsubscribed.
createdAtstringWhen the audience was made.