Skip to the page

Update topic

Changes the name, the description or who sees a topic. What holds for a contact who never chose cannot be changed.

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

Flags

  • <id>stringRequired

    The id of the item. Up to 64 characters.

  • --namestring

    A new name. Up to 120 characters.

  • --descriptionstring

    A new description. Up to 300 characters.

  • --visibilitystring

    public or private.

    One ofpublicprivate

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"topic"

    Always topic.

  • idstring

    The id of the topic.

  • namestring

    The name of the topic, as readers see it.

  • descriptionstring

    What the topic is about, as readers see it. Empty when not set.

  • defaultSubscriptionstring

    What holds for a contact who never chose: opt_in, they get it, or opt_out, they do not.

    One ofopt_inopt_out

  • visibilitystring

    public when every reader sees the topic on the page where they manage their mail, private when only those who chose it do.

    One ofpublicprivate

  • subscriptionstring | null

    What the contact you listed the topics for gets: opt_in or opt_out. null when you named no contact.

    One ofopt_inopt_out

  • createdAtstring

    When the topic was made.