Segment Config
  • 16 Jun 2022
  • 1 Minute to read
  • Dark
    Light

Segment Config

  • Dark
    Light

Article Summary

Segment Config

You need the Manage Settings permission to manage segment config.

Segment Config JSON Format

Segment Config is represented as simple flat JSON objects with the following keys:

NameTypeDescription
isEnabledboolWhether segment config is enabled or not.

Get a single Segment Config

GET livechat/segmentConfig

  • Parameters:

No Parameters

  • Response:

Segment Config

  • Example

Sample Request:

curl https://api11.comm100.io/v4/livechat/segmentConfig \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "isEnabled": true
} 

Disable the Segment Config

POST livechat/segmentConfig:disable

  • Parameters:

No Parameters

  • Response:

Segment Config

  • Example

Sample Request:

curl https://api11.comm100.io/v4/livechat/segmentConfig:disable \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "isEnabled": false
} 

Enable the Segment Config

POST livechat/segmentConfig:enable

  • Parameters:

No Parameters

  • Response:

Segment Config

  • Example

Sample Request:

curl https://api11.comm100.io/v4/livechat/segmentConfig:enable \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "isEnabled": true
} 

Was this article helpful?