---
title: "Disables a job schedule."
method: POST
path: "/jobschedules/{jobScheduleId}/disable"
tags: ["JobSchedules"]
---

# Disables a job schedule.

`POST /jobschedules/{jobScheduleId}/disable`

No new jobs will be created until the job schedule is enabled again.

## Path parameters

- `jobScheduleId` string, required

## Query parameters

- `timeout` integer
- `api-version` string, required

## Headers

- `client-request-id` string, uuid
- `return-client-request-id` boolean
- `ocp-date` string, date-time-rfc1123
- `If-Match` string
- `If-None-Match` string
- `If-Modified-Since` string, date-time-rfc1123
- `If-Unmodified-Since` string, date-time-rfc1123

## Response `204`

The request to the Batch service was successful.

## Other responses

- `default` — The error from the Batch service.

---

[API](https://skmtc.net/windows/apis/batch-batchservice.md) · [All operations](https://skmtc.net/windows/apis/batch-batchservice/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/windows/batch-batchservice/versions/9ab62bb93c5f/schema)
