latestOpenAPI 3.0.32026-08-10152216352.3 KB

eea119b4113f

Self-Hosted Runners

Update task status (self-hosted)

Updates task status, error and current step for a task (self-hosted)

patch/self-hosted/{accountId}/tasks/{taskId}

Path parameters

accountIdstring required

Unique identifier of the account

taskIdstring required

Unique identifier of the task

Request body

status'pending' | 'running' | 'success' | 'failed' | 'canceled' | 'initializing' | 'queued' | 'planning' | 'planning_destroy' | 'applying' | 'destroying' | 'ready_for_apply' | 'ready_for_destroy' | 'destroyed' | 'destroy_plan_completed' | 'destroy_plan_failed' | 'destroy_failed' | 'discarded' | 'canceling_init' | 'canceling_plan' | 'canceling_planning_destroy' | 'canceling_apply' | 'canceling_destroy' | 'canceled_init' | 'canceled_plan' | 'canceled_planning_destroy' | 'canceled_apply' | 'canceled_destroy'
currentStep'plan' | 'post_plan' | 'apply' | 'post_apply'
workspaceRunIdstring

Response

Task status updated successfully