Adds a pet to the store. The name must be unique within the store, and the species must be one the store already sells; anything else is rejected with a 400.
| Field | Type | Description |
|---|---|---|
name | string | What the pet is called, at most 64 characters. |
species | string | One of the species listed by the species endpoint. |
The pet was stored. Its new id is in the Location header, and the body holds the pet as stored.
{"id": 7, "name": "Rex", "species": "dog"}A required field is missing, the name is taken, or the species is not one the store sells.