Skip to main content
Version: 5.7.0

SysSetInvisibleCatalogItem

Set the specified catalog item to invisible on the server.

ServiceOperation
itemCatalogSYS_SET_INVISIBLE_CATALOG_ITEM

Method Parameters

ParameterDescription
defIdUnique ID identifying catalog item.
versionVersion of catalog item being edited.
forceSpecify true to set invisible even if the item has previously been retired or revoked, otherwise false.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"data": {
"defId": "sword001a",
"name": "Crimson Sword - Alt",
"desc": "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": "INVISIBLE",
"publishedAt": 0,
"createdAt": 1567192159250,
"updatedAt": 1567192312406,
"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
}