/assets/:assetId/cdnLinks/:cdnLinkId
API Endpoint
PATCH https://api.air.inc/v1/assets/{assetId}/cdnLinks/{cdnLinkId}
Parameters
assetId:
string(required)
The id of the asset.cdnLinkId:
string(required)
The id of the CDN link.active:
boolean(required)
Set tofalseto deactivate the link, ortrueto reactivate.
Responses
204
CDN link updated successfully.404
CDN link not found for the given asset.422
CDN Links are not enabled for this workspace.
Example Request
curl --request PATCH \
--url https://api.air.inc/v1/assets/assetId/cdnLinks/cdnLinkId \
--header 'content-type: application/json' \
--data '{"active":true}'
Interaction
Click Try It! to start a request and see the response here!