User Tools

Site Tools


cmd:update

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cmd:update [2020/06/06 15:51] devacmd:update [2020/06/06 17:56] (current) deva
Line 2: Line 2:
 The update command is used to change attributes of an existing node, referring its id, the attribute by name and the raw value as text: The update command is used to change attributes of an existing node, referring its id, the attribute by name and the raw value as text:
 <code> <code>
-update <id> <attribute> <value>+update <node id> <attribute> <value>
 </code> </code>
-  * The node ''id'' is a number.+  * The ''node id'' is a number.
   * The ''attribute'' is a text referring one of the defined [[attr:overview|attributes]].   * The ''attribute'' is a text referring one of the defined [[attr:overview|attributes]].
-  * the ''value'' is a string which must be enclosed in quotes (single or double at your leisure, but must be matched) if it contains any white-space or special characters.+  * The ''value'' is a string which must be enclosed in double-quotes if it contains any white-space or special characters.
  
 If the node id exists and the user has permissions to alter the node and the attribute is valid, the node attribute will be altered and all subscribers will be notified. If the node id exists and the user has permissions to alter the node and the attribute is valid, the node attribute will be altered and all subscribers will be notified.
-If the user does not have the right permissions, the node id does not exists or the attribute is not valid, nothing will happen on the server and an [[cmd:error]] is sent back.+If the user does not have the right permissions, the node id does not exists or the attribute is not valid, nothing will happen on the server and an [[cmd:s_error|error]] is sent back.
cmd/update.1591451463.txt.gz · Last modified: 2020/06/06 15:51 by deva