This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:sidebar:remoteapi:apiref:item:update_custom_property [25/01/2013 14:53] zuve |
en:sidebar:remoteapi:apiref:item:update_custom_property [24/10/2013 13:11] mast |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== Custom properties ====== | ====== Custom properties ====== | ||
- | To create new custom property for item or update existed one use command **item/update_custom_property**: | + | ===== Create/update property ===== |
+ | To create a new custom property for an item or update an existed one, use the command **item/update_custom_property**: | ||
<code javascript> | <code javascript> | ||
svc=item/update_custom_property¶ms={"itemId":<long>, | svc=item/update_custom_property¶ms={"itemId":<long>, | ||
"name":<text>, | "name":<text>, | ||
"value":<text>} | "value":<text>} | ||
+ | </code> | ||
+ | |||
+ | ===== Delete property ===== | ||
+ | To delete custom property use the same command but with empty **value**: | ||
+ | <code javascript> | ||
+ | svc=item/update_custom_property¶ms={"itemId":<long>, | ||
+ | "name":<text>, | ||
+ | "value":""} | ||
</code> | </code> | ||
|