curl --request POST \
--url https://control-plane.kubiya.ai/api/v1/workers/{worker_id}/disconnect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "shutdown",
"exit_code": 123,
"error_message": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Mark a worker as disconnected/offline.
This endpoint is called by workers when they:
Args: worker_id: Worker ID (UUID) disconnect: Disconnect details (reason, exit code, error)
curl --request POST \
--url https://control-plane.kubiya.ai/api/v1/workers/{worker_id}/disconnect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "shutdown",
"exit_code": 123,
"error_message": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?