Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview

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

Endpoint Details

Required Headers

Key
Value
Example
Acceptapplication/json
AuthorizationBearer <your token>Bearer wV1MLk5+sFzioJw/3M5r9A==
Content-Typeapplication/json

Fields

Field
Type
Optional
Description
codeStringOptionalA unique code that correlates the user to an external database (maximum 191 chars); correlates to X-UserCode
firstNameStringOptional
lastNameStringOptional
emailStringRequiredThe email address of the user (we will not send email to your user)
localeStringOptionalThe locale that the user prefers (default: 'en')

Example

Example

curl -X POST \
-H 'Authorization: Bearer L2Hth4lRwgHRBWtX8Hkl5w==' \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{ "code": "Code: 1234", "firstName": "Fred", "lastName": "Flintstone", "email": "fred@example.com" }' \
http://data-sandbox.datamtd.com/1/user

Response

{
"locale": "en",
"firstName": "Fred",
"id": 13,
"dmtdAdministrator": false,
"code": "Code: 1234",
"email": "fred@example.com",
"updatedAt": "2019-06-25T09:39:54Z",
"emailVerified": true,
"createdAt": "2019-06-25T09:39:54Z",
"lastName": "Flintstone"
}


  • No labels