Tasks
Update a task
No auth requiredPATCH
/api/tasks/{id}Parameters
Path
idstringrequiredThe task ID (`tsk_…`).Request body
namestringdescriptionstring | nullpriority"low" | "medium" | "high" | "critical"due_atinteger | nulllabelsstring[] | nullResponses
200The updated task.
idstringUnique identifier for the task, prefixed with `tsk_`.Example: "tsk_xxxxxxxxxxxxxxxxxxxxxxxx"object"task"organization_idstring | nullOwning organization ID, or null if the resource is public (created without an API key).namestringdescriptionstring | nullpriority"low" | "medium" | "high" | "critical"Task priority. Defaults to `low`.due_atinteger | nullWhen the task is due. Unix timestamp in seconds.labelsstring[]Labels attached to the task. Use ?label= on the list endpoint to filter. Defaults to [].created_atinteger | nullWhen the task was created. Unix timestamp in seconds.updated_atinteger | nullWhen the task was last updated. Unix timestamp in seconds.400The request was malformed or failed validation.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.401No valid API key was provided.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.403The caller is authenticated but lacks access to the resource.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.404The resource does not exist or is not visible to the caller.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.Example request
curl
curl -X PATCH https://agtls.dev/api/tasks/{id} \
-H "Content-Type: application/json" \
-d '{ … }'