Skip to content

Create user

Request

This can only be done by the logged in user.

Body

Created user object

idinteger, (int64)
Example:10
usernamestring
Example:"theUser"
firstNamestring
Example:"John"
lastNamestring
Example:"James"
emailstring
Example:"john@email.com"
passwordstring
Example:12345
phonestring
Example:12345
userStatusinteger, (int32)

User Status

Example:1
curl -i -X POST \
  https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/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
  }'

Responses

successful operation

Body
idinteger, (int64)
Example:10
usernamestring
Example:"theUser"
firstNamestring
Example:"John"
lastNamestring
Example:"James"
emailstring
Example:"john@email.com"
passwordstring
Example:12345
phonestring
Example:12345
userStatusinteger, (int32)

User Status

Example:1
Response
{ "id": 10, "username": "theUser", "firstName": "John", "lastName": "James", "email": "john@email.com", "password": 12345, "phone": 12345, "userStatus": 1 }