Update workspace autostart schedule by ID
PUT
CoderSessionTokenheader
Coder-Session-Token<token>workspace*stringWorkspace ID
Format
uuidSchedule update request
application/json- body
schedule?stringSchedule is expected to be of the form CRON_TZ=<IANA Timezone> <min> <hour> * * <dow>
Example: CRON_TZ=US/Central 30 9 * * 1-5 represents 0930 in the timezone US/Central
on weekdays (Mon-Fri). CRON_TZ defaults to UTC if not present.
No Content
The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X PUT \ "$CODER_URL/api/v2/workspaces/{workspace}/autostart" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "schedule": "string"}'Example Response204
Empty