Skip to main content

Try It Now Dialog

delete_pet_by_id

deletes a single pet based on the ID supplied


Method

  • JSON-RPC method name: delete_pet_by_id
  • JSON-RPC version: 2.0

Parameters

NameTypeRequiredDescription
idintegeryesID of pet to delete

Parameter schema

{
"id": {
"description": "ID of pet to delete",
"required": true,
"schema": {
"type": "integer"
}
}
}

Result

  • Name: pet
  • Description: pet deleted
  • Type: any

Result schema

{}

Positional parameters

Parameter order:

  1. id

Errors

This method may return JSON-RPC standard errors (e.g. -32600, -32601, -32602, -32603) as well as application-specific errors.

TODO: Document method-specific error codes and conditions.