Api reference
Begin draining live turns so the server can restart safely
POST
/v1/restart/drainAuthorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
interrupt?boolean|null
timeoutMs?number||||null
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/restart/drain" \ -H "Content-Type: application/json" \ -d '{}'{ "state": "idle", "remaining": 0, "startedAt": "string", "deadlineAt": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}