Skip to content

upload cover image

This endpoint enables uploading a cover image to a user's media account.

It supports both direct file uploads and URL-based image fetching, with automatic image conversion.

Uploaded images are resized according to the coverType provided, else default dimensions are used. Aspect ratio is preserved and the image is cropped to fit these dimensions, positioned to the centre.

coverType height (px) width (px)
default 1011 638
activities 1011 638
music 1011 638
myo 400 520
podcast 600 600
radio 600 600
sfx 1011 638
stories 1011 638

Responses

200 OK (Binary image upload) / 200 OK (Image URL upload) application/json
coverImageobject
mediaIdstring
mediaUrlstring

Query Parameters

imageUrl string

URL of an image to fetch and upload. Required if no file body is provided.

Example https://picsum.photos/id/237/200/300.jpg
autoconvert string

Whether to automatically convert the image to the specified cover type. Boolean,

Example true
coverType string

The type of cover image to create. This determines the image dimensions.

Example default
filename string

Custom filename for the uploaded image.

Example
POST
/media/coverImage/user/me/upload
Server URL: https://api.yotoplay.com
Authorization (bearerAuth)
Query Parameters
KEYVALUE
Request Body
Terminal window
curl "https://api.yotoplay.com/media/coverImage/user/me/upload"
--header "Authorization: Bearer [YOUR_TOKEN]"