Download OpenAPI specification:Download
The Media Service allows you to manage assets associated with your tenant. The assets may include media, such as images or video, and other files, for example contracts or specification sheets.
Creates a new asset for the tenant. An asset represents a digital (max 10MB) object in the system, for example a video, image, or a document.
BLOB
type, use the multipart/form-data
request body. LINK
type, use the application/json
request body.media.asset_manage
The request was successful. The asset has been created.
Request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
There are three possible reasons:
Media request is too large.
Internal Service Error occurred.
{ "file": { "externalValue": "https://res.cloudinary.com/saas-ag/image/upload/v1695804155/emporix-logo-white-2f5e621206edefea6015fb4793959376_nswfbz.png" }, "body": { "type": "BLOB", "access": "PUBLIC", "refIds": [ { "id": "123e06ecf0452c2d6c0b81392", "type": "CATEGORY" } ], "details": { "filename": "theBestImage", "mimeType": "image/jpg" } } }
{- "id": "53ac81fd0cce8b26b36f3492"
}
Retrieves all assets assigned to the tenant. You can filter, sort, and paginate the results with query parameters.
media.asset_read
Resources have been retrieved successfully.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Internal Service Error occurred.
[- {
- "id": "123e06ecf0452c2d6c0b81390",
- "type": "BLOB",
- "access": "PUBLIC",
- "details": {
- "filename": "public.txt",
- "mimeType": "text/plain"
}, - "refIds": [
- {
- "id": "123e06ecf0452c2d6c0b81392",
- "type": "CATEGORY"
}
], - "metadata": {
- "createdAt": "2022-03-31T13:18:02.379Z",
- "modifiedAt": "2022-03-31T13:18:02.379Z",
- "version": 1
}
}, - {
- "id": "123e06ecf0452c2d6c0b81390",
- "type": "LINK",
- "access": "PUBLIC",
- "metadata": {
- "createdAt": "2022-03-31T13:18:02.379Z",
- "modifiedAt": "2022-03-31T13:18:02.379Z",
- "version": 1
}, - "refIds": [
- {
- "id": "123e06ecf0452c2d6c0b81392",
- "type": "CATEGORY"
}
]
}
]
Retrieves an asset by its unique identifier.
media.asset_read
The request was successful. The requested asset is returned.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
Internal Service Error occurred.
{- "id": "123e06ecf0452c2d6c0b81390",
- "type": "LINK",
- "access": "PUBLIC",
- "refIds": [
- {
- "id": "123e06ecf0452c2d6c0b81392",
- "type": "CATEGORY"
}
], - "metadata": {
- "createdAt": "2022-03-31T13:18:02.379Z",
- "modifiedAt": "2022-03-31T13:18:02.379Z",
- "version": 1
}
}
Updates a given asset. The type
and access
properties are immutable. Accepts files of up to 10MB.
BLOB
type, use multipart/form-data
request body. LINK
type, use application/json
request body.media.asset_manage
The asset has been updated successfully.
Request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
There are three possible reasons:
Media request is too large.
Internal Service Error occurred.
{ "file": { "externalValue": "https://res.cloudinary.com/saas-ag/image/upload/v1695804155/emporix-logo-white-2f5e621206edefea6015fb4793959376_nswfbz.png" }, "body": { "type": "BLOB", "access": "PUBLIC", "refIds": [ { "id": "123e06ecf0452c2d6c0b81392", "type": "CATEGORY" } ], "details": { "filename": "theBestImage", "mimeType": "image/jpg" }, "metadata": { "version": 1 } } }
{- "status": "Bad request",
- "code": 400,
- "message": "Tenant in the header is not matching with the one provided in the URI.",
}
Deletes an asset.
media.asset_manage
The asset has been deleted successfully.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Internal Service Error occurred.
{- "fault": {
- "faultstring": "Invalid access token",
- "detail": {
- "errorcode": "oauth.v2.InvalidAccessToken"
}
}
}
Downloads an asset by its unique identifier.
media.asset_read
This is a successful response when requesting for a PRIVATE access asset of the BLOB type.
This is a successful response when requesting for a PUBLIC access asset.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
Internal Service Error occurred.
{- "fault": {
- "faultstring": "Invalid access token",
- "detail": {
- "errorcode": "oauth.v2.InvalidAccessToken"
}
}
}