Media

Deprecated

Creating a media

post

Creates an image for a label. This endpoint is deprecated. Please use media-service instead.

Required scopes

  • label.label_manage

Authorizations
Body
fileobject · binaryRequired
metadatastringOptional
Responses
200
Successfully created media.
application/json
post
POST /label/media HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 29

{
  "file": {},
  "metadata": "text"
}
{
  "link": "https://res.cloudinary.com/saas-ag/image/upload/v1728023450/tenant/labels/0a075c00-3893-47e7-b0d7-84f9ba7e339a.jpg",
  "id": "tenant/labels/0a075c00-3893-47e7-b0d7-84f9ba7e339a"
}
Deprecated

Deleting a media

delete

Deletes label image with specified media ID. This endpoint is deprecated. Please use media-service instead.

Required scopes

  • label.label_manage

Authorizations
Path parameters
mediaIdstringRequired

Unique identifier of the media.

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

No content

Was this helpful?