/1/ Learner - Post

Overview

The /1/learner endpoint provides for the creation of new users.

Beta API

NOTE: This API is currently in beta and applies only to the 'iFrame' API customers.

KeyValueExample
User-Agent<company identifier>The exact value here is not important, but it should include something to identify your company
Acceptapplication/json
AuthorizationBearer <your token>Bearer wV1MLkss5+sFzioJw/3M5r9A==
(Optional) Learner IDX-UserId: IDThis will attach the Learner to this User (so if you have a User who want's to create a Learner under his account/org you would add their userid.

Code Example

curl --location 'https://api-sandbox.vbmappapp.com/1/learner' \
--header 'X-UserId: ID' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
  "code": "subsdsads",
  "firstName": "subadasd",
  "lastName":  "learner",
  "color": "#ffff",
  "gender": 1,
  "isActive": 1,
  "dateOfBirth": "2014-02-01"
}
'

Example Response

[
    {
        "code": "newsss",
        "firstName": "larner",
        "lastName": "one",
        "gender": 1,
        "isActive": 1,
        "parent": null,
        "organizationId": 259,
        "dateOfBirth": "2014-02-01",
        "id": 19357
    }
]