Global_PrivateCannedMessageCategory

You need Manage Private Canned Messages permission to manage the private canned message categories.

Global_PrivateCannedMessageCategories
- Global_PrivateCannedMessageCategories Manage
GET global/privateCannedMessageCategories
GET global/privateCannedMessageCategories/{id}
POST global/privateCannedMessageCategories
PUT global/privateCannedMessageCategories/{id}
DELETE global/privateCannedMessageCategories/{id}
Model
Global_PrivateCannedMessageCategory JSON Format

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

Name Type Description
id guid Id of the canned message category.
name string Name of the canned message category.
parentId guid Parent of the canned message category.
createdById guid Id of the agent who create the canned message category.
order integer Order of the canned message category.
Endpoint
Get the list of Global_PrivateCannedMessageCategories

GET global/privateCannedMessageCategories

Parameters:
No Parameters
Response:
Example

Sample Request:

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

Response:

 HTTP/1.1 200 OK

[{"id":"b3842363-483d-4ebd-944c-2bbaac9144d3","name":"Chat Bot","parentId":"97AF5329-7C46-EB11-8100-00155D081D0C","createdById":"9a413cfe-792e-4abe-bc5e-8595640ddb3d","order":0}]
Get a single Global_PrivateCannedMessageCategory

GET global/privateCannedMessageCategories/{id}

Parameters:
No Parameters
Response:
Example

Sample Request:

curl https://api15.comm100.io/v4/global/privateCannedMessageCategories/b3842363-483d-4ebd-944c-2bbaac9144d3 \
-X 'GET' \
-H 'Authorization: Bearer {access_token}' \

Response:

 HTTP/1.1 200 OK

{"id":"b3842363-483d-4ebd-944c-2bbaac9144d3","name":"Chat Bot","parentId":"97AF5329-7C46-EB11-8100-00155D081D0C","createdById":"9a413cfe-792e-4abe-bc5e-8595640ddb3d","order":0}
Create a new Global_PrivateCannedMessageCategory

POST global/privateCannedMessageCategories

Parameters:
Name Type In Required Description
name string body yes Name of the canned message category.
parentId guid body yes Parent of the canned message category.
createdById guid body no Id of the agent who create the canned message category.
order integer body no Order of the canned message category.
Response:
Example

Sample Request:

curl https://api15.comm100.io/v4/global/privateCannedMessageCategories \
-X 'POST' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-D '{"name":"Chat Bot","parentId":"97AF5329-7C46-EB11-8100-00155D081D0C","createdById":"9a413cfe-792e-4abe-bc5e-8595640ddb3d","order":0}'

Response:

 HTTP/1.1 201 Created

{"id":"b3842363-483d-4ebd-944c-2bbaac9144d3","name":"Chat Bot","parentId":"97AF5329-7C46-EB11-8100-00155D081D0C","createdById":"9a413cfe-792e-4abe-bc5e-8595640ddb3d","order":0}
Update the Global_PrivateCannedMessageCategory

PUT global/privateCannedMessageCategories/{id}

Parameters:
Name Type In Required Description
name string body yes Name of the canned message category.
parentId guid body yes Parent of the canned message category.
createdById guid body no Id of the agent who create the canned message category.
order integer body no Order of the canned message category.
Response:
Example

Sample Request:

curl https://api15.comm100.io/v4/global/privateCannedMessageCategories/b3842363-483d-4ebd-944c-2bbaac9144d3 \
-X 'PUT' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-D '{"name":"Chat Bot","parentId":"97AF5329-7C46-EB11-8100-00155D081D0C","createdById":"9a413cfe-792e-4abe-bc5e-8595640ddb3d","order":0}'

Response:

 HTTP/1.1 200 OK

{"id":"b3842363-483d-4ebd-944c-2bbaac9144d3","name":"Chat Bot","parentId":"97AF5329-7C46-EB11-8100-00155D081D0C","createdById":"9a413cfe-792e-4abe-bc5e-8595640ddb3d","order":0}
Remove the Global_PrivateCannedMessageCategory

DELETE global/privateCannedMessageCategories/{id}

Parameters:
No Parameters
Response:

No Content

Example

Sample Request:

curl https://api15.comm100.io/v4/global/privateCannedMessageCategories/b3842363-483d-4ebd-944c-2bbaac9144d3 \
-X 'DELETE' \
-H 'Authorization: Bearer {access_token}' \

Response:

 HTTP/1.1 204 No Content