User Tools

Site Tools


Sidebar

1.8:api:item:update

Table of Contents

update()

Available since version: 1.8
The method is used to control all item attributes including item applications linkage.

Parameters

ParameterTypeOptionalDescriptionDetails
itemidstring Item ID.
item attributeany Yes New value for a item attribute.

Returns

ParameterDescription
resultOperation successful. Result will contain array of updated Item IDs.
errorIn case of any errors

Example

Enable item, .i.e set its status to '0':

  {
   "jsonrpc":"2.0",
   "method":"item.update",
   "params":{
      "itemid": "100100000010092",
      "status": 0
   },
   "auth":"700ca65537074ec963db7efabda78259",
   "id":2
  }

Retrieved updated item IDs:

  {
   "jsonrpc":"2.0",
   "result": {
       "itemids":["100100000010092"]
   },
   "id":2
  }