Workspaces

Update workspace autostart schedule by ID

Changed on
put/api/v2/workspaces/{workspace}/autostart

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v2/workspaces/{workspace}/autostart
  • Auth
    API key in header Coder-Session-Token

Path parameters

workspacestring uuid required

Workspace ID

Request body

schedulestring

Schedule 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.

Response

No Content

Changes