POST/desk/api/v2/tickets/:ticketId/messages.json

Reply to ticket

Body Params

    • Name
      TicketID
      Type
      integer
    • Name
      agent
      Type
      object
    • Name
      bcc
      Type
      array
    • Name
      cc
      Type
      array
    • Name
      editMethod
      Type
      string
    • Name
      excludeHistory
      Type
      boolean
      Description
      Deprecated. Default true. Backend does not need to construct ticket history anymore, frontend sends it as part of the body both for child tickets and old style forwarding. When we are sure there is no issue with this approach this option and related code can be deleted.
    • Name
      files
      Type
      array
    • Name
      forwardedThreads
      Type
      array
    • Name
      isDraft
      Type
      boolean
    • Name
      isPinned
      Type
      boolean
    • Name
      latestLocalThread
      Type
      object
    • Name
      mentions
      Type
      array
    • Name
      message
      Type
      string
    • Name
      sendFrom
      Type
      string
    • Name
      status
      Type
      object
    • Name
      threadType
      Type
      integer
      Description
      Default: message
    • Name
      to
      Type
      array

    Responses

    • Code
      201
      Type
      object
      Schema
      Description
      201 Created
      TicketAPIBody is the request/response format for the API
    • 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.
    • Code
      404
      Type
      object
      Schema
      Description
      404 Not Found
      Error represents an occurrence of an error in the API.

    Examples

    201 Created

    TicketAPIBody
    {  "delayed": true,  "included": {    "addresses": [      {        "city": "string",        "country": "string",        "firstLine": "string",        "id": 0,        "postalCode": "string",        "secondLine": "string",        "state": "string"      }    ],    "agentsnotified": [      {        "autoFollowOnCC": true,        "avatarURL": "string",