Media
Manage brands media
Creates a public image for a brand. This endpoint is deprecated
. Please use media-service
instead.
See: Media Service
Required scopes
brand.brand_manage
Actual file content.
The metadata for the image as string encoded json - only simple strings are supported.
Image metadata json
The image has been successfully created.
Request syntactically incorrect. Any details will be provided within the response payload.
Given authorization scopes are not sufficient and do not match the required scopes.
Some server side error occurred.
POST /media HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 52
{
"file": "Ynl0ZXM=",
"metadata": "Image metadata json"
}
{
"link": "https://res.cloudinary.com/saas-ag/image/upload/tenant/brands/imageName.jpg",
"id": "tenant/brands/d05f14d8-4fab-4c51-98f9-05a93d8ec822"
}
Deletes a specified public image from a brand. This endpoint is deprecated
. Please use media-service
instead.
See: Media Service
Required scopes
brand.brand_delete
Unique identifier of a media file.
The image has been successfully deleted.
Given authorization scopes are not sufficient and do not match the required scopes.
The requested resource does not exist.
Some server side error occurred.
DELETE /media/{mediaId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Was this helpful?