Delete a Custom Segment

​

Deletes a custom segment from the database

Query Parameters

  • Unique ID of the custom segment that will be deleted

Headers

  • Bearer token for admin authorization, who is making a call on behalf of the customer. Send the API key in the following format: "Authorization: Bearer BUSINESS_ADMIN_KEY_GOES_HERE".

  • Advertises which content types the client is able to understand

Responses

  • application/json
  • application/json
  • application/json
Request Example for delete/api2/dashboard/custom_segments
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/dashboard/custom_segments \
  --request DELETE \
  --header 'Authorization: Bearer BUSINESS_ADMIN_KEY_GOES_HERE' \
  --header 'Accept: application/json'
{
  "accepted": "Custom Segment Dummy Custom Segment has been marked for deletion"
}