curl -X PUT \
'https://api.appcharge.com/components/v1/product/gold_coins_100' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
--data '{
"name": "Premium Gold Coins Pack",
"displayName": "Premium Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"textFontColorHex": "#d4af37",
"productImageId": "507f1f77bcf86cd799439011"
}'
curl -X PUT \
'https://api.appcharge.com/components/v1/product/gold_coins_100' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
--data '{
"name": "Premium Gold Coins Pack",
"displayName": "Premium Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"textFontColorHex": "#d4af37",
"productImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5"
}'
{
"id": "507f1f77bcf86cd799439015",
"name": "Premium Gold Coins Pack",
"displayName": "Premium Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"description": "A pack of 100 gold coins.",
"prefix": "Get",
"suffix": "coins",
"textFontColorHex": "#d4af37",
"productImageId": "507f1f77bcf86cd799439011",
"productImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5",
"productPrefixImageUrl": "https://media.appcharge.com/product-prefix1.png"
}
{
"id": "507f1f77bcf86cd799439015",
"name": "Premium Gold Coins Pack",
"displayName": "Premium Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"description": "A pack of 100 gold coins.",
"prefix": "Get",
"suffix": "coins",
"textFontColorHex": "#d4af37",
"productImageId": "507f1f77bcf86cd799439023",
"productImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5",
"productPrefixImageUrl": "https://media.appcharge.com/product-prefix1.png"
}
Update Product
Updates a product.
curl -X PUT \
'https://api.appcharge.com/components/v1/product/gold_coins_100' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
--data '{
"name": "Premium Gold Coins Pack",
"displayName": "Premium Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"textFontColorHex": "#d4af37",
"productImageId": "507f1f77bcf86cd799439011"
}'
curl -X PUT \
'https://api.appcharge.com/components/v1/product/gold_coins_100' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
--data '{
"name": "Premium Gold Coins Pack",
"displayName": "Premium Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"textFontColorHex": "#d4af37",
"productImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5"
}'
{
"id": "507f1f77bcf86cd799439015",
"name": "Premium Gold Coins Pack",
"displayName": "Premium Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"description": "A pack of 100 gold coins.",
"prefix": "Get",
"suffix": "coins",
"textFontColorHex": "#d4af37",
"productImageId": "507f1f77bcf86cd799439011",
"productImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5",
"productPrefixImageUrl": "https://media.appcharge.com/product-prefix1.png"
}
{
"id": "507f1f77bcf86cd799439015",
"name": "Premium Gold Coins Pack",
"displayName": "Premium Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"description": "A pack of 100 gold coins.",
"prefix": "Get",
"suffix": "coins",
"textFontColorHex": "#d4af37",
"productImageId": "507f1f77bcf86cd799439023",
"productImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5",
"productPrefixImageUrl": "https://media.appcharge.com/product-prefix1.png"
}
curl -X PUT \
'https://api.appcharge.com/components/v1/product/gold_coins_100' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
--data '{
"name": "Premium Gold Coins Pack",
"displayName": "Premium Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"textFontColorHex": "#d4af37",
"productImageId": "507f1f77bcf86cd799439011"
}'
curl -X PUT \
'https://api.appcharge.com/components/v1/product/gold_coins_100' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
--data '{
"name": "Premium Gold Coins Pack",
"displayName": "Premium Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"textFontColorHex": "#d4af37",
"productImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5"
}'
{
"id": "507f1f77bcf86cd799439015",
"name": "Premium Gold Coins Pack",
"displayName": "Premium Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"description": "A pack of 100 gold coins.",
"prefix": "Get",
"suffix": "coins",
"textFontColorHex": "#d4af37",
"productImageId": "507f1f77bcf86cd799439011",
"productImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5",
"productPrefixImageUrl": "https://media.appcharge.com/product-prefix1.png"
}
{
"id": "507f1f77bcf86cd799439015",
"name": "Premium Gold Coins Pack",
"displayName": "Premium Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"description": "A pack of 100 gold coins.",
"prefix": "Get",
"suffix": "coins",
"textFontColorHex": "#d4af37",
"productImageId": "507f1f77bcf86cd799439023",
"productImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5",
"productPrefixImageUrl": "https://media.appcharge.com/product-prefix1.png"
}
Authorizations
Body
Product text font color in hex format.
^#[0-9a-fA-F]{6}$"#d4af37"
Asset ID of an existing product image in the Assets Library. Must reference an asset of type product. Reuses the existing asset without creating a duplicate.
"507f1f77bcf86cd799439011"
Product image URL in PNG or JPEG format. Creates a new asset from the URL.
For uploaded files, this is the Appcharge-hosted CDN URL. For external image URLs, this is the original image URL served from the provided URL. External image URLs are saved and used as-is, and Appcharge doesn't download, copy, upload, or host them. Images must remain available at the provided URLs.
We recommend uploading image files instead of using external URLs when possible.
"https://media.appcharge.com/media/69133d595af23405d8e843a5"
Product prefix image URL in PNG or JPEG format.
For uploaded files, this is the Appcharge-hosted CDN URL. For external image URLs, this is the original image URL served from the provided URL. External image URLs are saved and used as-is, and Appcharge doesn't download, copy, upload, or host them. Images must remain available at the provided URLs.
We recommend uploading image files instead of using external URLs when possible.
"https://media.appcharge.com/media/69133d595af23405d8e843a5"
Response
Product updated successfully.
Was this page helpful?
