curl --request PATCH \
--url https://api.statisfy.com/v1/conversations/{conversation_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"add_tags": [
1073741824
],
"assignee_id": "<string>",
"remove_tags": [
1073741824
],
"status_id": 1073741824
}
'import requests
url = "https://api.statisfy.com/v1/conversations/{conversation_id}"
payload = {
"add_tags": [1073741824],
"assignee_id": "<string>",
"remove_tags": [1073741824],
"status_id": 1073741824
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
add_tags: [1073741824],
assignee_id: '<string>',
remove_tags: [1073741824],
status_id: 1073741824
})
};
fetch('https://api.statisfy.com/v1/conversations/{conversation_id}', 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.statisfy.com/v1/conversations/{conversation_id}",
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([
'add_tags' => [
1073741824
],
'assignee_id' => '<string>',
'remove_tags' => [
1073741824
],
'status_id' => 1073741824
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.statisfy.com/v1/conversations/{conversation_id}"
payload := strings.NewReader("{\n \"add_tags\": [\n 1073741824\n ],\n \"assignee_id\": \"<string>\",\n \"remove_tags\": [\n 1073741824\n ],\n \"status_id\": 1073741824\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.statisfy.com/v1/conversations/{conversation_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"add_tags\": [\n 1073741824\n ],\n \"assignee_id\": \"<string>\",\n \"remove_tags\": [\n 1073741824\n ],\n \"status_id\": 1073741824\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/conversations/{conversation_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"add_tags\": [\n 1073741824\n ],\n \"assignee_id\": \"<string>\",\n \"remove_tags\": [\n 1073741824\n ],\n \"status_id\": 1073741824\n}"
response = http.request(request)
puts response.read_body{
"activity_id": "<string>",
"ai": {
"participated": true,
"closed_by": "ai_judged",
"resolution": "resolved"
},
"created_at": "<string>",
"id": "<string>",
"updated_at": "<string>",
"account_id": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"assignee": {
"id": "<string>",
"name": "<string>",
"type": "user"
},
"channel": "portal",
"close_reason": "answered",
"closed_at": "<string>",
"customer_told_at": "<string>",
"draft": {
"id": "<string>",
"title": "<string>",
"type": "<string>",
"agent_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
},
"engineering_issue": {
"key": "<string>",
"state": "open",
"synced_at": "<string>",
"title": "<string>",
"tracker": "linear",
"url": "<string>"
},
"first_reply_at": "<string>",
"held": false,
"kind": "customer_success",
"last_message_at": "<string>",
"loop_in": {
"has_draft": true,
"open": true,
"sent": true,
"title": "<string>",
"finished_by": "<string>",
"sent_as_worker": true
},
"outcome": "knowledge",
"priority": "normal",
"reopen_count": 0,
"reply_due": {
"due_at": "<string>",
"at_risk_at": "<string>",
"clock": "first_response"
},
"started_by": "customer",
"status": "<string>",
"status_group": "not_started",
"status_id": 123,
"subject": "<string>",
"tags": [
{
"id": 123,
"name": "<string>",
"color_hex": "<string>"
}
],
"taken_over": {
"by": {
"id": "<string>",
"name": "<string>"
},
"at": "<string>"
},
"tool_approval": {
"id": "<string>",
"title": "<string>",
"type": "<string>",
"agent_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
}Change a conversation's status, assignee, priority or tags
Changes a conversation’s triage fields, as the app’s conversation board does: status_id (a column from GET /v1/conversations/statuses), assignee_id (from GET /v1/conversations//assignable_users; null unassigns, and its AI manages it), priority, and tags added or taken off by id. Each field given is applied, with no effect on the others. A conversation linked to a ticket gets the status, priority or assignee change on its ticket shortly after. 422 with nothing to change, an assignee outside the assignable set, or a status, priority or tag the workspace doesn’t have. Returns the conversation. Made as the key’s person, as they would in the app: only a person’s key may (403 for any other). 404 for a conversation the workspace doesn’t read, as GET answers.
curl --request PATCH \
--url https://api.statisfy.com/v1/conversations/{conversation_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"add_tags": [
1073741824
],
"assignee_id": "<string>",
"remove_tags": [
1073741824
],
"status_id": 1073741824
}
'import requests
url = "https://api.statisfy.com/v1/conversations/{conversation_id}"
payload = {
"add_tags": [1073741824],
"assignee_id": "<string>",
"remove_tags": [1073741824],
"status_id": 1073741824
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
add_tags: [1073741824],
assignee_id: '<string>',
remove_tags: [1073741824],
status_id: 1073741824
})
};
fetch('https://api.statisfy.com/v1/conversations/{conversation_id}', 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.statisfy.com/v1/conversations/{conversation_id}",
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([
'add_tags' => [
1073741824
],
'assignee_id' => '<string>',
'remove_tags' => [
1073741824
],
'status_id' => 1073741824
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.statisfy.com/v1/conversations/{conversation_id}"
payload := strings.NewReader("{\n \"add_tags\": [\n 1073741824\n ],\n \"assignee_id\": \"<string>\",\n \"remove_tags\": [\n 1073741824\n ],\n \"status_id\": 1073741824\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.statisfy.com/v1/conversations/{conversation_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"add_tags\": [\n 1073741824\n ],\n \"assignee_id\": \"<string>\",\n \"remove_tags\": [\n 1073741824\n ],\n \"status_id\": 1073741824\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/conversations/{conversation_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"add_tags\": [\n 1073741824\n ],\n \"assignee_id\": \"<string>\",\n \"remove_tags\": [\n 1073741824\n ],\n \"status_id\": 1073741824\n}"
response = http.request(request)
puts response.read_body{
"activity_id": "<string>",
"ai": {
"participated": true,
"closed_by": "ai_judged",
"resolution": "resolved"
},
"created_at": "<string>",
"id": "<string>",
"updated_at": "<string>",
"account_id": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"assignee": {
"id": "<string>",
"name": "<string>",
"type": "user"
},
"channel": "portal",
"close_reason": "answered",
"closed_at": "<string>",
"customer_told_at": "<string>",
"draft": {
"id": "<string>",
"title": "<string>",
"type": "<string>",
"agent_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
},
"engineering_issue": {
"key": "<string>",
"state": "open",
"synced_at": "<string>",
"title": "<string>",
"tracker": "linear",
"url": "<string>"
},
"first_reply_at": "<string>",
"held": false,
"kind": "customer_success",
"last_message_at": "<string>",
"loop_in": {
"has_draft": true,
"open": true,
"sent": true,
"title": "<string>",
"finished_by": "<string>",
"sent_as_worker": true
},
"outcome": "knowledge",
"priority": "normal",
"reopen_count": 0,
"reply_due": {
"due_at": "<string>",
"at_risk_at": "<string>",
"clock": "first_response"
},
"started_by": "customer",
"status": "<string>",
"status_group": "not_started",
"status_id": 123,
"subject": "<string>",
"tags": [
{
"id": 123,
"name": "<string>",
"color_hex": "<string>"
}
],
"taken_over": {
"by": {
"id": "<string>",
"name": "<string>"
},
"at": "<string>"
},
"tool_approval": {
"id": "<string>",
"title": "<string>",
"type": "<string>",
"agent_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Body
Response
Successful Response
Was this page helpful?