Update Pet With Form

Update Pet With Form

Updates a pet resource based on the form data.

Request
URI
POST
https://petstore3.swagger.io/pet/{petId}
COPY
Path Parameters
integer
petId
Required

ID of pet that needs to be updated

Query Parameters
string
name
Optional

Name of pet that needs to be updated

string
status
Optional

Status of pet that needs to be updated


Authentication
This operation uses the following authentication methods.
Responses
200

successful operation

Returns Pet of type(s) application/json
{
    "id": 10,
    "name": "doggie",
    "category": {
        "id": 1,
        "name": "Dogs"
    },
    "photoUrls": [
        "string"
    ],
    "tags": [
        {
            "0": "P",
            "1": "e",
            "2": "t",
            "3": " ",
            "4": "O",
            "5": "b",
            "6": "j",
            "7": "e",
            "8": "c",
            "9": "t",
            "id": 0,
            "name": "string"
        }
    ],
    "status": "string"
}
integer As int64 As int64
id
Optional

id

string
name
Required

name

object
category
Optional

category

array of string
photoUrls
Required

photoUrls

array of object
tags
Optional

tags

string
status
Optional

pet status in the store

Possible values are : available, pending, sold,

400

Invalid input

Operation doesn't return any data structure

default

Unexpected error

Returns Error of type(s) application/json
"Error Object"
string
code
Required

code

string
message
Required

message


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' https://{api_host}/pet/{petId}