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

Department Config

  • Dark
    Light

Article summary

Department Config

You need the Manage departments permission to manage department configs.

Department Config JSON Format

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

NameTypeDescription
isEnabledboolWhether Department is enabled or not.

Get a single Department Config

GET global/departmentConfig

  • Parameters:

No Parameters

  • Response:

Department Config

  • Example

Sample Request:

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

Response:

HTTP/1.1 200 OK

{
  "isEnabled": true
} 

Disable the Department Config

POST global/departmentConfig:disable

  • Parameters:

No Parameters

  • Response:

Department Config

  • Example

Sample Request:

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

Response:

HTTP/1.1 200 OK

{
  "isEnabled": false
} 

Enable the Department Config

POST global/departmentConfig:enable

  • Parameters:

No Parameters

  • Response:

Department Config

  • Example

Sample Request:

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

Response:

HTTP/1.1 200 OK

{
  "isEnabled": true
} 

Was this article helpful?

What's Next