Codevisor Docs
Api reference

Pause live turns for a restart; they continue automatically once the server is back

POST/v1/restart/drain

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

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"
{  "state": "idle",  "remaining": 0,  "startedAt": "string",  "pausedSessionIds": [    "string"  ],  "harnessIds": [    "string"  ],  "harnessNames": {    "property1": "string",    "property2": "string"  }}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}