View Categories

Delete a pet

< 1 min read

DELETE/pets/{petId}

Code Samples #

  • 💻 cURL
  • 📄 JavaScript
  • 🐍 Python
  • 🐘 PHP
  • 🔷 C#
  • Java
Copy
curl --request DELETE \
  --url 'https://petstore.example.com/v1/pets/{petId}' \
  --header 'X-Api-Key: YOUR_API_KEY'

Path Parameters #

NameTypeRequiredDescription
petIdinteger (int64)RequiredID of the pet

Responses #

204 — Deleted #

404 — Pet not found #

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.