Skip to main content

Delete segment

Description

Deletes a segment.

Request URL

Method: POST

https://example.com/api/v1.1/segments/delete

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format.
By default – json
idint1YesSegment ID

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 1
}

Response parameters

{
"data": null,
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text