Media

Step 2 of an upload: register the uploaded object as an asset.

Returns the asset id to put in mediaIds.

post/v1/media

Request

  • Base URL: https://api.ravenpo.st
  • URL: https://api.ravenpo.st/v1/media
  • Auth: HTTP bearer

Request body

typestring required

Asset kind.

storageKeystring required

From the presign response.

urlstring required

Public URL, from the presign response.

mimeTypestring

Recorded for the per-platform compatibility check.

widthnumber

Pixels.

heightnumber

Pixels.

durationSecnumber

Video length.

sizeBytesnumber

File size, checked against each platform’s cap.

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.