Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{copyright}2013 Adaptavist.com Ltd.{copyright}

 

Endpoint ID:1001
MethodPOST
URL:

/user/ {highlight:orange}orange{highlight}

 contract-id

Identifies the set of contract fields passed in the request body. If omitted, the default contract for the particular app is used.

Request body:

JSON data with properties corresponding to the fields in the specified contract

Code Block
titleExample 1 - Contract specifies full name, email and password:
{
	"name": "John Doe",
	"email": "mailbox@mailserver.com",
	"password": "password"
}
Response body:

JSON data with key(s) for the newly created account and data for the account. The result will always hold the dialogportal™ master key and if the app making the request is configured to use a specific external key, this key is also included in the response.

Code Block
titleExample 1 – App setting specifies no specific key:
{
	"dpKey": 123456
	"name": "John Doe",
	"email": "mailbox@mailserver.com",
}
Code Block
titleExample 2 – App setting specifies external key type:
{
	"dpKey": 123456,
	"extKeyType": 12,
	"extKey": "key"
	"name": "John Doe",
	"email": "mailbox@mailserver.com",
}

 

Status codes:201

Account was created with success

 303

Account already exists, redirected to “Get Account Data”

 400

Request is valid but data validation failed