curl --request PATCH \
--url 'https://api.example.com/api/threads/{id}' \
--header 'x-widget-token: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"status": "pending"
}'
{
"thread": {},
"messages": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"sender": "string",
"text": "Two-person tent, green — replacement for damaged pole set.",
"timestamp": "2026-08-31T14:22:05Z"
}
]
}
Update a thread
Update a thread
PATCH
/
api
/
threads
/
{id}
curl --request PATCH \
--url 'https://api.example.com/api/threads/{id}' \
--header 'x-widget-token: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"status": "pending"
}'
{
"thread": {},
"messages": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"sender": "string",
"text": "Two-person tent, green — replacement for damaged pole set.",
"timestamp": "2026-08-31T14:22:05Z"
}
]
}
Path parameters
string
required
Thread id
Request body
ThreadPatch
string
e.g.
closedResponse
ThreadWithMessages
object
required
Status codes
| Code | Meaning |
|---|---|
200 | OK |
400 | Error |
401 | Error |
curl --request PATCH \
--url 'https://api.example.com/api/threads/{id}' \
--header 'x-widget-token: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"status": "pending"
}'
{
"thread": {},
"messages": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"sender": "string",
"text": "Two-person tent, green — replacement for damaged pole set.",
"timestamp": "2026-08-31T14:22:05Z"
}
]
}
Last modified on August 31, 2026