create2

Purpose

Warning: This method is deprecated. Please change any existing code to use createRecord, which takes an object ID as a parameter.

Creates a new record using data from URL parameters. The names of the URL parameters used by this API are field integration names. If a field is not found, the system ignores the URL parameter. Field values must be formatted the same way as CSV imported values. For more information, see Importing Data.

Note: Use this method with the PHP CURL package.

HTTP Method

POST

URL

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

URL Parameters

sessionId

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

objName

The object integration name.

useIds

true or false.

output

The output format, one of: xml(default), json, or csv.

field1;[field2; ...]

Parameter's name - integration name of field to set; parameter's value - value of field to set.

Permissions Required

Create permission for the requested object type.

Response

The ID and integration name of the new record wrapped in an XML document (see example below).

Example

Input example (URL parameters):

&objDefName=person&useIds=false&club_member=false&lastName=Smith&status=Created

Output example:

<resp status="ok">
<data id="314452" objName="person" />
<Msg>12 fields have been processed</Msg>
</resp>