To create a new custom property for an item or update an existed one, use the command item/update_custom_property:
svc=item/update_custom_property¶ms={"itemId":<long>, "name":<text>, "value":<text>}
Name | Description |
---|---|
itemId | item ID |
name | custom property name |
value | custom property value |
{ "n":<text>, /* custom property name */ "v":<text> /* custom property value */ }
Code | Value |
---|---|
1 | invalid session |
2 | invalid service name |
3 | invalid result |
4 | invalid format or value of parameters |
6 | error updating custom property |
7 | access denied |