---
title: "Update Scheduler"
method: PATCH
path: "/schedulers/{id}"
tags: ["Scheduler"]
---

# Update Scheduler

`PATCH /schedulers/{id}`

Update by json config

## Path parameters

- `id` string, required

## Request body

- TypesUpdateSchedulerRequest
  - `idc` string
  - `ip` string
  - `location` string
  - `net_config` object
  - `port` integer
  - `scheduler_cluster_id` integer
  - `scheduler_id` integer
  - `vips` string

## Response `200`

OK

- ModelScheduler
  - `created_at` string
  - `host_name` string
  - `id` integer
  - `idc` string
  - `ip` string
  - `location` string
  - `net_config` ModelJSONMap
  - `port` integer
  - `schedulerClusterID` integer
  - `state` string
  - `updated_at` string
  - `vips` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2021-11-29** `f61cd344dca7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/dragonflyoss/apis/dragonfly-manager/changes/schedulers/:id/patch.md)

---

[API](https://skmtc.dev/dragonflyoss/apis/dragonfly-manager.md) · [All operations](https://skmtc.dev/dragonflyoss/apis/dragonfly-manager/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dragonflyoss/dragonfly-manager/revisions/f61cd344dca7/schema)
