Update task

http
PATCH /projects/{project_reference}/tasks/{task_id}

Change the name, description or schedulable flag of a structured task, where an omitted description or flag keeps its value; returns the updated task source document. Requires project.runs.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
task_idpathYes
source_target_kindquerySource to write: project or preview_branch. Defaults to project.
target_branch_idqueryPreview branch to write when source_target_kind is preview_branch.

Request body

FieldTypeRequiredDescription
namestringYesUpdated human-readable task name.
descriptionstring,nullUpdated task description. Omit it to keep the current description.
schedulablebooleanUpdated schedulable flag. Omit it to keep the current value.

Responses

StatusDescription
200Updated task document
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.