---
title: "Create a media rendition"
method: POST
path: "/v2/sites/{site_id}/media/{media_id}/media_renditions/"
tags: ["media renditions"]
---

# Create a media rendition

`POST /v2/sites/{site_id}/media/{media_id}/media_renditions/`

## Request

- Base URL: `https://api.jwplayer.com`
- URL: `https://api.jwplayer.com/v2/sites/{site_id}/media/{media_id}/media_renditions/`
- Auth: API key in header `Authorization`

## Path parameters

- `site_id` string, required: Unique identifier for a resource
- `media_id` string, required: Unique identifier for a resource

## Request body

- object
  - `relationships` object
    - `media_rendition_template` RelationshipWrite
      - `id` string, required: Unique identifier for a resource

## Response `201`

Resource successfully created

- MediaRenditionResource: Resource for a media's renditions
  - `schema` string
  - `id` string: Unique identifier for a resource
  - `created` string: Date and time at which the resource was created
  - `last_modified` string: Date and time at which the resource was most recently modified
  - `type` string: Name of the type of resource.
  - `relationships` object: Ancilliary resources associated to the primary resource being read
    - `media_rendition_template` RelationshipRead
      - `id` string: Unique identifier for a resource
      - `type` string: Resource type
  - `metadata` object
  - `height` integer
  - `width` integer
  - `format` string: Extension format of the rendition
  - `delivery_url` string: URL to access the media rendition This URL is only returned when the media rendition status is `ready`.
  - `error_message` string: A human-readable error message for describing failures
  - `status` 'failed' | 'processing' | 'ready'
  - `filesize` integer: Size of the media rendition, in bytes

## Other responses

- `400`: Invalid JSON request body
- `404`: Resource with ID supplied does not exist in account and object namespace
- `409`: Request conflicts with state of target resource

## Changes

- **2026-11-03** `9fad6bd5872e`: 2 info
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `404`

[Operation history](https://skmtc.dev/jwplayer/apis/management-api-v2/changes/v2/sites/:site_id/media/:media_id/media_renditions/post.md)

---

[API](https://skmtc.dev/jwplayer/apis/management-api-v2.md) - [All operations](https://skmtc.dev/jwplayer/apis/management-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/jwplayer/apis/management-api-v2/revisions/9fad6bd5872e?raw)
