updateNodes

Request Method: PUT

Description: Update node(s) details

URL: https://api.iovox.com:444/Nodes?v=3&method=updateNodes

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use
INTEGERYES

Payload

The following XML payload must be sent with an updateNodes request:

<?xml version="1.0" encoding="utf-8"?>
<request>
     <node>
         <node_id>ext1</node_id>
         <new_node_id>ext12</new_node_id>
         <node_name>My first updated API node</node_name>
         <node_type>My updated Node Type</node_type>
         <node_date>2008-11-19 14:10:46</node_date>
     </node>
     <node>
         ...
     </node>
 </request>

Payload Description

Node NameDescriptionDefault ValueData TypeMandatory
node_id  Node ID that relates to the node whose details are being updated
STRINGYES
new_node_id  New Node ID for the node we want to update.
STRINGNO
node_nameThe new Node Name
STRINGNO
node_typeThe new Node Type
STRINGNO
node_dateA reference date to be stored alongside the Node. Node date format is YYYY-MM-DD HH:MM:SS with hours, minutes and seconds being optional. Hours, minutes and seconds defaults to 00:00:00.
DATETIMENO

Result

Error Result

HTTP CodeError StringResolution
400API Version EmptyAdd a value for the v parameter in the query string
400API Version InvalidCorrect v parameter
400Request Method must be PUT. x attemptedSwitch request method x to PUT
400XML EmptyAdd xml to the request body
400XML parse error. x at line y, column zCorrect XML at point x on line y, column z
400Request EmptyAdd at least one node to the request
400Node ID x of y EmptyAdd node_id x (item) of y (total)
400Node ID x of y does not existRemoved or change node_id x (item) of y (total)
400New Node ID x of y already existRemoved or change new_node_id x (item) of y (total)
400Node Name x of y EmptyAdd node_name for Node x (item) of y (total) or remove node_name x of y from the XML
400Node Type x of y EmptyAdd node_type for Node x (item) of y (total) or remove node_type x of y from the XML
400Node Date x of y InvalidCorrect node_date for Node x (item) of y (total)
500Internal Server ErrorRetry later

Success Result

HTTP/1.1 204 No Content