---
title: "Toggle schedule"
method: PUT
path: "/tenants/{env_id}/schedule"
---

# Toggle schedule

`PUT /tenants/{env_id}/schedule`

Disable, enable, and manage schedules across tenants in your environment

## Path parameters

- `env_id` string, required

## Query parameters

- `mode` 'upsert'

## Request body

- object
  - `toggle` 'enable' | 'disable' — Used to toggle all schedules in this environment
  - `flows` string[] — List of flow ids to apply this operation for
  - `tenants` string[] — List of tenants to apply this operation for
  - `expression` string — Can be "default" to use the admin schedule or a cron expression. Will be applied for all tenants

## Response `200`

200

- object
  - `toggle` string
  - `updated` integer

## Other responses

- `400` — 400

---

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