A repeat after success returns 404 or 409: treat that as done. About idempotency
Deletes the segment definition. Contacts it matched are not affected. Refused with one 409 IN_USE while a campaign not yet sent or cancelled (A/B tests included), an active or paused journey, or another segment uses it; details lists them in the shape of getSegmentUsage. Draft and ended journeys do not block it: a draft naming it cannot be activated until the rule is changed. Nor does a sent or cancelled campaign: its segmentId becomes null and audienceName keeps the segment name.
Path parameters
idstringrequired
The segment'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 segment was deleted.
409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.
We'd like to use Google Analytics cookies to understand how people use this site. You can accept or decline them. See our Cookie Policy.