Skip to main content
PATCH
/
v0
/
operator
/
threads
/
{threadId}
Update Thread
curl --request PATCH \
  --url https://api.example.com/v0/operator/threads/{threadId}
import requests

url = "https://api.example.com/v0/operator/threads/{threadId}"

response = requests.patch(url)

print(response.text)
const options = {method: 'PATCH'};

fetch('https://api.example.com/v0/operator/threads/{threadId}', 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.example.com/v0/operator/threads/{threadId}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

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

func main() {

	url := "https://api.example.com/v0/operator/threads/{threadId}"

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

	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.example.com/v0/operator/threads/{threadId}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.example.com/v0/operator/threads/{threadId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)

response = http.request(request)
puts response.read_body
Update the resolution state of a thread. Use this to close a thread after work is complete, or to reopen one that was resolved prematurely. Requires user auth (ut_ token).

Path parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread to update

Request body

FieldTypeRequiredDescription
resolutionstringNoNew resolution state: "resolved" or "open"
curl -X PATCH https://api.tokenrip.com/v0/operator/threads/thr_01hx9r3k2mfgxyz5678efgh \
  -H "Authorization: Bearer ut_live_AbCdEfGhIjKlMnOpQrStUvWx" \
  -H "Content-Type: application/json" \
  -d '{
    "resolution": "resolved"
  }'

Example response

{
  "ok": true,
  "data": {
    "threadId": "thr_01hx9r3k2mfgxyz5678efgh",
    "resolution": "resolved",
    "updatedAt": "2026-04-13T10:05:00.000Z"
  }
}

Response fields

FieldTypeDescription
threadIdstringThe thread that was updated
resolutionstringThe new resolution state: "open" or "resolved"
updatedAtstringISO 8601 timestamp of the update
To dismiss a thread from the inbox without changing its resolution, use Dismiss Thread instead.