Updates a pet in the store with form data.
POST
/pet/{petId}
curl -X POST 'https://petstore3.swagger.io/api/v3/pet/0?name=string&status=string'package main
import ( "context" "net/http")
func main() { ctx := context.Background() req, err := http.NewRequestWithContext(ctx, "POST", "https://petstore3.swagger.io/api/v3/pet/0?name=string&status=string", nil) if err != nil { panic(err) } resp, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer resp.Body.Close()}import requests
response = requests.request("POST", "https://petstore3.swagger.io/api/v3/pet/0?name=string&status=string")print(response.json())const response = await fetch('https://petstore3.swagger.io/api/v3/pet/0?name=string&status=string', { method: 'POST' });const data = await response.json();Updates a pet resource based on the form data.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” petId
required
integer format: int64
ID of pet that needs to be updated
Query Parameters
Section titled “Query Parameters ” name
string
Name of pet that needs to be updated
status
string
Status of pet that needs to be updated
Responses
Section titled “ Responses ”Successful operation
object
category
object
id
integer format: int64
name
string
id
integer format: int64
name
required
string
photoUrls
required
Array<string>
status
Pet status in the store
string
tags
Array<object>
object
id
integer format: int64
name
string
Example
{ "category": { "id": 1, "name": "Dogs" }, "id": 10, "name": "doggie", "status": "available"}object
category
object
id
integer format: int64
Example
1 name
string
Example
Dogs id
integer format: int64
Example
10 name
required
string
Example
doggie photoUrls
required
Array<string>
status
Pet status in the store
string
tags
Array<object>
object
id
integer format: int64
name
string
Invalid input
default
Section titled “default ”Unexpected error