Skip to main content

Add or remove profile

Description

Adds a profile to a static segment or removes a profile by ID (profile_id).

Request URL

Method: POST

Add a profile to a segment:https://example.com/api/v1.1/profiles/segstatic/add

Remove a profile from a segment:https://example.com/api/v1.1/profiles/segstatic/remove

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format
By default – json
segment_idint1YesStatic segment ID
db_idint1YesProfiles database ID
profile_idString"abcdefghijklmnqrstuvwxyz"YesProfile ID in the datebase
skip_triggersbooltrueNoDisables triggers and scenarios configured for events.
By default – false.

Request example

{    
"token": "abcdefghijklmnqrstuvwxyz",
"segment_id": 2,
"db_id": 8,
"profile_id": "abcdefghijklmnqrstuvwxyz",
"skip_triggers": true
}

Response example

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

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text