updateLinks

Request Method: PUT

Description: Update link(s) details

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

The following parameters must be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use
INTEGERYES

Payload

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

<?xml version="1.0" encoding="utf-8"?>
<request>
     <link>
         <link_id>ext1</link_id>
         <new_link_id>ext12</new_link_id>
         <link_name>My updated Link Name</link_name>
         <link_type>My updated Link Type</link_type>
         <click_to_call>1</click_to_call>
         <link_date>2008-11-19 14:10:46</link_date>
     </link>
     <link>
         ...
     </link>
 </request>

Payload Description

Node NameDescriptionDefault ValueData TypeMandatory
link_idThe Link ID that relates to the link whose details are being updated
STRINGYES
new_link_idThe New Link ID we want to assign to the current link.
STRINGNO
link_nameThe new Link Name
STRINGNO
link_typeThe new Link Type
STRINGNO
click_to_callThe Click to Call status of the Link (1 = on, 0 = off)
INTEGERNO
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

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 links to the request
400Link ID x of y EmptyAdd link_id x (item) of y (total)
400Link ID x of y does not existCorrect link_id x (item) of y (total)
400New Link ID x of y already existCorrect link_id x (item) of y (total)
400Link Name x of y EmptyAdd link_name for Link x (item) of y (total) or remove empty link_name
400Link Name x is already attached to NodeCorrect the link_name x which is already attached to the Node
400Duplicate Link Name x for Node in the XMLCorrect the duplicated link_name x for the node in the XML
400Link Type x of y EmptyAdd link_type for Link x (item) of y (total) or remove empty link_type
400Link Date x of y InvalidCorrect link_date for Node x (item) of y (total)
400Click to Call Status x of y InvalidCorrect wrong click_to_call status
500Internal Server ErrorRetry later

Success Result

HTTP/1.1 204 No Content