/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

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 Code Samples Using Postman

The Janrain REST API code samples are written using Curl, but they can easily be run from within Postman. To use one of our code samples in Postman:

  1. Click the Copy to Clipboard button located directly beneath the code sample
  2. In Postman, click Import to display the Import dialog box.
  3. In the Import dialog box, click Paste Raw Text, and then paste in the copied code. The Import dialog box should look similar to this:

  4. Click Import, and the Curl command will be converted to a format that can be run from within Postman. All you need to do now is configure the command to work with your Janrain implementation.

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

Security

  •  janrain-signed
  •  basic-auth

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.