Skip to main content
Version: 5.7.0

SysUpdateProduct

Updates an existing product with the specifed values. Pass -1 as the version to bypass version checking.

ServiceOperation
productManagementSYS_UPDATE_PRODUCT

Method Parameters

ParameterDescription
itemIdThe product item identifier.
versionThe product configuration version.
productJsonThe product details to update. Note: If itemId is included in the productJson, it is ignored. The itemId provided as a direct parameter takes priority.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"data": {
"gameId": "23783",
"itemId": "barBundle1Imp",
"type": "Subscription",
"iTunesSubscriptionType": "Free",
"category": "bars",
"title": "Bars (10)",
"description": "The new bundle of 10 Bars.",
"imageUrl": "",
"currency": {
"bar": 10
},
"parentCurrency": {},
"peerCurrency": {},
"defaultPriceId": -1,
"prices": [],
"data": {
"customAttr": "value"
},
"createdAt": 1592594640577,
"updatedAt": 1592596878019,
"version": 2,
"absoluteImageUrl": "https://api.braincloudservers.com/files/portal/g/23783"
},
"status": 200
}