curl --request PATCH \
--url https://api.helpdesk.com/v1/tickets/{ticketID} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"author": {
"type": "client"
},
"status": "open",
"spam": true,
"subject": "Ticket subject",
"priority": -10,
"teamIDs": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
],
"requester": {
"email": "requester@email.com",
"name": "John Client"
},
"cc": [
{
"email": "cc@email.com",
"name": "John Client"
}
],
"tagIDs": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
],
"followers": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
],
"assignment": {
"team": {
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c"
},
"agent": {
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c"
}
},
"message": {
"text": "Hello from a ticket!",
"cannedResponseIDs": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
]
},
"isPrivate": true,
"transactionID": "050340e4-82de-4a2a-a1c4-724dfaf66cec",
"customFields": {
"order-id": "1234"
},
"actions": {
"list": [
{
"type": "assign",
"teamID": "5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b",
"randomAgent": true,
"roundRobin": true,
"agentID": "5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b"
}
],
"macroIDs": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
]
}
}
'import requests
url = "https://api.helpdesk.com/v1/tickets/{ticketID}"
payload = {
"author": { "type": "client" },
"status": "open",
"spam": True,
"subject": "Ticket subject",
"priority": -10,
"teamIDs": ["42e113f9-9353-4e89-9f68-69b92f423b0c"],
"requester": {
"email": "requester@email.com",
"name": "John Client"
},
"cc": [
{
"email": "cc@email.com",
"name": "John Client"
}
],
"tagIDs": ["42e113f9-9353-4e89-9f68-69b92f423b0c"],
"followers": ["42e113f9-9353-4e89-9f68-69b92f423b0c"],
"assignment": {
"team": { "ID": "42e113f9-9353-4e89-9f68-69b92f423b0c" },
"agent": { "ID": "42e113f9-9353-4e89-9f68-69b92f423b0c" }
},
"message": {
"text": "Hello from a ticket!",
"cannedResponseIDs": ["42e113f9-9353-4e89-9f68-69b92f423b0c"]
},
"isPrivate": True,
"transactionID": "050340e4-82de-4a2a-a1c4-724dfaf66cec",
"customFields": { "order-id": "1234" },
"actions": {
"list": [
{
"type": "assign",
"teamID": "5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b",
"randomAgent": True,
"roundRobin": True,
"agentID": "5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b"
}
],
"macroIDs": ["42e113f9-9353-4e89-9f68-69b92f423b0c"]
}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
author: {type: 'client'},
status: 'open',
spam: true,
subject: 'Ticket subject',
priority: -10,
teamIDs: ['42e113f9-9353-4e89-9f68-69b92f423b0c'],
requester: {email: 'requester@email.com', name: 'John Client'},
cc: [{email: 'cc@email.com', name: 'John Client'}],
tagIDs: ['42e113f9-9353-4e89-9f68-69b92f423b0c'],
followers: ['42e113f9-9353-4e89-9f68-69b92f423b0c'],
assignment: {
team: {ID: '42e113f9-9353-4e89-9f68-69b92f423b0c'},
agent: {ID: '42e113f9-9353-4e89-9f68-69b92f423b0c'}
},
message: {
text: 'Hello from a ticket!',
cannedResponseIDs: ['42e113f9-9353-4e89-9f68-69b92f423b0c']
},
isPrivate: true,
transactionID: '050340e4-82de-4a2a-a1c4-724dfaf66cec',
customFields: {'order-id': '1234'},
actions: {
list: [
{
type: 'assign',
teamID: '5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b',
randomAgent: true,
roundRobin: true,
agentID: '5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b'
}
],
macroIDs: ['42e113f9-9353-4e89-9f68-69b92f423b0c']
}
})
};
fetch('https://api.helpdesk.com/v1/tickets/{ticketID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.helpdesk.com/v1/tickets/{ticketID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'author' => [
'type' => 'client'
],
'status' => 'open',
'spam' => true,
'subject' => 'Ticket subject',
'priority' => -10,
'teamIDs' => [
'42e113f9-9353-4e89-9f68-69b92f423b0c'
],
'requester' => [
'email' => 'requester@email.com',
'name' => 'John Client'
],
'cc' => [
[
'email' => 'cc@email.com',
'name' => 'John Client'
]
],
'tagIDs' => [
'42e113f9-9353-4e89-9f68-69b92f423b0c'
],
'followers' => [
'42e113f9-9353-4e89-9f68-69b92f423b0c'
],
'assignment' => [
'team' => [
'ID' => '42e113f9-9353-4e89-9f68-69b92f423b0c'
],
'agent' => [
'ID' => '42e113f9-9353-4e89-9f68-69b92f423b0c'
]
],
'message' => [
'text' => 'Hello from a ticket!',
'cannedResponseIDs' => [
'42e113f9-9353-4e89-9f68-69b92f423b0c'
]
],
'isPrivate' => true,
'transactionID' => '050340e4-82de-4a2a-a1c4-724dfaf66cec',
'customFields' => [
'order-id' => '1234'
],
'actions' => [
'list' => [
[
'type' => 'assign',
'teamID' => '5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b',
'randomAgent' => true,
'roundRobin' => true,
'agentID' => '5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b'
]
],
'macroIDs' => [
'42e113f9-9353-4e89-9f68-69b92f423b0c'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.helpdesk.com/v1/tickets/{ticketID}"
payload := strings.NewReader("{\n \"author\": {\n \"type\": \"client\"\n },\n \"status\": \"open\",\n \"spam\": true,\n \"subject\": \"Ticket subject\",\n \"priority\": -10,\n \"teamIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"requester\": {\n \"email\": \"requester@email.com\",\n \"name\": \"John Client\"\n },\n \"cc\": [\n {\n \"email\": \"cc@email.com\",\n \"name\": \"John Client\"\n }\n ],\n \"tagIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"followers\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"assignment\": {\n \"team\": {\n \"ID\": \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n },\n \"agent\": {\n \"ID\": \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n }\n },\n \"message\": {\n \"text\": \"Hello from a ticket!\",\n \"cannedResponseIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ]\n },\n \"isPrivate\": true,\n \"transactionID\": \"050340e4-82de-4a2a-a1c4-724dfaf66cec\",\n \"customFields\": {\n \"order-id\": \"1234\"\n },\n \"actions\": {\n \"list\": [\n {\n \"type\": \"assign\",\n \"teamID\": \"5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b\",\n \"randomAgent\": true,\n \"roundRobin\": true,\n \"agentID\": \"5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b\"\n }\n ],\n \"macroIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.helpdesk.com/v1/tickets/{ticketID}")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"author\": {\n \"type\": \"client\"\n },\n \"status\": \"open\",\n \"spam\": true,\n \"subject\": \"Ticket subject\",\n \"priority\": -10,\n \"teamIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"requester\": {\n \"email\": \"requester@email.com\",\n \"name\": \"John Client\"\n },\n \"cc\": [\n {\n \"email\": \"cc@email.com\",\n \"name\": \"John Client\"\n }\n ],\n \"tagIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"followers\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"assignment\": {\n \"team\": {\n \"ID\": \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n },\n \"agent\": {\n \"ID\": \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n }\n },\n \"message\": {\n \"text\": \"Hello from a ticket!\",\n \"cannedResponseIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ]\n },\n \"isPrivate\": true,\n \"transactionID\": \"050340e4-82de-4a2a-a1c4-724dfaf66cec\",\n \"customFields\": {\n \"order-id\": \"1234\"\n },\n \"actions\": {\n \"list\": [\n {\n \"type\": \"assign\",\n \"teamID\": \"5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b\",\n \"randomAgent\": true,\n \"roundRobin\": true,\n \"agentID\": \"5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b\"\n }\n ],\n \"macroIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.helpdesk.com/v1/tickets/{ticketID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"author\": {\n \"type\": \"client\"\n },\n \"status\": \"open\",\n \"spam\": true,\n \"subject\": \"Ticket subject\",\n \"priority\": -10,\n \"teamIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"requester\": {\n \"email\": \"requester@email.com\",\n \"name\": \"John Client\"\n },\n \"cc\": [\n {\n \"email\": \"cc@email.com\",\n \"name\": \"John Client\"\n }\n ],\n \"tagIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"followers\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"assignment\": {\n \"team\": {\n \"ID\": \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n },\n \"agent\": {\n \"ID\": \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n }\n },\n \"message\": {\n \"text\": \"Hello from a ticket!\",\n \"cannedResponseIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ]\n },\n \"isPrivate\": true,\n \"transactionID\": \"050340e4-82de-4a2a-a1c4-724dfaf66cec\",\n \"customFields\": {\n \"order-id\": \"1234\"\n },\n \"actions\": {\n \"list\": [\n {\n \"type\": \"assign\",\n \"teamID\": \"5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b\",\n \"randomAgent\": true,\n \"roundRobin\": true,\n \"agentID\": \"5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b\"\n }\n ],\n \"macroIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c",
"licenseID": 13381337,
"createdAt": "2026-06-30T22:02:08.901Z",
"createdBy": "f56caf69-3f05-4386-9567-fdc909d7ad77",
"createdByType": "agent",
"updatedAt": "2026-06-30T22:02:08.901Z",
"updatedBy": "f56caf69-3f05-4386-9567-fdc909d7ad77",
"shortID": "IIPZGJ",
"lastMessageAt": "2026-06-30T22:02:08.901Z",
"parentTicket": {
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c",
"shortID": "IIPZGJ",
"subject": "Parent ticket subject"
},
"childTickets": [
{
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c",
"shortID": "IIPZGJ",
"subject": "Child ticket subject"
}
],
"status": "open",
"priority": -10,
"subject": "Ticket subject",
"teamIDs": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
],
"requester": {
"email": "",
"name": ""
},
"cc": [
{
"email": "cc@email.com",
"name": "John Client"
}
],
"tagIDs": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
],
"followers": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
],
"assignment": {
"team": {
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c",
"name": ""
},
"agent": {
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c",
"name": ""
}
},
"integration": {
"type": "livechat",
"referenceType": "",
"referenceURL": "",
"referenceID": ""
},
"customFields": {
"order-id": "1234"
},
"ratingRequeestSent": true,
"rating": {
"rate": "good",
"comment": "",
"requestedAt": "2026-06-30T22:02:08.901Z"
},
"silo": "tickets",
"spam": {
"status": true,
"reason": "licenseBlackList"
},
"source": {
"type": "api"
},
"events": [
{
"type": "message"
}
],
"integrations": {
"type": "livechat",
"externalID": ""
},
"detectedLanguage": ""
}Update ticket
curl --request PATCH \
--url https://api.helpdesk.com/v1/tickets/{ticketID} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"author": {
"type": "client"
},
"status": "open",
"spam": true,
"subject": "Ticket subject",
"priority": -10,
"teamIDs": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
],
"requester": {
"email": "requester@email.com",
"name": "John Client"
},
"cc": [
{
"email": "cc@email.com",
"name": "John Client"
}
],
"tagIDs": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
],
"followers": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
],
"assignment": {
"team": {
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c"
},
"agent": {
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c"
}
},
"message": {
"text": "Hello from a ticket!",
"cannedResponseIDs": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
]
},
"isPrivate": true,
"transactionID": "050340e4-82de-4a2a-a1c4-724dfaf66cec",
"customFields": {
"order-id": "1234"
},
"actions": {
"list": [
{
"type": "assign",
"teamID": "5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b",
"randomAgent": true,
"roundRobin": true,
"agentID": "5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b"
}
],
"macroIDs": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
]
}
}
'import requests
url = "https://api.helpdesk.com/v1/tickets/{ticketID}"
payload = {
"author": { "type": "client" },
"status": "open",
"spam": True,
"subject": "Ticket subject",
"priority": -10,
"teamIDs": ["42e113f9-9353-4e89-9f68-69b92f423b0c"],
"requester": {
"email": "requester@email.com",
"name": "John Client"
},
"cc": [
{
"email": "cc@email.com",
"name": "John Client"
}
],
"tagIDs": ["42e113f9-9353-4e89-9f68-69b92f423b0c"],
"followers": ["42e113f9-9353-4e89-9f68-69b92f423b0c"],
"assignment": {
"team": { "ID": "42e113f9-9353-4e89-9f68-69b92f423b0c" },
"agent": { "ID": "42e113f9-9353-4e89-9f68-69b92f423b0c" }
},
"message": {
"text": "Hello from a ticket!",
"cannedResponseIDs": ["42e113f9-9353-4e89-9f68-69b92f423b0c"]
},
"isPrivate": True,
"transactionID": "050340e4-82de-4a2a-a1c4-724dfaf66cec",
"customFields": { "order-id": "1234" },
"actions": {
"list": [
{
"type": "assign",
"teamID": "5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b",
"randomAgent": True,
"roundRobin": True,
"agentID": "5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b"
}
],
"macroIDs": ["42e113f9-9353-4e89-9f68-69b92f423b0c"]
}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
author: {type: 'client'},
status: 'open',
spam: true,
subject: 'Ticket subject',
priority: -10,
teamIDs: ['42e113f9-9353-4e89-9f68-69b92f423b0c'],
requester: {email: 'requester@email.com', name: 'John Client'},
cc: [{email: 'cc@email.com', name: 'John Client'}],
tagIDs: ['42e113f9-9353-4e89-9f68-69b92f423b0c'],
followers: ['42e113f9-9353-4e89-9f68-69b92f423b0c'],
assignment: {
team: {ID: '42e113f9-9353-4e89-9f68-69b92f423b0c'},
agent: {ID: '42e113f9-9353-4e89-9f68-69b92f423b0c'}
},
message: {
text: 'Hello from a ticket!',
cannedResponseIDs: ['42e113f9-9353-4e89-9f68-69b92f423b0c']
},
isPrivate: true,
transactionID: '050340e4-82de-4a2a-a1c4-724dfaf66cec',
customFields: {'order-id': '1234'},
actions: {
list: [
{
type: 'assign',
teamID: '5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b',
randomAgent: true,
roundRobin: true,
agentID: '5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b'
}
],
macroIDs: ['42e113f9-9353-4e89-9f68-69b92f423b0c']
}
})
};
fetch('https://api.helpdesk.com/v1/tickets/{ticketID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.helpdesk.com/v1/tickets/{ticketID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'author' => [
'type' => 'client'
],
'status' => 'open',
'spam' => true,
'subject' => 'Ticket subject',
'priority' => -10,
'teamIDs' => [
'42e113f9-9353-4e89-9f68-69b92f423b0c'
],
'requester' => [
'email' => 'requester@email.com',
'name' => 'John Client'
],
'cc' => [
[
'email' => 'cc@email.com',
'name' => 'John Client'
]
],
'tagIDs' => [
'42e113f9-9353-4e89-9f68-69b92f423b0c'
],
'followers' => [
'42e113f9-9353-4e89-9f68-69b92f423b0c'
],
'assignment' => [
'team' => [
'ID' => '42e113f9-9353-4e89-9f68-69b92f423b0c'
],
'agent' => [
'ID' => '42e113f9-9353-4e89-9f68-69b92f423b0c'
]
],
'message' => [
'text' => 'Hello from a ticket!',
'cannedResponseIDs' => [
'42e113f9-9353-4e89-9f68-69b92f423b0c'
]
],
'isPrivate' => true,
'transactionID' => '050340e4-82de-4a2a-a1c4-724dfaf66cec',
'customFields' => [
'order-id' => '1234'
],
'actions' => [
'list' => [
[
'type' => 'assign',
'teamID' => '5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b',
'randomAgent' => true,
'roundRobin' => true,
'agentID' => '5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b'
]
],
'macroIDs' => [
'42e113f9-9353-4e89-9f68-69b92f423b0c'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.helpdesk.com/v1/tickets/{ticketID}"
payload := strings.NewReader("{\n \"author\": {\n \"type\": \"client\"\n },\n \"status\": \"open\",\n \"spam\": true,\n \"subject\": \"Ticket subject\",\n \"priority\": -10,\n \"teamIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"requester\": {\n \"email\": \"requester@email.com\",\n \"name\": \"John Client\"\n },\n \"cc\": [\n {\n \"email\": \"cc@email.com\",\n \"name\": \"John Client\"\n }\n ],\n \"tagIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"followers\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"assignment\": {\n \"team\": {\n \"ID\": \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n },\n \"agent\": {\n \"ID\": \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n }\n },\n \"message\": {\n \"text\": \"Hello from a ticket!\",\n \"cannedResponseIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ]\n },\n \"isPrivate\": true,\n \"transactionID\": \"050340e4-82de-4a2a-a1c4-724dfaf66cec\",\n \"customFields\": {\n \"order-id\": \"1234\"\n },\n \"actions\": {\n \"list\": [\n {\n \"type\": \"assign\",\n \"teamID\": \"5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b\",\n \"randomAgent\": true,\n \"roundRobin\": true,\n \"agentID\": \"5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b\"\n }\n ],\n \"macroIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.helpdesk.com/v1/tickets/{ticketID}")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"author\": {\n \"type\": \"client\"\n },\n \"status\": \"open\",\n \"spam\": true,\n \"subject\": \"Ticket subject\",\n \"priority\": -10,\n \"teamIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"requester\": {\n \"email\": \"requester@email.com\",\n \"name\": \"John Client\"\n },\n \"cc\": [\n {\n \"email\": \"cc@email.com\",\n \"name\": \"John Client\"\n }\n ],\n \"tagIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"followers\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"assignment\": {\n \"team\": {\n \"ID\": \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n },\n \"agent\": {\n \"ID\": \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n }\n },\n \"message\": {\n \"text\": \"Hello from a ticket!\",\n \"cannedResponseIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ]\n },\n \"isPrivate\": true,\n \"transactionID\": \"050340e4-82de-4a2a-a1c4-724dfaf66cec\",\n \"customFields\": {\n \"order-id\": \"1234\"\n },\n \"actions\": {\n \"list\": [\n {\n \"type\": \"assign\",\n \"teamID\": \"5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b\",\n \"randomAgent\": true,\n \"roundRobin\": true,\n \"agentID\": \"5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b\"\n }\n ],\n \"macroIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.helpdesk.com/v1/tickets/{ticketID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"author\": {\n \"type\": \"client\"\n },\n \"status\": \"open\",\n \"spam\": true,\n \"subject\": \"Ticket subject\",\n \"priority\": -10,\n \"teamIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"requester\": {\n \"email\": \"requester@email.com\",\n \"name\": \"John Client\"\n },\n \"cc\": [\n {\n \"email\": \"cc@email.com\",\n \"name\": \"John Client\"\n }\n ],\n \"tagIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"followers\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ],\n \"assignment\": {\n \"team\": {\n \"ID\": \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n },\n \"agent\": {\n \"ID\": \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n }\n },\n \"message\": {\n \"text\": \"Hello from a ticket!\",\n \"cannedResponseIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ]\n },\n \"isPrivate\": true,\n \"transactionID\": \"050340e4-82de-4a2a-a1c4-724dfaf66cec\",\n \"customFields\": {\n \"order-id\": \"1234\"\n },\n \"actions\": {\n \"list\": [\n {\n \"type\": \"assign\",\n \"teamID\": \"5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b\",\n \"randomAgent\": true,\n \"roundRobin\": true,\n \"agentID\": \"5f4b1f3b-4b7b-4b7b-8b7b-4b7b4b7b4b7b\"\n }\n ],\n \"macroIDs\": [\n \"42e113f9-9353-4e89-9f68-69b92f423b0c\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c",
"licenseID": 13381337,
"createdAt": "2026-06-30T22:02:08.901Z",
"createdBy": "f56caf69-3f05-4386-9567-fdc909d7ad77",
"createdByType": "agent",
"updatedAt": "2026-06-30T22:02:08.901Z",
"updatedBy": "f56caf69-3f05-4386-9567-fdc909d7ad77",
"shortID": "IIPZGJ",
"lastMessageAt": "2026-06-30T22:02:08.901Z",
"parentTicket": {
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c",
"shortID": "IIPZGJ",
"subject": "Parent ticket subject"
},
"childTickets": [
{
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c",
"shortID": "IIPZGJ",
"subject": "Child ticket subject"
}
],
"status": "open",
"priority": -10,
"subject": "Ticket subject",
"teamIDs": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
],
"requester": {
"email": "",
"name": ""
},
"cc": [
{
"email": "cc@email.com",
"name": "John Client"
}
],
"tagIDs": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
],
"followers": [
"42e113f9-9353-4e89-9f68-69b92f423b0c"
],
"assignment": {
"team": {
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c",
"name": ""
},
"agent": {
"ID": "42e113f9-9353-4e89-9f68-69b92f423b0c",
"name": ""
}
},
"integration": {
"type": "livechat",
"referenceType": "",
"referenceURL": "",
"referenceID": ""
},
"customFields": {
"order-id": "1234"
},
"ratingRequeestSent": true,
"rating": {
"rate": "good",
"comment": "",
"requestedAt": "2026-06-30T22:02:08.901Z"
},
"silo": "tickets",
"spam": {
"status": true,
"reason": "licenseBlackList"
},
"source": {
"type": "api"
},
"events": [
{
"type": "message"
}
],
"integrations": {
"type": "livechat",
"externalID": ""
},
"detectedLanguage": ""
}Authorizations
Use your account ID as the username and your personal access token (PAT) as the password, or pass a Base64-encoded value directly in the Authorization header. For more information, see the personal access tokens guide.
Path Parameters
Unique object identifier
"42e113f9-9353-4e89-9f68-69b92f423b0c"
Body
Show child attributes
Show child attributes
Ticket status
open, pending, onhold, solved, closed Is ticket a spam ticket.
"Ticket subject"
| Value | Priority |
|---|---|
| -10 | low |
| 0 | medium |
| 10 | high |
| 20 | urgent |
-10, 0, 10, 20 Teams that can access the ticket
Unique object identifier
Show child attributes
Show child attributes
List of people in the loop
Show child attributes
Show child attributes
List of ticket tags
Unique object identifier
List of ticket followers (agents)
Unique object identifier
Team / agent assignment
Show child attributes
Show child attributes
Add new message to the ticket
- Option 1
- Option 2
Show child attributes
Show child attributes
Is the new message a private message.
References transaction containing uploaded attachments used in ticket's message content.
Object with custom fields values, where key is custom fields apiKey.
{ "order-id": "1234" }
Apply actions to the ticket.
Show child attributes
Show child attributes
Response
Successful response.
Unique object identifier.
Unique account identifier.
The time of creation.
The creator identifier.
The creator type.
agent, client, system The time of last modification.
The modification author identifier.
The short ticket ID.
The time of last public message.
The parent ticket reference.
Show child attributes
Show child attributes
The merged ticket reference.
Show child attributes
Show child attributes
Ticket status
open, pending, onhold, solved, closed | Value | Priority |
|---|---|
| -10 | low |
| 0 | medium |
| 10 | high |
| 20 | urgent |
-10, 0, 10, 20 The teams that can access the ticket.
Unique object identifier
Ticket requester
Show child attributes
Show child attributes
A list of people in the loop.
Show child attributes
Show child attributes
A list of ticket tags.
Unique object identifier
A list of ticket followers (agents).
Unique object identifier
Team / agent assignment
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Object with custom fields values, where key is custom fields apiKey.
{ "order-id": "1234" }
Has rating request been sent.
Ticket rating
Show child attributes
Show child attributes
Ticket silo (folder). Please check ticket silos section for more information
tickets, archive, trash, spam Show child attributes
Show child attributes
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
The ticket events.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
Show child attributes
Show child attributes
- Option 1
- Option 2
Show child attributes
Show child attributes
The detected language code.
Was this page helpful?