Create a cron schedule
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).
curl --request POST \
--url https://api.flexxible.net/v1/organizations/{organization_id}/workspace-groups/{workspace_group_id}/schedules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cron_expression": "0 8 * * 1-5",
"time_zone": "Eastern Standard Time",
"type": "start",
"enabled": true
}
'{
"id": "507f1f77bcf86cd799439060",
"cron_expression": "0 8 * * 1-5",
"time_zone": "Eastern Standard Time",
"type": "start",
"enabled": true,
"intermediate_device": "507f1f77bcf86cd799439050",
"created_by": "507f1f77bcf86cd799439070"
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}Authorizations
Path Parameters
Body
Cron expression defining when the schedule should run. Format: minute hour day-of-month month day-of-week. Examples: '0 8 * * 1-5' (8 AM on weekdays), '0 0 * * 0' (midnight on Sunday), '30 14 * * ' (2:30 PM daily). Day-of-week: 0=Sunday, 1=Monday, ..., 6=Saturday. Supports ranges (1-5), lists (1,3,5), and wildcards (). Must be a valid cron expression format with 5 space-separated fields.
"0 8 * * 1-5"
Optional. The unique identifier of the intermediate device Workspace. If provided, indicates an intermediate device must be used for Wake on LAN operations. Only applicable for START schedules. Used for Wake on LAN actions in secure networks. The Workspace must exist and belong to the organization.
24^[0-9a-f]{24}$"507f1f77bcf86cd799439050"
Response
Schedule successfully created. The response contains the created schedule resource.
curl --request POST \
--url https://api.flexxible.net/v1/organizations/{organization_id}/workspace-groups/{workspace_group_id}/schedules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cron_expression": "0 8 * * 1-5",
"time_zone": "Eastern Standard Time",
"type": "start",
"enabled": true
}
'{
"id": "507f1f77bcf86cd799439060",
"cron_expression": "0 8 * * 1-5",
"time_zone": "Eastern Standard Time",
"type": "start",
"enabled": true,
"intermediate_device": "507f1f77bcf86cd799439050",
"created_by": "507f1f77bcf86cd799439070"
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}