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.

PATCH/v1/topics/{id}
Needs the scopeaudiences:write

Path parameters

  • idstringRequired

    The id of the item. Up to 64 characters.

Body parameters

  • namestring

    A new name. Up to 120 characters.

  • descriptionstring

    A new description. Up to 300 characters.

  • visibilitystring

    public or private.

    One ofpublicprivate

Returns

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