Skip to main content

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:
(UsernameHeaderPasswordHeader)
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 attachments[] form fields (multipart/form-data only). At most 5 files, 20 MB each.

Responses

Response Schema: application/json
required
object
id
required
string

Ticket id (32-character hex string). Send it as id to reply to the ticket.

action
required
string
Value: "created"

Request samples

Content type
Example
{
  "subject": "Badge printing issue",
  "description": "Screenshots of the error attached.",
  "attachments[]": [
    "(binary: error-1.png)",
    "(binary: error-2.png)"
  ]
}

Response samples

Content type
application/json
{
  • "data": {
    • "id": "00b4ea7ec4ead0cf827ba8e51c2aee0b",
    • "action": "created"
    }
}