Media

Manage brands media

Deprecated

Adding an image for a brand

post

Creates a public image for a brand. This endpoint is deprecated. Please use media-service instead.


Required scopes

  • brand.brand_manage

Authorizations
Body
filestring · byteOptional

Actual file content.

metadatastringOptional

The metadata for the image as string encoded json - only simple strings are supported.

Example: Image metadata json
Responses
201
The image has been successfully created.
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"
}
Deprecated

Deleting an image from a brand

delete

Deletes a specified public image from a brand. This endpoint is deprecated. Please use media-service instead.


Required scopes

  • brand.brand_delete

Authorizations
Path parameters
mediaIdstringRequired

Unique identifier of a media file.

Responses
200
The image has been successfully deleted.
delete
DELETE /media/{mediaId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*

No content

Was this helpful?