POST api/v{version}/Printt/createuser

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

The requested API version

string

Required

Default value is 1

Body Parameters

NewCustomer
NameDescriptionTypeAdditional information
password

string

None.

gender

string

None.

birthday

string

None.

first_name

string

None.

last_name

string

None.

email

string

None.

Request Formats

application/json, text/json

Sample:
{
  "password": "sample string 1",
  "gender": "sample string 2",
  "birthday": "sample string 3",
  "first_name": "sample string 4",
  "last_name": "sample string 5",
  "email": "sample string 6"
}

text/javascript

Sample:
{"password":"sample string 1","gender":"sample string 2","birthday":"sample string 3","first_name":"sample string 4","last_name":"sample string 5","email":"sample string 6"}

application/xml, text/xml

Sample:
<NewCustomer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNITE.External.API.Support.Printt">
  <email>sample string 6</email>
  <first_name>sample string 4</first_name>
  <last_name>sample string 5</last_name>
  <birthday>sample string 3</birthday>
  <gender>sample string 2</gender>
  <password>sample string 1</password>
</NewCustomer>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'NewCustomer'.

Response Information

Resource Description

UserToken
NameDescriptionTypeAdditional information
user_id

integer

None.

access_token

string

None.

token_type

string

None.

refresh_token

string

None.

scope

string

None.

Response Formats

application/json, text/json

Sample:
{
  "user_id": 1,
  "access_token": "sample string 2",
  "token_type": "sample string 3",
  "refresh_token": "sample string 4",
  "scope": "sample string 5"
}

text/javascript

Sample:
{"user_id":1,"access_token":"sample string 2","token_type":"sample string 3","refresh_token":"sample string 4","scope":"sample string 5"}

application/xml, text/xml

Sample:
<UserToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNITE.External.API.Support.Printt">
  <access_token>sample string 2</access_token>
  <refresh_token>sample string 4</refresh_token>
  <scope>sample string 5</scope>
  <token_type>sample string 3</token_type>
  <user_id>1</user_id>
</UserToken>