Media
Upload media
Changed onUpload a JPEG, PNG, GIF or WebP image of up to 10 MB. Attach the returned media's id to a catalogue item, brand or category.
Required scopes: business/catalogue:read, business/catalogue:write
post/v1/media/
Request
- Base URLhttps://api.yoco.com
- AuthHTTP bearer
Request body application/x-www-form-urlencoded
Example request
{
"category": "catalogue"
}Response
Successful Response
Example response
{
"created_at": "2024-11-19T15:27:02+00:00",
"id": "1757533814961-58f649da-81e3-4877-8769-f407cfba8aff",
"mime_type": "image/jpeg",
"type": "image",
"updated_at": "2024-11-19T16:27:23+00:00",
"url": "https://images.yoco.com/foo/bar.jpg"
}Changes
- info
endpoint added
- info