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-12-04T16:23:03.964Z",    "createdBy": {      "delete": true,      "id": 0,      "meta": {        "additionalProp": "Unknown Type: any"      },      "type": 0    },    "deletedAt": "2024-12-04T16:23:03.964Z",    "deletedBy": {      "delete": true,      "id": 0,      "meta": {        "additionalProp": "Unknown Type: any"      },