---
title: "Update workspace autostart schedule by ID"
method: PUT
path: "/api/v2/workspaces/{workspace}/autostart"
tags: ["Workspaces"]
---

# Update workspace autostart schedule by ID

`PUT /api/v2/workspaces/{workspace}/autostart`

## Path parameters

- `workspace` string, uuid, required

## Request body

- CodersdkUpdateWorkspaceAutostartRequest
  - `schedule` string — 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 `204`

No Content

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/versions/56b6e9f08540/schema)
