Skip to main content
POST
/
api
/
v1
/
workers
/
{worker_id}
/
disconnect
Worker Disconnect
curl --request POST \
  --url https://control-plane.kubiya.ai/api/v1/workers/{worker_id}/disconnect \
  --header 'Content-Type: application/json' \
  --data '{
  "reason": "shutdown",
  "exit_code": 123,
  "error_message": "<string>"
}'
This response does not have an example.

Path Parameters

worker_id
string
required

Body

application/json

Worker disconnect request

reason
string
default:shutdown
exit_code
integer | null
error_message
string | null

Response

Successful Response