POST/desk/api/v2/cannedresponses.json

Create a new cannedresponse.

Body Params

CannedResponseAPIBody handles request/response for a single canned response

    • Name
      cannedresponse
      Type
      object
      Description
      CannedResponse is a stored response that agents can provide to customers for common inquiries.s
    • Name
      included
      Type
      object
      Description
      Included allows adding referenced objects on the API response. The included keys should map to the `types` in the Relationship slices/objects.

    Responses

    • Code
      201
      Type
      object
      Schema
      Description
      201 Created
      CannedResponseAPIBody handles request/response for a single canned response
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
      Validator hold the validation errors. Typically you shouldn't create this directly but use the New() function.

    Examples

    201 Created

    CannedResponseAPIBody
    {  "cannedresponse": {    "createdAt": "2024-07-26T20:26:26.473Z",    "createdBy": {      "delete": true,      "id": 0,      "meta": {},      "type": 0    },    "deletedAt": "2024-07-26T20:26:26.473Z",    "deletedBy": {      "delete": true,      "id": 0,      "meta": {},      "type": 0    },    "files": [      {