Delete segment
DELETE
https://api.flownally.com/v1/segments/{segmentId}Deletes a saved segment. Send the segment's current ETag in If-Match. A segment used by
a scheduled campaign cannot be deleted; the request returns 422
contacts_segment_campaign_in_use.
Authorization
Required scopes
- segment:delete
Allowed roles
- owner
- admin
Delete a saved contact segment.
Parameters
- Name
segmentId- Type
- path · string
- required
Segment ID.- Name
If-Match- Type
- header · string
Required to update or delete a segment. Supply one strong segmentETag, for example"seg_abc:3".
Responses
- 204Segment deleted
- 412The supplied
ETagis stale (contacts_segment_revision_mismatch).application/json - 428
If-Matchis missing (gateway_segment_if_match_required).application/json - defaultErrorapplication/json
Related schemas
Generated from the API spec.