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
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
format | string | "json" | No | Response data format By default – json |
segment_id | int | 1 | Yes | Static segment ID |
db_id | int | 1 | Yes | Profiles database ID |
profile_id | String | "abcdefghijklmnqrstuvwxyz" | Yes | Profile ID in the datebase |
skip_triggers | bool | true | No | Disables triggers and scenarios configured for events. By default – false. |
Request example
- JSON
- XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"segment_id": 2,
"db_id": 8,
"profile_id": "abcdefghijklmnqrstuvwxyz",
"skip_triggers": true
}
<xml>
<token>0</token>
<segment_id>2</segment_id>
<db_id>8</db_id>
<profile_id>abcdefghijklmnqrstuvwxyz</profile_id>
<skip_triggers>true</skip_triggers>
</xml>
Response example
- JSON
- XML
{
"error": 0,
"error_text": "Successful operation"
}
<xml>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>
Response parameters
Parameter | Type | Description |
---|---|---|
error | int | Error code |
error_text | string | Error text |