---
title: "/assets/:assetId/cdnLinks/:cdnLinkId"
method: PATCH
path: "/v1/assets/{assetId}/cdnLinks/{cdnLinkId}"
tags: ["Assets"]
---

# /assets/:assetId/cdnLinks/:cdnLinkId

`PATCH /v1/assets/{assetId}/cdnLinks/{cdnLinkId}`

Activate or deactivate a CDN link.

Returns an empty body on success. Use `GET /v1/assets/{assetId}/cdnLinks` to verify the `active` state.

## Request body

- object
  - `active` boolean, required — Set to `false` to deactivate the link, or `true` to reactivate

## Response `204`

CDN link updated successfully

## Other responses

- `404` — CDN link not found for the given asset
- `422` — CDN Links are not enabled for this workspace

---

[API](https://skmtc.net/air/apis/air-api.md) · [All operations](https://skmtc.net/air/apis/air-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/air/air-api/revisions/2bd9c9fa2a0c/schema)
