createArr

Purpose

Creates a group of new records using data from an XML document.

HTTP Method

POST

URL

https://app.infiniteblue.com/rest/api/createArr

URL Parameters

sessionId

The session ID obtained from the body of the response when calling login.

output

Optional parameter specifying the output format, one of: xml (default) or json.

Request Body

XML document containing object name, "useIds" attribute(true or false - same meaning as in the Web API), and Fields for new records wrapped in <data> XML nodes (see example below).

Required Permissions

Create permission for the requested object types.

Response

The ID and integration name of the new record and a status of ok (see examples below).

Example

Input example:

<?xml version="1.0" encoding="utf-8" ?>
<request>
<data objName="person" useIds="false">
<Field name="club_member">false</Field>
<Field name="lastName">Smith</Field>
<Field name="status">Created</Field>
</data>
<data objName="person" useIds="false">
<Field name="club_member">true</Field>
<Field name="lastName">Green</Field>
<Field name="status">Created</Field>
</data>
</request>

Output example (XML):

<resp status="ok">
<data id="314452" objName="person"/>
<data id="314453" objName="person"/>
</resp>

Output example (JSON):

{
      "ids": 314452,
      "objName": "person",
      "status": "ok"
   },
      {
      "ids": 314453,
      "objName": "person",
      "status": "ok"
   }