Delete a topicMenu

Delete a topic

DELETE/v1/topics/{id}

Requires an API key with the topics:write scope. About keys and scopes

Works with integration and partner keys, not agent keys.

A repeat after success returns 404 or 409: treat that as done. About idempotency

Deletes a topic. Refused with 409 IN_USE while a campaign sends on it, and while rules name it, listed in details: campaigns not yet sent or cancelled whose rules or exclusions name it, or whose content has a block shown only to, or hidden from, its contacts (details.campaigns), goals not retired (details.goals), active or paused journeys (details.journeys), segments (details.segments), and templates (the draft or the published version) and shared blocks with such a block (details.templates, details.sharedBlocks), each listing up to 50, with details.hasMore when there are more. Ended journeys do not count. Consent changes keep its past changes. Every contact’s choices on the topic go with it, so agent keys are refused with 403.

Path parameters

idstringrequired

The topic's id.

uuid

Header parameters

Kirora-Workspacestringoptional

Partner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.

pattern ^[A-Za-z0-9._:-]{1,128}$

Returns

Returns 204 No Content with an empty body. It can also return 409 Conflict; see the statuses below. Otherwise returns an error; Errors lists every code and which to retry.

  • 204 No ContentThe topic was deleted.
  • 409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.