cURL
curl --request POST \ --url https://api-sandbox.appcharge.com/components/v1/asset \ --header 'Content-Type: multipart/form-data' \ --header 'x-publisher-token: <api-key>' \ --form type=product \ --form name=gold_coins_icon \ --form file=@example-file
{ "id": "507f1f77bcf86cd799439011", "name": "gold_coins_icon", "type": "product", "imageUrl": "https://cdn.appcharge.com/507f1f77bcf86cd799439011_product.png", "contentType": "image/png", "externalImageUrl": "https://example.com/assets/gold_coins_icon.png" }
Creates an asset in the Assets Library.
Publisher token, as displayed in the Publisher Dashboard.
Upload asset via file.
Asset uploaded successfully.
The response is of type object.
object
Was this page helpful?