# 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 successfully

- **400**  
  Invalid request body, asset too large for CDN links, or missing storage location

- **404**  
  Asset or version not found

- **409**  
  A CDN link already exists for this asset or version

- **422**  
  CDN Links are not enabled for this workspace

# Example Request

```shell
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
}
```
