Skip to the page

Rename audience

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

opensend audiences update <id> [flags]
Needs the scopeaudiences:write
Changes data

Flags

  • <id>stringRequired

    The id of the item. Up to 64 characters.

  • --namestringRequired

    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 lists the codes.

  • object"audience"

    Always audience.

  • idstring

    The id of the audience.

  • namestring

    The name of the audience.

  • contactsinteger

    How many contacts are in it.

  • subscribedinteger

    How many of them are subscribed.

  • unsubscribedinteger

    How many of them have unsubscribed.

  • createdAtstring

    When the audience was made.