curl --request PATCH \
--url https://app.letsflow.ai/v1/tickets/{key} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"assignee_principal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignment_team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>"
}
}
'import requests
url = "https://app.letsflow.ai/v1/tickets/{key}"
payload = { "data": {
"assignee_principal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignment_team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>"
} }
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({
data: {
assignee_principal_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
assignment_team_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
description: '<string>'
}
})
};
fetch('https://app.letsflow.ai/v1/tickets/{key}', 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://app.letsflow.ai/v1/tickets/{key}",
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([
'data' => [
'assignee_principal_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'assignment_team_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'description' => '<string>'
]
]),
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://app.letsflow.ai/v1/tickets/{key}"
payload := strings.NewReader("{\n \"data\": {\n \"assignee_principal_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assignment_team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\"\n }\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://app.letsflow.ai/v1/tickets/{key}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"assignee_principal_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assignment_team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.letsflow.ai/v1/tickets/{key}")
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 \"data\": {\n \"assignee_principal_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assignment_team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"resource": "ticket",
"org_id": "<string>",
"team_id": "<string>",
"key": "<string>",
"type": "<string>",
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority_kind": "<string>",
"pending_prompt_summary": {},
"source_channel_kind": "<string>",
"requester": {
"id": "<string>",
"actor_type": "<string>",
"principal_id": "<string>",
"internal_key": "<string>",
"display_name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
},
"opened_by": {
"id": "<string>",
"actor_type": "<string>",
"principal_id": "<string>",
"internal_key": "<string>",
"display_name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
},
"assignee": {
"id": "<string>",
"actor_type": "<string>",
"principal_id": "<string>",
"internal_key": "<string>",
"display_name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
},
"assignment_team_id": "<string>",
"ownership": {
"assignee": {
"kind": "flow",
"display_name": "<string>",
"avatar_url": "<string>"
},
"assignment_team": {
"display_name": "<string>"
}
},
"linked": {
"access_request": {},
"approval_request": {},
"workflow_run": {
"id": "<string>",
"status": "<string>",
"wait_reason_kind": "<string>",
"error_summary": {},
"workflow_id": "<string>",
"workflow_publication_id": "<string>",
"workflow_revision_id": "<string>",
"workflow_revision_build_id": "<string>",
"request_id": "<string>",
"correlation_id": "<string>",
"details_access": "allowed"
}
},
"created_at": "<string>",
"updated_at": "<string>",
"resolved_at": "<string>",
"closed_at": "<string>",
"canceled_at": "<string>",
"duration_ms": 123,
"duration_ended_at": "<string>",
"externally_synced": true,
"channel_thread_captured": true,
"links": {},
"intake_payload": {},
"inline_edit": {
"can_resolve": true,
"resolve_blocked_reason": "pending_approval",
"can_reopen": true,
"can_assign": true,
"can_change_status": true,
"status_edit_blocked_reason": "ticket_sync_link",
"can_change_type": true,
"can_change_priority": true,
"priority_edit_blocked_reason": "ticket_sync_link",
"priority_options": [
"low"
],
"can_edit_description": true,
"source_channel_options": [
{
"value": "browser",
"label": "<string>"
}
]
},
"messages": [
{
"id": "<string>",
"author": {
"id": "<string>",
"actor_type": "<string>",
"principal_id": "<string>",
"internal_key": "<string>",
"display_name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
},
"direction": "<string>",
"message_kind": "<string>",
"visibility": "<string>",
"body_text": "<string>",
"delivery_state": "pending",
"delivery_channel_kind": "slack",
"delivery_target_kind": "slack_thread",
"external_message_ref": "<string>",
"attachment_rejection_notice": {
"body_text": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"metadata": {},
"created_at": "<string>"
}
],
"reply_targets": [
{
"id": "<string>",
"channel_kind": "slack",
"target_kind": "slack_thread",
"label": "<string>",
"available": true,
"unavailable_reason_code": "<string>",
"ticket_channel_thread_id": "<string>",
"provider_target": {},
"recommended": true
}
],
"attachments": [
{
"id": "<string>",
"blob_ref_id": "<string>",
"ticket_message_id": "<string>",
"filename": "<string>",
"mime_type": "<string>",
"size_bytes": 123,
"sha256_hex": "<string>",
"scan_verdict": "<string>",
"state": "<string>",
"conversation_placement": "message",
"attached_by": {
"id": "<string>",
"actor_type": "<string>",
"principal_id": "<string>",
"internal_key": "<string>",
"display_name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
},
"created_at": "<string>"
}
],
"activities": [
{
"id": "<string>",
"actor": {
"id": "<string>",
"actor_type": "<string>",
"principal_id": "<string>",
"internal_key": "<string>",
"display_name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
},
"event_type": "<string>",
"summary": "<string>",
"payload": {},
"causation_kind": "<string>",
"causation_id": "<string>",
"created_at": "<string>",
"message": {
"id": "<string>",
"body_text": "<string>",
"visibility": "<string>",
"message_kind": "<string>"
}
}
],
"ticket_sync_links": [
{
"id": "<string>",
"resource": "ticket_sync_link",
"org_id": "<string>",
"team_id": "<string>",
"ticket_key": "<string>",
"team_application_binding_id": "<string>",
"connected_account_id": "<string>",
"system_kind": "jira_service_management",
"external_object_type": "<string>",
"external_id": "<string>",
"external_key": "<string>",
"external_url": "<string>",
"sync_direction": "inbound",
"ownership_mode": "encore_master",
"conflict_policy": "owner_wins",
"operating_mode": "migration_seed",
"field_mapping_version": "<string>",
"sync_state": "pending",
"remote_revision": 123,
"local_source_version": 123,
"last_successful_sync_direction": "inbound",
"last_synced_at": "<string>",
"health": {
"sync_state": "pending",
"last_error_summary": {},
"conflict_summary": {}
},
"metadata": {},
"unpushed_flow_fields": [
"status_kind"
],
"provider_context": {
"provider": "<string>",
"primary_record": {
"system_kind": "<string>",
"external_object_type": "<string>",
"external_id": "<string>",
"external_key": "<string>",
"external_url": "<string>"
}
},
"created_at": "<string>",
"updated_at": "<string>",
"local_status_alignment_allowed": true
}
],
"requester_automation": {
"fulfillment": "unconfirmed",
"label": "<string>",
"reason": "<string>",
"acceptedAt": "2023-11-07T05:31:56Z",
"nextAction": {
"actor": "none",
"requiredByViewer": true,
"message": "<string>"
}
},
"sync_provider_system_kind": "jira_service_management"
},
"meta": {
"request_id": "<string>",
"correlation_id": "<string>",
"operation": "<string>",
"resource": "<string>"
}
}{
"type": "https://app.letsflow.ai/problems/access-grant-not-found",
"title": "<string>",
"status": 123,
"code": "access_grant_admin_extension_required",
"detail": "<string>",
"instance": "<string>",
"request_id": "<string>",
"correlation_id": "<string>",
"retryable": true,
"auth_failure_reason": "<string>",
"availability_reason": "capability_disabled",
"re_auth_required": true,
"violations": [
{
"field": "<string>",
"message": "<string>",
"capability": "<string>",
"details": {}
}
],
"diagnostics": [
{
"code": "<string>",
"severity": "info",
"message": "<string>",
"fixHint": "<string>",
"location": {
"file": "<string>",
"line": 2,
"column": 2,
"stepId": "<string>"
}
}
]
}Update a ticket
Update mutable fields on a Flow-native ticket (ticket type, state, priority, assignee, assignment team, description). The source channel is fixed at creation and cannot be updated. Rejected for tickets mirrored from external IT service management (ITSM) systems. Returns the updated ticket detail bundle.
curl --request PATCH \
--url https://app.letsflow.ai/v1/tickets/{key} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"assignee_principal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignment_team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>"
}
}
'import requests
url = "https://app.letsflow.ai/v1/tickets/{key}"
payload = { "data": {
"assignee_principal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignment_team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>"
} }
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({
data: {
assignee_principal_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
assignment_team_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
description: '<string>'
}
})
};
fetch('https://app.letsflow.ai/v1/tickets/{key}', 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://app.letsflow.ai/v1/tickets/{key}",
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([
'data' => [
'assignee_principal_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'assignment_team_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'description' => '<string>'
]
]),
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://app.letsflow.ai/v1/tickets/{key}"
payload := strings.NewReader("{\n \"data\": {\n \"assignee_principal_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assignment_team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\"\n }\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://app.letsflow.ai/v1/tickets/{key}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"assignee_principal_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assignment_team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.letsflow.ai/v1/tickets/{key}")
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 \"data\": {\n \"assignee_principal_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assignment_team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"resource": "ticket",
"org_id": "<string>",
"team_id": "<string>",
"key": "<string>",
"type": "<string>",
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority_kind": "<string>",
"pending_prompt_summary": {},
"source_channel_kind": "<string>",
"requester": {
"id": "<string>",
"actor_type": "<string>",
"principal_id": "<string>",
"internal_key": "<string>",
"display_name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
},
"opened_by": {
"id": "<string>",
"actor_type": "<string>",
"principal_id": "<string>",
"internal_key": "<string>",
"display_name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
},
"assignee": {
"id": "<string>",
"actor_type": "<string>",
"principal_id": "<string>",
"internal_key": "<string>",
"display_name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
},
"assignment_team_id": "<string>",
"ownership": {
"assignee": {
"kind": "flow",
"display_name": "<string>",
"avatar_url": "<string>"
},
"assignment_team": {
"display_name": "<string>"
}
},
"linked": {
"access_request": {},
"approval_request": {},
"workflow_run": {
"id": "<string>",
"status": "<string>",
"wait_reason_kind": "<string>",
"error_summary": {},
"workflow_id": "<string>",
"workflow_publication_id": "<string>",
"workflow_revision_id": "<string>",
"workflow_revision_build_id": "<string>",
"request_id": "<string>",
"correlation_id": "<string>",
"details_access": "allowed"
}
},
"created_at": "<string>",
"updated_at": "<string>",
"resolved_at": "<string>",
"closed_at": "<string>",
"canceled_at": "<string>",
"duration_ms": 123,
"duration_ended_at": "<string>",
"externally_synced": true,
"channel_thread_captured": true,
"links": {},
"intake_payload": {},
"inline_edit": {
"can_resolve": true,
"resolve_blocked_reason": "pending_approval",
"can_reopen": true,
"can_assign": true,
"can_change_status": true,
"status_edit_blocked_reason": "ticket_sync_link",
"can_change_type": true,
"can_change_priority": true,
"priority_edit_blocked_reason": "ticket_sync_link",
"priority_options": [
"low"
],
"can_edit_description": true,
"source_channel_options": [
{
"value": "browser",
"label": "<string>"
}
]
},
"messages": [
{
"id": "<string>",
"author": {
"id": "<string>",
"actor_type": "<string>",
"principal_id": "<string>",
"internal_key": "<string>",
"display_name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
},
"direction": "<string>",
"message_kind": "<string>",
"visibility": "<string>",
"body_text": "<string>",
"delivery_state": "pending",
"delivery_channel_kind": "slack",
"delivery_target_kind": "slack_thread",
"external_message_ref": "<string>",
"attachment_rejection_notice": {
"body_text": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"metadata": {},
"created_at": "<string>"
}
],
"reply_targets": [
{
"id": "<string>",
"channel_kind": "slack",
"target_kind": "slack_thread",
"label": "<string>",
"available": true,
"unavailable_reason_code": "<string>",
"ticket_channel_thread_id": "<string>",
"provider_target": {},
"recommended": true
}
],
"attachments": [
{
"id": "<string>",
"blob_ref_id": "<string>",
"ticket_message_id": "<string>",
"filename": "<string>",
"mime_type": "<string>",
"size_bytes": 123,
"sha256_hex": "<string>",
"scan_verdict": "<string>",
"state": "<string>",
"conversation_placement": "message",
"attached_by": {
"id": "<string>",
"actor_type": "<string>",
"principal_id": "<string>",
"internal_key": "<string>",
"display_name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
},
"created_at": "<string>"
}
],
"activities": [
{
"id": "<string>",
"actor": {
"id": "<string>",
"actor_type": "<string>",
"principal_id": "<string>",
"internal_key": "<string>",
"display_name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
},
"event_type": "<string>",
"summary": "<string>",
"payload": {},
"causation_kind": "<string>",
"causation_id": "<string>",
"created_at": "<string>",
"message": {
"id": "<string>",
"body_text": "<string>",
"visibility": "<string>",
"message_kind": "<string>"
}
}
],
"ticket_sync_links": [
{
"id": "<string>",
"resource": "ticket_sync_link",
"org_id": "<string>",
"team_id": "<string>",
"ticket_key": "<string>",
"team_application_binding_id": "<string>",
"connected_account_id": "<string>",
"system_kind": "jira_service_management",
"external_object_type": "<string>",
"external_id": "<string>",
"external_key": "<string>",
"external_url": "<string>",
"sync_direction": "inbound",
"ownership_mode": "encore_master",
"conflict_policy": "owner_wins",
"operating_mode": "migration_seed",
"field_mapping_version": "<string>",
"sync_state": "pending",
"remote_revision": 123,
"local_source_version": 123,
"last_successful_sync_direction": "inbound",
"last_synced_at": "<string>",
"health": {
"sync_state": "pending",
"last_error_summary": {},
"conflict_summary": {}
},
"metadata": {},
"unpushed_flow_fields": [
"status_kind"
],
"provider_context": {
"provider": "<string>",
"primary_record": {
"system_kind": "<string>",
"external_object_type": "<string>",
"external_id": "<string>",
"external_key": "<string>",
"external_url": "<string>"
}
},
"created_at": "<string>",
"updated_at": "<string>",
"local_status_alignment_allowed": true
}
],
"requester_automation": {
"fulfillment": "unconfirmed",
"label": "<string>",
"reason": "<string>",
"acceptedAt": "2023-11-07T05:31:56Z",
"nextAction": {
"actor": "none",
"requiredByViewer": true,
"message": "<string>"
}
},
"sync_provider_system_kind": "jira_service_management"
},
"meta": {
"request_id": "<string>",
"correlation_id": "<string>",
"operation": "<string>",
"resource": "<string>"
}
}{
"type": "https://app.letsflow.ai/problems/access-grant-not-found",
"title": "<string>",
"status": 123,
"code": "access_grant_admin_extension_required",
"detail": "<string>",
"instance": "<string>",
"request_id": "<string>",
"correlation_id": "<string>",
"retryable": true,
"auth_failure_reason": "<string>",
"availability_reason": "capability_disabled",
"re_auth_required": true,
"violations": [
{
"field": "<string>",
"message": "<string>",
"capability": "<string>",
"details": {}
}
],
"diagnostics": [
{
"code": "<string>",
"severity": "info",
"message": "<string>",
"fixHint": "<string>",
"location": {
"file": "<string>",
"line": 2,
"column": 2,
"stepId": "<string>"
}
}
]
}Authorizations
OAuth Bearer access tokens or Flow API keys with the required Flow scope families for the route.
Headers
Optional idempotency key for retry-safe write operations. For implemented representative writes, the same key plus the same request fingerprint replays the accepted result with meta.replayed=true in the response body. Stored HTTP responses for create requests in the customer API retain their original success status, including 201 Created and 202 Accepted. An in-progress key returns 409 idempotency_key_in_progress. A reused key with a different request fingerprint returns 409 idempotency_key_reused. Replay state is not signaled through an X-Idempotent-Replayed header.
255Path Parameters
Org-scoped human ticket key (for example PLAT-1). Internal ticket UUIDs are not valid path values.
Body
Partial update payload; must include at least one mutable field.
Show child attributes
Show child attributes
Response
Ticket detail response with messages, activities, and linked domain observations.