---
title: "Set scheduled runs for the workspace"
method: POST
path: "/workspaces/{workspace}/actions/set-schedule"
tags: ["workspaces"]
---

# Set scheduled runs for the workspace

`POST /workspaces/{workspace}/actions/set-schedule`

## Path parameters

- `workspace` string, required

## Request body

- WorkspaceSchedule
  - `apply-schedule` string, nullable
  - `destroy-schedule` string, nullable

## Response `200`

Success.

## Other responses

- `404` — Workspace not found, or user unauthorized to perform action.
- `422` — Malformed request body (missing attributes, wrong types, etc.).
- `4XX` — Client error.
- `5XX` — Server error.

---

[API](https://skmtc.net/scalr/apis/scalr-iacp-api.md) · [All operations](https://skmtc.net/scalr/apis/scalr-iacp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalr/scalr-iacp-api/revisions/fc927526ad12/schema)
