Skip to main content
Version: 6.0.0

SysEditCatalogItem

Update a catalog item on the server. Note: Default for buyPriceDisabled is false. If set to true, the item cannot be purchased except through a promotion.

ServiceOperation
itemCatalogSYS_EDIT_CATALOG_ITEM

Method Parameters

ParameterDescription
defIdUnique ID identifying catalog item to be updated.
versionVersion of catalog item being edited.
itemDefDataThe data to update on the catalog item. Supported types are ITEM and BUNDLE.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"defId": "sword001",
"name": {
"en": "Crimson Sword"
},
"desc": {
"en": "A sword whose blade was forged in Cherry Kool-aid!"
},
"type": "ITEM",
"category": "sword",
"tags": [
"weapon",
"pointy"
],
"buyPrice": {
"coins": 200
},
"sellPrice": {
"coins": 150
},
"image": "//xxx.jpg",
"resourceGroup": "equipment.asset",
"resourceTag": "sword001",
"meta": {
"speed": 85,
"damage": 12,
"accuracy": 80,
"range": 5
},
"initData": {
"condition": 100,
"bonus": 0
},
"pState": "DRAFT",
"publishedAt": 0,
"createdAt": 1567192113061,
"updatedAt": 1567192188475,
"version": 2,
"stackable": false,
"consumable": false,
"uses": null,
"coolDownSecs": 0,
"recoverySecs": 0,
"activatable": false,
"statusName": null,
"activeSecs": null,
"tradable": false,
"blockchain": false,
"blockchainDefId": null
},
"status": 200
}