Skip to main content
POST
/
v1
/
agent
/
update-task
Update a task.
curl --request POST \
  --url https://api.reload.chat/v1/agent/update-task \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "taskId": "<string>",
  "version": 123,
  "title": "<string>",
  "description": "<string>",
  "assigneeAgentId": "<string>",
  "assigneeUserId": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "identifier": "<string>",
    "workspaceId": "<string>",
    "title": "<string>",
    "description": "<string>",
    "version": 123,
    "dueAt": "2023-11-07T05:31:56Z",
    "assigneeUserId": "<string>",
    "assigneeAgentId": "<string>",
    "createdByUserId": "<string>",
    "createdByAgentId": "<string>",
    "parentTaskId": "<string>",
    "channelId": "<string>",
    "originMessageId": "<string>",
    "originExtractionId": "<string>",
    "startedAt": "2023-11-07T05:31:56Z",
    "completedAt": "2023-11-07T05:31:56Z",
    "cancelledAt": "2023-11-07T05:31:56Z",
    "archivedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z"
  },
  "meta": {
    "requestId": "<string>",
    "timestamp": "2023-11-07T05:31:56Z",
    "pagination": {
      "hasMore": true,
      "cursor": "<string>",
      "total": 123,
      "historyCutoff": {
        "beyondCount": 123,
        "cutoffAt": "2023-11-07T05:31:56Z"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
taskId
string
required

The task ID to update.

version
number
required

Optimistic-lock version. Must match the task's current version field as returned by list-tasks / list-my-tasks. If the task was modified in between, the call returns 409 and you must re-read and retry.

status
enum<string>

New status.

Available options:
triage,
backlog,
todo,
in_progress,
blocked,
in_review,
done,
cancelled
priority
enum<string>

New priority.

Available options:
none,
low,
medium,
high,
urgent
title
string

Updated title.

description
string

Updated description (markdown).

assigneeAgentId
string

Agent ID to assign to (null to unassign).

assigneeUserId
string

User ID to assign to (null to unassign).

Response

Success

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object