Skip to main content
PATCH
/
agents
/
tasks
/
{task_id}
Update Task
curl --request PATCH \
  --url https://api.example.com/agents/tasks/{task_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "description": "<string>",
  "priority": 2,
  "assigned_to_type_id": "<string>",
  "assigned_to_instance_id": "<string>",
  "assigned_to_user_id": "<string>",
  "correlation_bucket_id": "<string>",
  "source": "triage"
}
'
{
  "organization_id": "<string>",
  "title": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "description": "<string>",
  "status": "backlog",
  "priority": 3,
  "assigned_to_type_id": "<string>",
  "assigned_to_instance_id": "<string>",
  "assigned_to_user_id": "<string>",
  "correlation_bucket_id": "<string>",
  "created_by": "<string>",
  "source": "manual"
}

Path Parameters

task_id
string
required

Body

application/json

Request body for updating a task. All fields optional.

Status changes are not allowed here — use the transition endpoint instead.

Attributes: title: Short description of the task. description: Detailed description. priority: Priority level (1=urgent, 2=high, 3=normal, 4=low). assigned_to_type_id: Agent type to assign. assigned_to_instance_id: Agent instance to assign. assigned_to_user_id: User to assign. correlation_bucket_id: Correlation bucket for related events. source: How this task was created.

title
string | null
description
string | null
priority
integer | null
Required range: 1 <= x <= 4
assigned_to_type_id
string | null
assigned_to_instance_id
string | null
assigned_to_user_id
string | null
correlation_bucket_id
string | null
source
enum<string> | null

Origin of an agent task.

Available options:
triage,
conversation,
manual

Response

Successful Response

An agent task representing a unit of work.

Subtask relationships are modeled as has_subtask graph edges in SurrealDB rather than a flat parent reference. Use TaskStorageService graph traversal methods to find parents and children.

Attributes: id: SurrealDB record ID (populated by database). organization_id: Owning organization. title: Short description of the task. description: Detailed description. status: Current task status. priority: Priority level (1=urgent, 2=high, 3=normal, 4=low). assigned_to_type_id: Agent type assigned to this task. assigned_to_instance_id: Agent instance working on this task. assigned_to_user_id: User assigned to this task. correlation_bucket_id: Correlation bucket for related events. created_by: User ID of the creator. source: How this task was created.

organization_id
string
required
title
string
required
created_at
string<date-time>
updated_at
string<date-time>
id
string | null
description
string | null
status
enum<string>
default:backlog

Status of an agent task on the board.

Available options:
backlog,
assigned,
running,
review,
done
priority
integer
default:3
Required range: 1 <= x <= 4
assigned_to_type_id
string | null
assigned_to_instance_id
string | null
assigned_to_user_id
string | null
correlation_bucket_id
string | null
created_by
string | null
source
enum<string>
default:manual

Origin of an agent task.

Available options:
triage,
conversation,
manual