Skip to content

Powered by Grav

Updates a pet in the store with form data.

Updates a pet in the store with form data.

POST /pet/{petId}
Updates a pet resource based on the form data.

Parameters

Name Type Description
petId required integer ID of pet that needs to be updated
name optional string Name of pet that needs to be updated
status optional string Status of pet that needs to be updated
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 input

© 2025 Grav. All rights reserved.