logo
On this page

Deletes a pet

DEL

https://petstore.swagger.io/v2/pet/:petId

Request

Path Parameters

    petId int64required

    Pet id to delete

Header Parameters

    api_key string
    Example: Bearer <TOKEN>

Responses

Invalid pet value

Authorization: oauth2

name: petstore_authtype: oauth2scopes: write:pets,read:petsdescription: Get access to data while protecting your account credentials.
OAuth2 is also a safer and more secure way to give you access.
flows: {
  "implicit": {
    "authorizationUrl": "http://petstore.swagger.io/api/oauth/dialog",
    "scopes": {
      "write:pets": "modify pets in your account",
      "read:pets": "read your pets"
    }
  }
}

1
Copied!
Request
Collapse all
Base URL
https://petstore.swagger.io/v2
Default server
Auth
Bearer Token
Parameters
pathrequired
header
RESPONSEClear

Click the "Send" button above and see the response here!

Previous

Delete user

Next

Find pet by ID

On this page

Back to top