Skip to content

Create user

Request

This can only be done by the logged in user.

Bodyapplication/jsonrequired

Created user object

One of:
petPettie (object) or Tag (object)
One of:
usernamestring, >= 4 characters

User supplied username

Example:"John78"
firstNamestring, non-empty

User first name

Example:"John"
lastNamestring, non-empty

User last name

Example:"Smith"
emailstring, (email)

User email address

Example:"john.smith@example.com"
passwordstring, (password), >= 8 characters/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/

User password, MUST contain a mix of upper and lower case letters, as well as digits

Example:"drowssaP123"
phonestring/^\+(?:[0-9]-?){6,14}[0-9]$/required

User phone number in international format

Example:"+1-202-555-0192"
userStatusinteger, (int32)

User status

Value:10
imagestring, base64

User image

addressesArray of items, <= 10 characters, >= 0 items
curl -i -X POST \
  https://innovario.apishowdown.com/_mock/petstore/user \
  -H 'Content-Type: application/json' \
  -d '{
    "pet": {
      "category": {
        "name": "string",
        "sub": {
          "prop1": "string"
        }
      },
      "name": "Guru",
      "photoUrls": [],
      "friend": {},
      "tags": [
        {
          "name": "string"
        }
      ],
      "status": "available",
      "petType": "cat",
      "huntingSkill": "adventurous"
    },
    "username": "John78",
    "firstName": "John",
    "lastName": "Smith",
    "email": "john.smith@example.com",
    "password": "drowssaP123",
    "phone": "+1-202-555-0192",
    "userStatus": 10,
    "image": "string",
    "addresses": [
      {
        "city": "string",
        "country": "string",
        "street": "string"
      },
      0
    ]
  }'

Responses

successful operation