PLATINUM DOCS
ApiSandboxes

POST /v1/sandboxes/{id}/schedules

POST
/v1/sandboxes/{id}/schedules

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Schedule a command on this sandbox. 403 schedules_not_enabled while the feature is off; 400 invalid_cron with the reason; 409 too_many_schedules past 10 per sandbox.

Response Body

application/json

curl -X POST "https://example.com/v1/sandboxes/string/schedules" \  -H "Content-Type: application/json" \  -d '{    "cron": "string",    "cmd": "string"  }'
{  "id": "string",  "sandbox_id": "string",  "cron": "string",  "cmd": [    "string"  ],  "timeout_s": 0,  "stop_after": true,  "next_run_at": "2019-08-24T14:15:22Z",  "running": true,  "last_run": {    "at": "2019-08-24T14:15:22Z",    "status": "ok",    "exit_code": 0,    "duration_ms": 0,    "error": "string"  },  "created_at": "2019-08-24T14:15:22Z"}
Empty