Skip to main content

New pet

Webhook 

Information about a new pet in the systems

Request

Body

    petType object

    Possible values: [cat, dog, bee]

    huntingSkillstringrequired

    The measured skill for hunting

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

    Default value: lazy
    Example: adventurous
    category Category

    Categories this pet belongs to

    namestring

    Category name

    Possible values: non-empty

    sub object

    Test Sub Category

    prop1string

    Dumb Property

    namestringrequired

    The name given to a pet

    Example: Guru
    photoUrlsurl[]required

    The list of URL to a cute photos featuring pet

    Possible values: <= 20

    friendcircular(Pet)
    tags Tag[]required

    Tags attached to the pet

    Possible values: >= 1

  • Array [
  • namestring

    Tag name

    Possible values: non-empty

  • ]
  • statusstring

    Pet status in the store

    Possible values: [available, pending, sold]

Responses

Return a 200 status to indicate that the data was received successfully

Request Collapse all
Body
{
  "category": {
    "name": "string",
    "sub": {
      "prop1": "string"
    }
  },
  "name": "Guru",
  "photoUrls": [
    "string"
  ],
  "friend": {},
  "tags": [
    {
      "name": "string"
    }
  ],
  "status": "available",
  "petType": {
    "huntingSkill": "adventurous"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!