---
title: "Create Video CDN resource for a given file"
method: POST
path: "/dam/files/{file_id}/video-cdn"
tags: ["DAM: Files: Video CDN"]
---

# Create Video CDN resource for a given file

`POST /dam/files/{file_id}/video-cdn`

## Request

- Base URL: `https://api.kontainer.com/jsonapi/v2`
- URL: `https://api.kontainer.com/jsonapi/v2/dam/files/{file_id}/video-cdn`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/kontainer/apis/kontainer-api-documentation/docs/dam/files/:file_id/video-cdn/post.ts> (a function with typed inputs; its response is checked against the schema)

## Create DAM Video CDN file resource
Endpoint for create a Video CDN resource for a given file. Note only 1 Video CDN resource can exist on a given file.

## Path parameters

- `file_id` string, required

## Request body

- object
  - `data` object, required
    - `type` string: Resource Type
    - `attributes` object
      - `allow_download` boolean: Allow embed settings to download the original file

## Response `201`

created

- CdnFileVideo
  - `data` object
    - `type` string: Resource Type
    - `id` string: ID of resource
    - `attributes` object
      - `allow_download` boolean: Allow embed settings to download the original file
      - `status` string: Status of video conversion
    - `meta` object: Additional metadata
      - `url` string: Master file URL
      - `player_url` string: Embed player URL
      - `thumbnail_url` string: Thumbnail URL

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/kontainer/apis/kontainer-api-documentation.md) - [All operations](https://skmtc.dev/kontainer/apis/kontainer-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/kontainer/apis/kontainer-api-documentation/revisions/b80a5167e09a?raw)
