Skip to main content
POST
/
tickets
/
{ticket_id}
/
reply
Reply To Ticket
curl --request POST \
  --url http://localhost:8080/tickets/{ticket_id}/reply \
  --header 'Content-Type: application/json' \
  --data '
{
  "message_text": "<string>",
  "media_type": "<string>",
  "media_file_id": "<string>",
  "media_caption": "<string>"
}
'
{
  "ticket": {
    "id": 123,
    "user_id": 123,
    "title": "<string>",
    "status": "<string>",
    "priority": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "user_reply_block_permanent": true,
    "closed_at": "2023-11-07T05:31:56Z",
    "user_reply_block_until": "2023-11-07T05:31:56Z",
    "messages": [
      {
        "id": 123,
        "user_id": 123,
        "message_text": "<string>",
        "is_from_admin": true,
        "has_media": true,
        "created_at": "2023-11-07T05:31:56Z",
        "media_type": "<string>",
        "media_file_id": "<string>",
        "media_caption": "<string>"
      }
    ]
  },
  "message": {
    "id": 123,
    "user_id": 123,
    "message_text": "<string>",
    "is_from_admin": true,
    "has_media": true,
    "created_at": "2023-11-07T05:31:56Z",
    "media_type": "<string>",
    "media_file_id": "<string>",
    "media_caption": "<string>"
  }
}

Path Parameters

ticket_id
integer
required

Body

application/json
message_text
string | null
Maximum string length: 4000
media_type
string | null

Тип медиа (photo, video, document, voice и т.д.)

Maximum string length: 32
media_file_id
string | null
Maximum string length: 255
media_caption
string | null
Maximum string length: 4000

Response

Successful Response

ticket
TicketResponse · object
required
message
TicketMessageResponse · object
required