Delete a segment
Use this method to delete a segment by ID.
Please log in to see full path URL. Learn why.
delete
/people/3/segments/{segmentId}
Authorizations:
Scopes:
Request rate limit:
5 requests / second (per account)
path Parameters
segmentId required | string Example: 42 A unique segment identifier. |
Responses
204
No Content
401
Unauthorized
403
Forbidden
404
Not Found
429
Too Many Requests
500
Internal Server Error
Request samples
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
Example
cURL
Copy
curl -L -g -X DELETE 'https://{baseUrl}/people/3/segments/42' \ -H 'Authorization: {authorization}' \ -H 'Accept: application/json'
Response samples
- 401
- 403
- 404
- 429
- 500
Content type
application/json
Copy
Collapse all {- "errorCode": "E401",
- "description": "The request lacks valid authentication credentials for the requested resource.",
- "action": "Check the resources and adjust authentication credentials.",
- "violations": [ ],
- "resources": [
]
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See