---
title: "Update Cluster"
method: PATCH
path: "/oapi/v1/clusters/{id}"
tags: ["Cluster"]
---

# Update Cluster

`PATCH /oapi/v1/clusters/{id}`

Update by json config

## Path parameters

- `id` string, required

## Request body

- D7yIoDragonflyV2ManagerTypesUpdateClusterRequest
  - `bio` string
  - `is_default` boolean
  - `name` string
  - `peer_cluster_config` D7yIoDragonflyV2ManagerTypesSchedulerClusterClientConfig
    - `load_limit` integer
  - `scheduler_cluster_config` D7yIoDragonflyV2ManagerTypesSchedulerClusterConfig
    - `candidate_parent_limit` integer
    - `filter_parent_limit` integer
    - `job_rate_limit` integer
  - `scopes` D7yIoDragonflyV2ManagerTypesSchedulerClusterScopes
    - `cidrs` string[]
    - `hostnames` string[]
    - `idc` string
    - `location` string
  - `seed_peer_cluster_config` D7yIoDragonflyV2ManagerTypesSeedPeerClusterConfig
    - `load_limit` integer

## Response `200`

OK

- D7yIoDragonflyV2ManagerTypesUpdateClusterResponse
  - `bio` string
  - `created_at` string
  - `id` integer
  - `is_default` boolean
  - `name` string
  - `peer_cluster_config` D7yIoDragonflyV2ManagerTypesSchedulerClusterClientConfig
    - `load_limit` integer
  - `scheduler_cluster_config` D7yIoDragonflyV2ManagerTypesSchedulerClusterConfig
    - `candidate_parent_limit` integer
    - `filter_parent_limit` integer
    - `job_rate_limit` integer
  - `scheduler_cluster_id` integer
  - `scopes` D7yIoDragonflyV2ManagerTypesSchedulerClusterScopes
    - `cidrs` string[]
    - `hostnames` string[]
    - `idc` string
    - `location` string
  - `seed_peer_cluster_config` D7yIoDragonflyV2ManagerTypesSeedPeerClusterConfig
    - `load_limit` integer
  - `seed_peer_cluster_id` integer
  - `updated_at` string

## Other responses

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

---

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