/entity.bulkCreate

Create multiple new data records of a specific entityType in a single API call. If the request is structurally valid and properly authorized, it is added independently. The result contains a list of uuid_results and ID results from each record addition or a failure message for each record.

This endpoint includes the following methods:

  • POST

POST

Authentication

This endpoint supports both Basic authentication (recommended) and janrain-signed authentication.

How to Create an Authentication String

Base URL

The base URL for this endpoint is your Janrain Capture domain; for example:

https://educationcenter.us-dev.janraincapture.com

Your Capture domains (also known as Registration domains) can be found in the Janrain Console on the Manage Application page:

Examples

Example request

Create three new users with some statuses plural entries.


curl -X POST \
    -H "Authorization: Basic aW1fYV...NfbXk="\
    --data-urlencode type_name=user\
    --data-urlencodeall_attributes='[{"familyName":"Jones","givenName":"Abe",
      "email":"jonesa@example.com","statuses":[{"status":"active",
      "statusCreated":"2015-12-15T07:36:25Z"}]},{"givenName":"Jackson",
      "familyName":"Gordon","email":"gjack@test.com","statuses":[{"status":
      "inactive","statusCreated":"2015-10-12T04:00:00Z"}]},{"givenName":"Sally",
      "familyName": "Smith","email":"ssmith@myorg.org"}]' \
    https://my-app.janraincapture.com/entity.bulkCreate
          
      Running this command in Postman

Example Results


{
  "uuid_results": [
   "efd7fe4e-c0a2-4b80-876e-1d06df393579",
   "3314d744-09a9-4264-a17f-402d3e4824e7",
   "639dbbbc-6cac-4054-83be-92e08ced155f"
 ],
  "results": [
    11393,
    11395,
    11397
  ],
  "stat": "ok"
}
          

Authorized Clients

  • owner 
  • direct_access

Query Parameters

Parameter Type Required Description
type_name string Yes entityType of the entity.
 
all_attributes string Yes Attribute names and values (formatted as a JSON object) for the entity. This argument is parsed as one entity.: if any part of the argument fails to parse, the entire request will be rejected.