Create user

POST /user

This can only be done by the logged in user.

Body

Created user object

Body

Created user object

Body

Created user object

Responses

curl \
 -X POST /v3/user \
 -H "Content-Type: application/json" \
 -d '{"id":10,"username":"theUser","firstName":"John","lastName":"James","email":"john@email.com","password":12345,"phone":12345,"userStatus":1}'
curl \
 -X POST /v3/user \
 -H "Content-Type: application/xml"
curl \
 -X POST /v3/user \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'id=10&username=theUser&firstName=John&lastName=James&email=john%40email.com&password=12345&phone=12345&userStatus=1'
Request example
{
  "id": 10,
  "username": "theUser",
  "firstName": "John",
  "lastName": "James",
  "email": "john@email.com",
  "password": 12345,
  "phone": 12345,
  "userStatus": 1
}
Request example
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <id type="integer">10</id>
  <username>theUser</username>
  <firstName>John</firstName>
  <lastName>James</lastName>
  <email>john@email.com</email>
  <password type="integer">12345</password>
  <phone type="integer">12345</phone>
  <userStatus type="integer">1</userStatus>
</root>
Response examples (default)
{
  "id": 10,
  "username": "theUser",
  "firstName": "John",
  "lastName": "James",
  "email": "john@email.com",
  "password": 12345,
  "phone": 12345,
  "userStatus": 1
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <id type="integer">10</id>
  <username>theUser</username>
  <firstName>John</firstName>
  <lastName>James</lastName>
  <email>john@email.com</email>
  <password type="integer">12345</password>
  <phone type="integer">12345</phone>
  <userStatus type="integer">1</userStatus>
</root>