Skip to main content
Version: 5.7.0

SysPublishCatalogItem

Publish the specified catalog item on the server.

ServiceOperation
itemCatalogSYS_PUBLISH_CATALOG_ITEM

Method Parameters

ParameterDescription
defIdUnique ID identifying catalog item.
versionVersion of catalog item being edited.
forceSpecify true to publish items that have previously been retired or revoked, otherwise false.

Usage

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