Skip to main content
PUT/tickets/:id/

Update ticket

You can update a specific ticket.

Attributes

Optional unless marked required

custom_idstring
The unique identifier for the ticket which is provided by the client.
idintegerrequired
A unique identifier for the ticket which is given by User automatically.
assigned_tointeger
A unique identifier for the agent which is given by User automatically.
attachmentsobject
An attachment for a ticket (gif, jpg, pdf).
company_idinteger
A unique identifier for the company which is given by User automatically.
descriptionstringrequired
A ticket description.
due_datestring
A date in the future by which the task should be completed. Compliance with ISO 8601 standard format.
namestringrequired
A ticket name.
participantsinteger
A list of users' ids.
priorityinteger
A priority of your ticket.
statusstring
A current status of the ticket (draft, active, closed or archived).
user_idinteger
A unique identifier for the user which is given by User automatically.

Request​

curl -X PUT "https://<your_app_subdomain>.user.com/api/public/tickets/:id/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2" \
-H "Content-Type: application/json" \
-d '{
"name": "Login page error on Safari",
"description": "Happens on Safari 17 only.",
"status": "active"
}'

Response examples​

{
"id": 398,
"name": "Login page error on Safari",
"custom_id": "login-page-error",
"description": "Happens on Safari 17 only.",
"status": "active",
"due_date": "2026-11-24T13:24:16Z",
"assigned_to": 9,
"user_id": 1909,
"company_id": 778,
"participants": [],
"priority": 1
}

Response fields​

Fields returned in the 200 OK response body.

idinteger
A unique identifier for the ticket which is given by User automatically.
namestring
A ticket name.
custom_idstring
The unique identifier for the ticket which is provided by the client.
descriptionstring
A ticket description.
statusstring
A current status of the ticket (draft, active, closed or archived).
due_datestring (date-time)
A date in the future by which the task should be completed. Compliance with ISO 8601 standard format.
assigned_tointeger
A unique identifier for the agent which is given by User automatically.
user_idinteger
A unique identifier for the user which is given by User automatically.
company_idinteger
A unique identifier for the company which is given by User automatically.
participantsarray
A list of users' ids.
priorityinteger
A priority of your ticket.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.