/petCreate a new pet in the store
Creates a new pet in the store. Supply name and photoUrls at minimum — category, tags, and status are optional. status must be one of available, pending, or sold if provided. Returns the created pet object with its generated identifier.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Pet object to create. name and photoUrls are required.
The unique identifier for the pet. Generated by the store if omitted.
The name of the pet.
A category object containing an id and name for the pet's category.
An array of URLs pointing to images of the pet. At least one URL is
An array of tag objects, each with an id and name, for categorising the pet.
pet status in the store
pet status in the store
Omitting name or photoUrls returns a 400. A 422 is returned when the request body fails validation — ensure all required fields are present and properly formatted.