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
Authorizations
Body
filestring · byteOptional
Actual file content.
metadatastringOptionalExample:
The metadata for the image as string encoded json - only simple strings are supported.
Image metadata json
Responses
201
The image has been successfully created.
application/json
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
403
Given authorization scopes are not sufficient and do not match the required scopes.
application/json
500
Some server side error occurred.
application/json
post
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
Authorizations
Path parameters
mediaIdstringRequired
Unique identifier of a media file.
Responses
200
The image has been successfully deleted.
403
Given authorization scopes are not sufficient and do not match the required scopes.
application/json
404
The requested resource does not exist.
application/json
500
Some server side error occurred.
application/json
delete
DELETE /media/{mediaId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Was this helpful?