1. Sample APIs
E-Learning
  • Start your Apidog journey
  • Sample APIs
    • Find pet by ID
      GET
    • Add a new pet to the store
      POST
    • Update an existing pet
      PUT
    • Deletes a pet
      DELETE
    • Finds Pets by status
      GET
  • Schemas
    • Sample Schemas
      • Pet
      • Category
      • Tag
  1. Sample APIs

Deletes a pet

DELETE
/pet/{petId}

Request

Path Params

Header Params

Responses

🟢200OK
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE '/pet/' \
--header 'api_key;'
Response Response Example
{
    "code": 0
}
Modified at 2025-08-06 09:13:01
Previous
Update an existing pet
Next
Finds Pets by status
Built with