Skip to main content
PATCH
Update or complete a task

Request Structure

Completing a Task

A single task is completed through this endpoint by setting status to "completed" together with the attributes required for the task’s type. The table below lists the minimum payload to complete each type; additional fields may be set in the same request when they need updating at the same time. To complete many tasks of the same type in one call, use POST /api/tasks/complete_collection with a task_type_code and a filters block.

Key Fields

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.

X-Clarus-Subdomain
string
header
required

The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.

Path Parameters

id
integer
required

The unique identifier of the task to update

Body

application/json
data
object
required

Response

Task updated successfully

Task response in JSON:API format

data
object