Update tickets

The following API can be used to update tickets.

Path

PUT - https://<subdomain>.neetodesk.com/api/v1/public/tickets/[TICKET_NUMBER]

Headers

X-Api-Key (required): Contains a NeetoDesk API Key.

Parameters

Name

Description

email

Email address of the customer

subject

Subject for the ticket

description

Description for the ticket

status

Status for the tickets

priority

Priority for the ticket

resolution_due_date

Set resolution date for the ticket

category

Category for the ticket

ticket_fields

Custom ticket field values.

Example

Request

curl --request PUT \
  --url 'https://<subdomain>.neetodesk.com/api/v1/public/tickets/104' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: kWErpLb6Bmn9YY89KaUXfsZnaPtxMr1b3FvBKASyftxWdn66' \
  --data '{
  "status": "closed",
  "ticket_fields": {
    "Product Name": "Laptop Bag",
    "Return Reason": "My laptop does not fit in the bag.",
    "Days since order": 2,
    "Unused?": true,
    "Date of order": "1990-09-24",
    "City": "Mumbai",
    "Preferred Languages": ["Sanskrit", "Hindi"]
  }
}'

Response

{
  "ticket": {
    "id": "d21791e0-6074-435e-ab74-6d50bfd0c0e6",
    "number": 104,
    "subject": "How to resolve the pending invoices",
    "description": "<p>I need your help in resolving the pending Invoices</p>",
    "priority": "urgent",
    "status": "closed",
    "category": null
  }
}