Create a cron schedule
POST/v1/organizations/:organization_id/workspace-groups/:workspace_group_id/schedules
Creates a new cron schedule for a group of workspaces. Schedules define automated power operations (START, STOP, RESTART) executed at specified schedules according to cron expressions and time zone. START schedules may optionally include an intermediate device Workspace ID for Wake on LAN operations in secure networks. If intermediate_device is provided, it indicates an intermediate device must be used. The system validates no conflicting schedule exists (same type, time, and day after time zone conversion).
Request
Responses
- 201
- 400
- 401
- 404
- 409
- 422
- 429
- 500
Schedule successfully created. The response contains the created schedule resource.
Invalid request. Common causes: - Mandatory fields are missing (cron_expression, time_zone, type) - Invalid cron expression format - Invalid time zone value - Invalid scheduling type (must be START, STOP, or RESTART) - Invalid intermediate_device Workspace ID format
Unauthorized: user does not have access to the organization or the organization does not exist
Workspace group not found or workspace group belongs to a different organization (after authorization)
Conflict: scheduling with the same type, time, and day already exists (after time zone conversion)
Unprocessable entity. Common causes: - Intermediate_device Workspace ID does not exist or does not belong to the organization
Too Many Requests
Internal Server Error