Update a ticket

이 페이지는 아직 한국어 언어로 제공되지 않습니다. 기본 언어(English)로 표시합니다.

Update a ticket

PUThttps://api.cekat.ai/api/tickets/{id}

Updates a ticket. Send only the fields you want to change. field_values updates only the fields you include and keeps the others.

Authorization

api_keystringheaderrequired

Your Cekat API key, from Settings → Developers & API in the Cekat dashboard.

Authorizationstringheader

Alternative to api_key: send the same key as Bearer YOUR_API_KEY.

Path parameters

idstring<uuid>required

Body application/jsonrequired

titlestring
descriptionstring
statusstring

A status ID from the ticket's board, or done.

priorityinteger
Available options: 0, 1, 2, 3
field_valuesTicketFieldValue[]
Show child attributes
field_namestring

The field's name from the ticket template.

field_valueany

The value. Its format depends on the field type.

assigned_tostring[]
attachmentsstring[]
conversation_idstring<uuid>

Response

202
400
401
404
429

Ticket updated. log lists the changes recorded in the ticket history.

messagestring
dataTicket

A ticket. List responses also include the template, products and conversation. Additional fields may be present.

Show child attributes
idstring<uuid>
public_ticket_idinteger

The ticket number shown in Cekat.

board_idstring<uuid>
ticket_template_idstring<uuid>
titlestring
descriptionstring | null
statusstring

A status ID from the board's statuses, or done.

priorityinteger

0 Low, 1 Medium, 2 High, 3 Urgent.

Available options: 0, 1, 2, 3
field_valuesTicketFieldValue[]
Show child attributes
field_namestring

The field's name from the ticket template.

field_valueany

The value. Its format depends on the field type.

assigned_tostring[]

Agent IDs assigned to the ticket.

attachmentsstring[]
conversation_idstring<uuid> | null
created_bystring | null
created_atstring<date-time>
updated_atstring<date-time>
logobject[]
labelsany

Labels added to the linked conversation, if any.

The status isn't on the ticket's board, or a field value is invalid.

successboolean
messagestring
statusCodeinteger
errorobject
Show child attributes
messagestring
correlationIdstring

Request ID. Include it when contacting Cekat support.

The API key is missing or invalid.

successboolean
messagestring
statusCodeinteger
errorobject
Show child attributes
messagestring
correlationIdstring

Request ID. Include it when contacting Cekat support.

The resource was not found or does not belong to your business.

successboolean
messagestring
statusCodeinteger
errorobject
Show child attributes
messagestring
correlationIdstring

Request ID. Include it when contacting Cekat support.

Rate limit exceeded. Wait and retry.

messagestring
PUT/api/tickets/{id}
cURL
JavaScript
Python
PHP
curl --request PUT \
  --url 'https://api.cekat.ai/api/tickets/3c90c3cc-0d44-4b50-8888-8dd25736052a' \
  --header 'api_key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "description": "<string>",
  "status": "<string>",
  "priority": 0,
  "field_values": [
    {
      "field_name": "example_name",
      "field_value": "<string>"
    }
  ],
  "assigned_to": [
    "<string>"
  ],
  "attachments": [
    "<string>"
  ],
  "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
const response = await fetch('https://api.cekat.ai/api/tickets/3c90c3cc-0d44-4b50-8888-8dd25736052a', {
  method: 'PUT',
  headers: { 'api_key': 'YOUR_API_KEY', 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "title": "<string>",
    "description": "<string>",
    "status": "<string>",
    "priority": 0,
    "field_values": [
      {
        "field_name": "example_name",
        "field_value": "<string>"
      }
    ],
    "assigned_to": [
      "<string>"
    ],
    "attachments": [
      "<string>"
    ],
    "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  })
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.cekat.ai/api/tickets/3c90c3cc-0d44-4b50-8888-8dd25736052a"
headers = {"api_key": "YOUR_API_KEY"}
payload = {
    "title": "<string>",
    "description": "<string>",
    "status": "<string>",
    "priority": 0,
    "field_values": [
        {
            "field_name": "example_name",
            "field_value": "<string>"
        }
    ],
    "assigned_to": [
        "<string>"
    ],
    "attachments": [
        "<string>"
    ],
    "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

response = requests.put(url, headers=headers, json=payload)
print(response.json())
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://api.cekat.ai/api/tickets/3c90c3cc-0d44-4b50-8888-8dd25736052a',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'PUT',
  CURLOPT_HTTPHEADER => ['api_key: YOUR_API_KEY', 'Content-Type: application/json'],
  CURLOPT_POSTFIELDS => json_encode([
    'title' => '<string>',
    'description' => '<string>',
    'status' => '<string>',
    'priority' => 0,
    'field_values' => [[
      'field_name' => 'example_name',
      'field_value' => '<string>'
    ]],
    'assigned_to' => ['<string>'],
    'attachments' => ['<string>'],
    'conversation_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
  ]),
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
Response
202
400
401
404
429
{
  "message": "<string>",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "public_ticket_id": 1,
    "board_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "ticket_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "<string>",
    "description": "<string>",
    "status": "<string>",
    "priority": 0,
    "field_values": [
      {
        "field_name": "example_name",
        "field_value": "<string>"
      }
    ],
    "assigned_to": [
      "<string>"
    ],
    "attachments": [
      "<string>"
    ],
    "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_by": "<string>",
    "created_at": "2026-01-15T09:30:00Z",
    "updated_at": "2026-01-15T09:30:00Z"
  },
  "log": [
    {}
  ],
  "labels": "<string>"
}
{
  "success": true,
  "message": "<string>",
  "statusCode": 1,
  "error": {
    "message": "<string>"
  },
  "correlationId": "<string>"
}
{
  "success": true,
  "message": "<string>",
  "statusCode": 1,
  "error": {
    "message": "<string>"
  },
  "correlationId": "<string>"
}
{
  "success": true,
  "message": "<string>",
  "statusCode": 1,
  "error": {
    "message": "<string>"
  },
  "correlationId": "<string>"
}
{
  "message": "<string>"
}