Skip to main content
PATCH
/
support
/
tickets
/
{id}
Update ticket status
curl --request PATCH \
  --url https://xquik.com/api/v1/support/tickets/{id} \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "status": "<string>"
}
'
import requests

url = "https://xquik.com/api/v1/support/tickets/{id}"

payload = { "status": "<string>" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "<content-type>"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': '<content-type>'},
body: JSON.stringify({status: '<string>'})
};

fetch('https://xquik.com/api/v1/support/tickets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://xquik.com/api/v1/support/tickets/{id}"

payload := strings.NewReader("{\n \"status\": \"<string>\"\n}")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "<content-type>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
Free - does not consume credits
Support tickets are free for all authenticated users.
curl -X PATCH https://xquik.com/api/v1/support/tickets/tkt_a1b2c3d4e5f6a1b2c3d4e5f6 \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "resolved"
  }' | jq
const ticketId = "tkt_a1b2c3d4e5f6a1b2c3d4e5f6";
const response = await fetch(`https://xquik.com/api/v1/support/tickets/${ticketId}`, {
  method: "PATCH",
  headers: {
    "x-api-key": "xq_YOUR_KEY_HERE",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    status: "resolved",
  }),
});
const data = await response.json();
import requests

ticket_id = "tkt_a1b2c3d4e5f6a1b2c3d4e5f6"
response = requests.patch(
    f"https://xquik.com/api/v1/support/tickets/{ticket_id}",
    headers={"x-api-key": "xq_YOUR_KEY_HERE"},
    json={"status": "resolved"},
)
data = response.json()
package main

import (
    "bytes"
    "encoding/json"
    "fmt"
    "net/http"
)

func main() {
    ticketID := "tkt_a1b2c3d4e5f6a1b2c3d4e5f6"
    body, _ := json.Marshal(map[string]interface{}{
        "status": "resolved",
    })

    req, err := http.NewRequest("PATCH", "https://xquik.com/api/v1/support/tickets/"+ticketID, bytes.NewReader(body))
    if err != nil {
        panic(err)
    }
    req.Header.Set("x-api-key", "xq_YOUR_KEY_HERE")
    req.Header.Set("Content-Type", "application/json")

    resp, err := http.DefaultClient.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    var data map[string]interface{}
    if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
        panic(err)
    }
    fmt.Println(data)
}

Path parameters

id
string
required
The ticket public ID (e.g. tkt_a1b2c3d4e5f6a1b2c3d4e5f6). Returned when you create a ticket or list tickets.

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Content-Type
string
required
Must be application/json.

Body

status
string
required
New status. One of: open, resolved, closed. The in_progress status is set by support staff and cannot be set via the API.

Response

publicId
string
Unique ticket public ID.
status
string
Updated ticket status.
{
  "publicId": "tkt_a1b2c3d4e5f6a1b2c3d4e5f6",
  "status": "resolved"
}
Related: Get Ticket to fetch ticket details and message history, or Reply to Ticket to add a message.
Last modified on May 6, 2026