/settings/set_multi

Assign multiple settings for a particular client_id. Returns a JSON object in which each key is mapped to a Boolean that indicates whether the key already existed. true indicates that a previous key did exist and has been overwritten, whereas false indicates that there was no previous key and a new key has been created. All values for the items parameter must be passed as strings inside quotations. Does not modify application-wide settings.

This endpoint includes the following methods:

  • POST

POST

Authentication

This endpoint supports Basic 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

Assigns the value Jay to the owner key, value true to the public key, and value 10 to the level key.


curl -X POST \
    -H "Authorization: Basic aW1fYV...NfbXk="\
    --data-urlencode for_client_id=fghi7890fghi7890 \
    --data-urlencode items='{"owner":"Jay","public":"true","level":"10"}' \
    https://my-app.janraincapture.com/settings/set_multi
  
      Running this command in Postman

Authorized Clients

  • owner 
  • login_client 
  • direct_read_access 
  • direct_access 
  • access_issuer

Security

  •  janrain-signed
  •  basic-auth

Query Parameters

Parameter Type Required Description
items string Yes JSON object containing the key-value pairs being assigned to the client.
 
for_client_id string Yes Client ID for the client being assigned the key-value pairs. Only the application owner is authorized to send request using this parameter.
 

Responses

200 OK

Response Example (application/json)


{
  "result": {
    "owner": true,
    "public": false,
    "level": false
  },
  "stat": "ok"
}