/assets/:assetId/cdnLinks
Creating a CDN Link
Request Body
Parameters
- assetId
The ID of the asset (string, required) - followsDefaultVersion
Create a CDN link that follows the asset's default version (boolean, required)
Allowed:true
Responses
201
CDN link created successfully400
Invalid request body, asset too large for CDN links, or missing storage location404
Asset or version not found409
A CDN link already exists for this asset or version422
CDN Links are not enabled for this workspace
Example Request
curl --request POST \
--url https://api.air.inc/v1/assets/assetId/cdnLinks \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '\n{\n "followsDefaultVersion": true\n}\n'```
# Try It Out
Click `Try It!` to start a request and see the response here! Or choose an example:
```json
{
"followsDefaultVersion": true
}