Add an asset to a terminal theme
Changed onAdds an image or video (an 'asset') to a terminal theme owned by the company specified in the path. This endpoint is rate limited.
An asset is used for a specific screen type or screen element, and a specific Android terminal model. You must specify this using the query parameters type and model. The asset binary itself is uploaded as multipart/form-data with a single file part called file, which must declare one of the following supported Content-Type values:
- image/svg+xml: only for the combination type logo with model All.
- video/mp4 or video/quicktime: only for model SFO1 or M450.
- image/jpeg (or image/jpg): for all model values except All.
- image/png: for all model values except All.
- image/gif: for all model values except SFO1 and M450.
The maximum size of the asset depends on the terminal model: 100 MB for model SFO1 and M450, or 10 MB for all other model values.
If the theme already has an asset for the same combination of type and model, the request fails and you need to upload the new asset using the /companies/{companyId}/terminalThemes/{id}/assets/replace endpoint.
To make this request, your API credential must have the following role:
- Management API - Terminal themes read and write
Request
- Base URLhttps://management-test.adyen.com/v3
- URLhttps://management-test.adyen.com/v3/companies/{companyId}/terminalThemes/{id}/assets
- Auth
- HTTP basic
- or API key in header X-API-Key
Path parameters
The unique identifier of the company account.
The unique identifier of the terminal theme.
Query parameters
The screen type or screen element that the asset is for:
- logo: your logo. Only supported if model is All.
- homeScreen: the default background screen.
- idleScreen: a screensaver shown when the terminal is inactive. Only supported if model is SFO1 or M450.
- afterPaymentScreen: a screen shown after the payment is completed.
- shopperEngagementScreen: a screen shown during a shopper engagement request. Only supported if model is SFO1 or M450.
The Android terminal model that the asset is for. Use All only if the type is logo. For every other screen type specify a single Android terminal model such as AMS1.
Request body multipart/form-data
Response
Created
Changes
- info
endpoint added
- info