Upload Assets
Infuse-Marketplace assets are uploaded through server-issued upload sessions and direct object storage uploads.
In normal use, upload assets from the marketplace item screens in the Infuse Cloud dashboard. Use API upload sessions only when you are automating item setup.
Before You Start
Prepare the assets you need:
| Asset | Use |
|---|---|
| Icon | Small item image used in marketplace cards and summaries. |
| Screenshots or artwork | Gallery images shown on the marketplace listing. |
Release binaries and release metadata come from the linked Infuse IoT release, not from Marketplace asset uploads.
In the Dashboard
Upload an Icon
- Open Infuse-Marketplace.
- Select the marketplace instance.
- Open Developer.
- Open Manage.
- Open the app or algorithm.
- On the item overview, click Upload Icon.
- Choose the icon file and wait for the upload to finish.
Upload Gallery Images
- Open the app or algorithm.
- Open Images.
- Upload PNG or JPEG screenshots and artwork.
- Drag images to change their display order.
- Delete any image that should not appear in the gallery.
The dashboard shows the number of uploaded images and prevents adding more after the item reaches the image limit.
What Happens Behind the Scenes
For every Marketplace presentation asset, the dashboard creates an upload session, uploads the file directly to object storage, finalises the asset, then attaches it to the marketplace item. Large files do not pass through a normal JSON request.
API Equivalent
POST /assets/upload-session
Authorization: Bearer {developer_access_token}
Content-Type: application/json
{
"assetType": "image",
"mimeType": "image/png",
"fileName": "screenshot.png"
}
Upload the file to the returned uploadUri with PUT, then finalise it:
POST /assets/{assetId}/finalise
Authorization: Bearer {developer_access_token}
Content-Type: application/json
{
"assetId": "22222222-2222-2222-2222-222222222222",
"sizeBytes": 184230,
"width": 1280,
"height": 720
}
Attach finalised assets with the matching marketplace item API:
| Asset type | Endpoint |
|---|---|
icon | POST /marketplace/developers/marketplace-items/{id}/icon |
image | POST /marketplace/developers/marketplace-items/{id}/images |
To add a versioned release, select an Infuse IoT release with POST /marketplace/developers/marketplace-items/{id}/infuse-iot-releases.