cURL
curl --request POST \ --url https://control-plane.kubiya.ai/api/v1/workers/{worker_id}/disconnect \ --header 'Authorization: <api-key>' \ --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)
Worker disconnect request
Successful Response
Was this page helpful?