Private Canned Message Category
  • 16 Jun 2022
  • 2 Minutes to read
  • Dark
    Light

Private Canned Message Category

  • Dark
    Light

Article summary

Private Canned Message Category

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

Private Canned Message Category JSON Format

Private Canned Message Category is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idguidId of the canned message category.
namestringName of the canned message category.
parentIdguidParent of the canned message category.
createdByIdguidId of the agent who create the canned message category.
orderintegerOrder of the canned message category.

Get the list of Private Canned Message Categories

GET global/privateCannedMessageCategories

  • Parameters:

No Parameters

  • Response:

An array of Private Canned Message Category

  • Example

Sample Request:

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

Response:

HTTP/1.1 200 OK

[
  {
      "id": "3682aa0b-7b0f-49f8-84dc-ebf777b4b375",
      "name": "Chat Bot",
      "parentId": "97AF5329-7C46-EB11-8100-00155D081D0C",
      "createdById": "9a413cfe-792e-4abe-bc5e-8595640ddb3d",
      "order": 0
  }
] 

Get a single Private Canned Message Category

GET global/privateCannedMessageCategories/{id}

  • Parameters:

No Parameters

  • Response:

Private Canned Message Category

  • Example

Sample Request:

curl https://api11.comm100.io/v4/global/privateCannedMessageCategories/3682aa0b-7b0f-49f8-84dc-ebf777b4b375 \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "id": "3682aa0b-7b0f-49f8-84dc-ebf777b4b375",
  "name": "Chat Bot",
  "parentId": "97AF5329-7C46-EB11-8100-00155D081D0C",
  "createdById": "9a413cfe-792e-4abe-bc5e-8595640ddb3d",
  "order": 0
} 

Create a new Private Canned Message Category

POST global/privateCannedMessageCategories

  • Parameters:

NameTypeinRequiredDescription
namestringbodyyesName of the canned message category.
parentIdguidbodyyesParent of the canned message category.
createdByIdguidbodynoId of the agent who create the canned message category.
orderintegerbodynoOrder of the canned message category.
  • Response:

Private Canned Message Category

  • Example

Sample Request:

curl https://api11.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": "3682aa0b-7b0f-49f8-84dc-ebf777b4b375",
  "name": "Chat Bot",
  "parentId": "97AF5329-7C46-EB11-8100-00155D081D0C",
  "createdById": "9a413cfe-792e-4abe-bc5e-8595640ddb3d",
  "order": 0
} 

Update the Private Canned Message Category

PUT global/privateCannedMessageCategories/{id}

  • Parameters:

NameTypeinRequiredDescription
namestringbodyyesName of the canned message category.
parentIdguidbodyyesParent of the canned message category.
createdByIdguidbodynoId of the agent who create the canned message category.
orderintegerbodynoOrder of the canned message category.
  • Response:

Private Canned Message Category

  • Example

Sample Request:

curl https://api11.comm100.io/v4/global/privateCannedMessageCategories/3682aa0b-7b0f-49f8-84dc-ebf777b4b375 \ 
    -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": "3682aa0b-7b0f-49f8-84dc-ebf777b4b375",
  "name": "Chat Bot",
  "parentId": "97AF5329-7C46-EB11-8100-00155D081D0C",
  "createdById": "9a413cfe-792e-4abe-bc5e-8595640ddb3d",
  "order": 0
} 

Remove the Private Canned Message Category

DELETE global/privateCannedMessageCategories/{id}

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/global/privateCannedMessageCategories/3682aa0b-7b0f-49f8-84dc-ebf777b4b375 \ 
    -X 'DELETE' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 204 No Content


Was this article helpful?