/settings/set_default_multi

Assign multiple keys in the application-wide default settings. This will create a new key with a default value if the key does not yet exist in the application. If the key does exist, the value will be overwritten.

Returns a Boolean value that indicates whether the key already existed. A true value means the key has been overwritten, whereas false means a new key has been created.

Note. You cannot use settings/set_default_multi to modify any client-specific 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 items='{"owner":"Jay","public":"true","level":"10"}' \
    https://my-app.janraincapture.com/settings/set_default_multi
  
      Running this command in Postman

Authorized Clients

  • owner

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.
 

Responses

200 OK

Response Example (application/json)


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