createMedia

Create a media asset record. The mediaType field determines the type of asset to create.

This operation is idempotent; if the asset or pairing already exists with identical metadata, this operation returns a 200 response with existing data. Returns 201 when a new asset or pairing is created. Returns 409 if the asset or pairing already exists but the metadata fields differ.

If an uploadDestinationId is provided, it is resolved to its mediaId before any further processing. A request that references an asset by uploadDestinationId and a subsequent request that uses the resulting mediaId are treated as referring to the same identity.

Usage Plan:

Rate (requests per second)Burst
1010

The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to Usage Plans and Rate Limits in the Selling Partner API.

Body Params

The media creation request details.

The request body for creating a media asset. Uses the unified media shape as a subset, omitting system-derived fields.

string
enum
required

The type of media asset.

Show Details
VIDEOA video media asset.
IMAGEAn image media asset.
Allowed:
string

The S3 upload destination identifier from the createUploadDestination operation. Mutually exclusive with mediaId.

string

An existing media asset identifier for reuse. Mutually exclusive with uploadDestinationId.

string

An optional title for the media asset. For standalone images, defaults to filename if not provided. Not applicable for videos (video title is derived from the filename).

descriptions
array of objects

A list of locale-keyed accessibility descriptions. At least one entry is required for video assets.

descriptions
relatedMedia
array of objects

A list of related media inputs for creation.

relatedMedia
Responses

Language
LoadingLoading…
Response
Choose an example:
application/json