---
title: "Pause Deployment"
method: POST
path: "/api/deployments/{id}/set_schedule_inactive"
tags: ["Deployments"]
---

# Pause Deployment

`POST /api/deployments/{id}/set_schedule_inactive`

Set a deployment schedule to inactive. Any auto-scheduled runs still in a Scheduled
state will be deleted.

## Path parameters

- `id` string, uuid, required — The deployment id

## Headers

- `x-prefect-api-version` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2024-04-16** `c16b1fe41c14` — 1 info
  - api operation id `set_schedule_inactive_deployments__id__set_schedule_inactive_post` removed and replaced with `pause_deployment_deployments__id__set_schedule_inactive_post`

[Change history](https://skmtc.dev/prefecthq/apis/untitled-api-2/changes/api/deployments/:id/set_schedule_inactive/post.md)

---

[API](https://skmtc.dev/prefecthq/apis/untitled-api-2.md) · [All operations](https://skmtc.dev/prefecthq/apis/untitled-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prefecthq/untitled-api-2/revisions/29ba6c4f8837/schema)
