createLinks

Request Method: POST

Description: Create a new link(s)

URL: https://api.iovox.com:444/Links?v=3&method=createLinks

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use
INTEGERYES
outputSpecifying XML or JSON returns data in XML or JSON formatXMLSTRINGNO

Payload

The following XML payload must be sent with a createLinks request:

<?xml version="1.0" encoding="utf-8"?>
<request>
    <link>
        <node_id>12ABC34</node_id>
        <link_id>1234</link_id>
        <link_name>House Buyer Mag</link_name>
        <link_type>Magazine Advertisement</link_type>
        <link_date>2008-11-19 14:10:46</link_date>
        <click_to_call>1</click_to_call>
    </link>
    <link>
       ...
    <link>
 </request>

Payload Description

Node NameDescriptionDefault ValueData TypeMandatory

link > node_id

Node ID to attach the link to
STRINGYES
link > link_idAn ID by which the reference of the link
STRINGYES
link > link_nameName of the link
STRINGYES
link > link_typeThe type of link
STRINGYES
link > link_dateA reference date to be stored alongside the Link. Link 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
link > click_to_callClick to Call status - 1 (on) or 0 (off)1INTEGERNO

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 link to the request
400Link ID x of y EmptyAdd link_id for Link x (item) of y (total)
400Link ID x of y already existsCorrect the link_id for Link x (item) of y (total)
400Link Name x is already attached to Node yCorrect link name x so that it is unique within the links attached to Node y
400Node ID x of y EmptyAdd node_id for link x (item) of y (total)
400Node ID x of y does not existCorrect node_id for link x (item) of y (total)
400Link Name x of y EmptyAdd link_name for link x (item) of y (total)
400Link Type x of y EmptyAdd link_type for link x (item) of y (total)
400Link Date x of y InvalidCorrect link_date for link x (item) of y (total)
400Click to Call Status x of y InvalidCorrect click_to_call status for link x (item) of y (total)
400Duplicate Link Name x for Node y in the XMLCorrect link name so that it is unique within the links attached to Node y
500Internal Server ErrorRetry later

Success Result

HTTP/1.1 201 Created