Skip to content

Powered by Grav

Update an existing pet.

Update an existing pet.

PUT /pet
Update an existing pet by Id.

Parameters

Name Type Description
id optional integer
name required string
category optional object
photoUrls required array
tags optional array
status optional string pet status in the store
JSON
{
    "name": "doggie",
    "category": {
        "name": "Dogs"
    },
    "photoUrls": [
        "string"
    ],
    "tags": [
        {
            "name": "string"
        }
    ],
    "status": "available"
}
JSON
{
    "id": 10,
    "name": "doggie",
    "category": {
        "id": 1,
        "name": "Dogs"
    },
    "photoUrls": [
        "string"
    ],
    "tags": [
        {
            "id": 1,
            "name": "string"
        }
    ],
    "status": "available"
}

Response Codes

200 Successful operation
400 Invalid ID supplied
404 Pet not found
422 Validation exception

© 2025 Grav. All rights reserved.