Skip to main content
POST
/
cabinet
/
tickets
Create Ticket
curl --request POST \
  --url http://localhost:8080/cabinet/tickets \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "message": "<string>",
  "media_type": "<string>",
  "media_file_id": "<string>",
  "media_caption": "<string>"
}
'
{
  "id": 123,
  "title": "<string>",
  "status": "<string>",
  "priority": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "closed_at": "2023-11-07T05:31:56Z",
  "is_reply_blocked": false,
  "messages": []
}

Body

application/json

Request to create a new ticket.

title
string
required

Ticket title

Required string length: 3 - 255
message
string
required

Initial message

Required string length: 10 - 4000
media_type
string | null

Media type: photo, video, document

media_file_id
string | null

Telegram file_id of uploaded media

media_caption
string | null

Media caption

Maximum string length: 1000

Response

Successful Response

Ticket with all messages.

id
integer
required
title
string
required
status
string
required
priority
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
closed_at
string<date-time> | null
is_reply_blocked
boolean
default:false
messages
TicketMessageResponse · object[]