Skip to main content
PATCH
/
api
/
v1
/
analytics
/
tasks
/
{task_id}
Update Task
curl --request PATCH \
  --url https://control-plane.kubiya.ai/api/v1/analytics/tasks/{task_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "<string>",
  "completed_at": "<string>",
  "duration_ms": 123,
  "result": "<string>",
  "error_message": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Enter your Kubiya API token (format: Bearer )

Path Parameters

task_id
string
required

Body

application/json

Schema for updating a task's status

status
string | null
completed_at
string | null
duration_ms
integer | null
result
string | null
error_message
string | null

Response

Successful Response