Skip to content
The Yoto Developer Challenge is on, with $10,000 to win!

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.

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]"