Create a Ticket
WHR Support Ticket Create API — v1.1 (1.1.0)
Download OpenAPI specification:Download
Raise a new support ticket. Reply to it with the Support Ticket Reply API
(same endpoint, with id); read tickets with v1.1/support/ticket/{id} and v1.1/support/ticket/user.
Create a Ticket
Creates a ticket from subject and description (both required), with optional file attachments. Do not send id: with id the request is a reply (see the Support Ticket Reply API).
Authorizations:
Request Body schema: required
Send multipart/form-data to include files in attachments[]; without files, application/x-www-form-urlencoded works too.
| subject required | string <= 250 characters Ticket subject. It can not be changed later. |
| description required | string The opening message, at most 65000 bytes. |
| attachments[] | Array of strings <binary> <= 5 items [ items <binary > ] Files to attach to the opening message, sent as repeated |
Responses
Response Schema: application/json
required | object | ||||
| |||||
Request samples
- Payload
- cURL
- Python
- JavaScript
- PHP
{ "subject": "Badge printing issue", "description": "Screenshots of the error attached.", "attachments[]": [ "(binary: error-1.png)", "(binary: error-2.png)" ] }
Response samples
- 200
- 400
- 403
- 405
- 429
- 502
{- "data": {
- "id": "00b4ea7ec4ead0cf827ba8e51c2aee0b",
- "action": "created"
}
}