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": []
}Create a new support 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": []
}Request to create a new ticket.
Ticket title
3 - 255Initial message
10 - 4000Media type: photo, video, document
Telegram file_id of uploaded media
Media caption
1000Successful Response
Ticket with all messages.