createNodes

Request Method: POST

Description: Create a new node(s)

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

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 createNodes request:

<?xml version="1.0" encoding="utf-8"?>
<request>
    <node>
       <node_id>Westbourne Apartments</node_id>
       <node_name>150 Westbourne Grove</node_name>
       <node_type>Property</node_type>
       <node_date>2008-11-19 14:10:46</node_date>
    </node>
    <node>
       <node_id>Tyler's Hairdressers</node_id>
       <node_name>71 Upper Walthamstow Road</node_name>
       <node_type>Business</node_type>
       <node_date>2008-11-19 14:10:46</node_date>
    </node>
 </request>

Payload Description

The following parameters can be sent in the querystring

Node NameDescriptionDefault ValueData TypeMandatory
node > node_idNode ID to identify the Node by
STRINGYES
node > node_nameName of the Node
STRINGYES
node > node_typeThe type of Node
STRINGYES
node > 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.CURRENT DATEDATETIMENO

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 POST. x attemptedSwitch request method x to POST
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 for Node x (item) of y (total)
400Node ID x of y already existsRemoved or change node_id x (item) of y (total)
400Node Name x of y EmptyAdd node_name for Node x (item) of y (total)
400Node Type x of y EmptyAdd node_type for Node x (item) of y (total)
400Node Date x of y InvalidCorrect node_date for Node x (item) of y (total)
400Duplicate Node ID ReceivedChange node_id to be unique
500Internal Server ErrorRetry later

Success Result

HTTP/1.1 201 Created