Skip to main content
DELETE
/
v1
/
segments
/
{segmentId}
Delete Segment
curl --request DELETE \
  --url https://{cluster}.voucherify.io/v1/segments/{segmentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>'
{
  "code": 404,
  "key": "not_found",
  "message": "Resource not found",
  "details": "Cannot find segment with id seg_DNAOhUtJffvX0f57ajLMFBY",
  "request_id": "v-0ae3bb40409027cb63",
  "resource_id": "seg_DNAOhUtJffvX0f57ajLMFBY",
  "resource_type": "segment"
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

segmentId
string
required

A unique customer segment ID.

Example:

"seg_DNAOhUtJffvX0f57ajLMFBYR"

Response

Returns no content if deletion is successful.