# Update ticket

You can update a specific ticket.

PUT /tickets/:id/

Attributes Type Required Description
custom_id string no The unique identifier for the ticket which is provided by the client.
id integer yes A unique identifier for the ticket which is given by User.com automatically.
assigned_to integer no A unique identifier for the agent which is given by User.com automatically.
attachments object no An attachment for a ticket (gif, jpg, pdf).
company integer no A unique identifier for the company which is given by User.com automatically.
description string no A ticket description.
due_date string no A date in the future by which the task should be completed. Compliance with ISO 8601 standard format.
name string no A ticket name.
participants integer no A list of users' ids.
priority integer no A priority of your ticket.
status string no A current status of the ticket (draft, active, closed or archived).
person integer no A unique identifier for the user which is given by User.com automatically.

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
  curl -X PUT
    "https://<your_app_subdomain>.user.com/api/public/tickets/"
    -H 'Authorization: Token <your_64_char_api_key>'
    -H 'Content-Type: application/json'
    -d '{
      "name": "New Ticket",
      "custom_id": "new-ticket",
      "description": "Example from REST API",
      "status": "draft",
      "due_date": "2020-11-25T00:00:00Z",
      "assigned_to": 1,
      "person": 123,
      "company": 42,
      "participants": [1, 2, 3],
      "priority": 1
  }'

# Response

  {
      "name": "New Ticket",
      "custom_id": "new-ticket",
      "description": "Example from REST API",
      "status": "draft",
      "due_date": "2020-11-25T00:00:00Z",
      "assigned_to": 1,
      "person": 123,
      "company": 42,
      "participants": [1, 2, 3],
      "priority": 1
  }