Skip to main content

Create user

POST 

/user

This can only be done by the logged in user.

Request

Body

required

Created user object

    pet object
    oneOf
    category Category
    name stringrequired

    Possible values: non-empty

    Category name

    sub object

    Test Sub Category

    prop1 stringrequired

    Dumb Property

    name stringrequired

    The name given to a pet

    photoUrls url[]required

    Possible values: <= 20

    The list of URL to a cute photos featuring pet

    friend circular(pet)required
    tags Tag[]

    Possible values: >= 1

    Tags attached to the pet

  • Array [
  • name stringrequired

    Possible values: non-empty

    Tag name

  • ]
  • status stringrequired

    Possible values: [available, pending, sold]

    Pet status in the store

    petType string

    Possible values: [cat, dog, bee]

    Type of a pet

    huntingSkill stringrequired

    Possible values: [clueless, lazy, adventurous, aggressive]

    Default value: lazy

    The measured skill for hunting

    username stringrequired

    Possible values: >= 4 characters

    User supplied username

    firstName stringrequired

    Possible values: non-empty

    User first name

    lastName stringrequired

    Possible values: non-empty

    User last name

    email emailrequired

    User email address

    password passwordrequired

    Possible values: >= 8 characters, Value must match regular expression /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/

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

    phone stringrequired

    Possible values: Value must match regular expression /^\+(?:[0-9]-?){6,14}[0-9]$/

    User phone number in international format

    userStatus int32required

    User status

Responses

successful operation

Loading...