cURL
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" }
This method deletes a customer segment.
The access token received from the authorization server in the OAuth 2.0 flow.
A unique customer segment ID.
"seg_DNAOhUtJffvX0f57ajLMFBYR"
Returns no content if deletion is successful.
Was this page helpful?