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, input?)
Needs the scopeaudiences:writeFrom a terminalopensend topics update

Input

id goes first, on its own, and the rest in one object. One object that holds id works too.

  • idstringRequired

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