---
title: "Update CDN"
method: PATCH
path: "/cdns/{id}"
tags: ["CDN"]
---

# Update CDN

`PATCH /cdns/{id}`

Update by json config

## Path parameters

- `id` string, required

## Request body

- TypesUpdateCDNRequest
  - `cdn_cluster_id` integer
  - `download_port` integer
  - `idc` string
  - `ip` string
  - `location` string
  - `port` integer

## Response `200`

OK

- ModelCDN
  - `cdnclusterID` integer
  - `created_at` string
  - `download_port` integer
  - `host_name` string
  - `id` integer
  - `idc` string
  - `ip` string
  - `location` string
  - `port` integer
  - `state` string
  - `updated_at` 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/cdns/: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)
