listing__upload_asset
Upload an image or video to an app's asset library and optionally place it on a store page in one call, handling Apple's reserve/upload/commit sequence.
Instructions
Upload an image or video file into an app’s asset library in one step, and optionally place it on a store page in the same call. Give the app, the file path and the category; to place it, add a placement type and either a locale (the version page) or the id of a custom product page, experiment or in-app event localization. Handles Apple’s reserve/upload/commit sequence, which the raw library tools cannot finish. PUBLIC-level write when it places the file; the upload alone shows nowhere.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App name, bundle ID (com.example.app) or numeric Apple ID. | |
| locale | No | Place on this locale of the version page, e.g. en-US or tr. | |
| version | No | With locale: version string, e.g. "2.4". Defaults to the most recent version. | |
| category | Yes | What the file is for in the library. | |
| file_path | Yes | Absolute path to a PNG or JPEG image, or an MP4 or MOV video, on this machine. | |
| placement_type | No | Optional. Place the uploaded file as this. Leave out to upload without placing. | |
| reference_name | No | Optional name to find the file by in the library. Defaults to the file name. | |
| placement_group | No | Optional placement group, e.g. a device class. The allowed groups per type come from the asset library reference data. | |
| preview_frame_time_code | No | Videos only, optional: the frame shown before playback, e.g. "00:00:05:00". | |
| app_event_localization_id | No | Place on this in-app event localization instead. | |
| custom_product_page_localization_id | No | Place on this custom product page localization instead. | |
| experiment_treatment_localization_id | No | Place on this product page optimization treatment localization instead. |