Update a task
Updates mutable task fields, including optional assignees and approvers (max one each; send empty arrays to clear). Requires the api_tasks_update scope, and If-Match with the ETag from a prior GET or create. Status changes use POST .../transition.
Checklists
type and parentId cannot be changed (422 UNSUPPORTED_FIELD), so a task cannot become a checklist and an item cannot move to another checklist. An item stays on the deal of its checklist; a different dealId returns 400 ASSOCIATION_MISMATCH.
Authorization
bearerAuth Bearer token using a Clai API key secret (clai_live_*).
In: header
Path Parameters
| Name | Type | Description |
|---|---|---|
orgIdrequired | string | Organization ID the key is operating in |
taskIdrequired | string | Task ID Format uuid |
Header Parameters
| Name | Type | Description |
|---|---|---|
If-Matchrequired | string | Required ETag from the latest GET or create response for this task Length 1 <= length |
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
| Name | Type | Description |
|---|---|---|
title | string | Length 1 <= length <= 500 |
description | string | null | Length length <= 5000 |
dueDate | string | null | Format date-time |
dealId | string | null | Format uuid |
packageId | string | null | Format uuid |
submissionId | string | null | Format uuid |
assignees | array<object> | Items items <= 1 |
One of type: "user" | ||
typerequired | "user" | |
id | string | Length 1 <= length |
email | string | Format email |
name | string | Length length <= 255 |
One of type: "team" | ||
typerequired | "team" | |
idrequired | string | Format uuid |
name | string | Length length <= 255 |
One of type: "participant" | ||
typerequired | "participant" | |
idrequired | string | Length 1 <= length |
name | string | Length length <= 255 |
approvers | array<object> | Items items <= 1 |
One of type: "user" | ||
typerequired | "user" | |
id | string | Length 1 <= length |
email | string | Format email |
name | string | Length length <= 255 |
One of type: "team" | ||
typerequired | "team" | |
idrequired | string | Format uuid |
name | string | Length length <= 255 |
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://app.goclai.com/api/v1/orgs/org_2abc123/tasks/550e8400-e29b-41d4-a716-446655440020" \ -H "If-Match: "2026-01-02T00:00:00.000Z:550e8400-e29b-41d4-a716-446655440020"" \ -H "Content-Type: application/json" \ -d '{}'{
"taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
"title": "string",
"description": "string",
"type": "general",
"status": "string",
"dealId": "f480fdfe-5c44-458b-b537-f3d9f40f9678",
"packageId": "471cc1d4-ec27-4504-b7c2-949af95662bc",
"submissionId": "23243110-f447-42f4-a433-27cb8d276b19",
"parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43",
"dueDate": "2019-08-24T14:15:22Z",
"assignees": [
{
"type": "user",
"id": "string",
"name": "string"
}
],
"approvers": [
{
"type": "user",
"id": "string",
"name": "string"
}
],
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"deletedAt": "2019-08-24T14:15:22Z"
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}GETGet a task
Returns a single task in the specified organization. Requires the `api_tasks_list` scope. ## Checklists Checklists and their items return like any other task. A checklist has `type: "checklist"`; an item has `parentId` set to the `taskId` of its checklist. To get every item of a checklist, list tasks with `parentId`.
DELETECancel or delete a task
Default cancels the task (status `canceled`). Pass `?action=delete` for a hard delete (`deletedAt` set). ## Checklists A checklist cannot be canceled or deleted while it has items, including canceled ones (`409 CHECKLIST_HAS_CHILDREN`). Delete each item with `?action=delete` first. Requires the `api_tasks_delete` scope.