Segment Config
You need the Manage Settings permission to manage segment config.
Segment Config
- Segment Config Manage
GET livechat/segmentConfig
POST livechat/segmentConfig:disable
POST livechat/segmentConfig:enable
Model
Segment Config JSON Format
Segment Config is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
isEnabled |
bool | Whether segment config is enabled or not. |
Endpoint
Get a single Segment Config
GET livechat/segmentConfig
Example
Sample Request:
curl https://api15.comm100.io/v4/livechat/segmentConfig \
-X
'GET'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Disable the Segment Config
POST livechat/segmentConfig:disable
Example
Sample Request:
curl https://api15.comm100.io/v4/livechat/segmentConfig:disable \
-X
'POST'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Enable the Segment Config
POST livechat/segmentConfig:enable
Example
Sample Request:
curl https://api15.comm100.io/v4/livechat/segmentConfig:enable \
-X
'POST'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK