Petnow LogoPetnow

Update a pet

Replace the metadata of a pet and, optionally, its breed. If you leave out `breed`, the breed stays as it is.

PATCH
/v2/pets/{petId}

Authorization

VendorApiKeyAuth
x-petnow-api-key<token>

An API key from the Petify Console. A server key can call every route. A client (app) key can only create capture sessions and upload images.

In: header

Path Parameters

petId*string

ID of the pet, as returned when the pet was created.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://api.petify.petnow.io/v2/pets/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "metadata": "string"  }'
{
  "success": true,
  "data": {
    "isSuccessful": true
  }
}
{
  "errors": [
    {
      "code": "PETNOWB2B10001"
    }
  ]
}
{
  "errors": [
    {
      "code": "PETNOWB2B10000"
    }
  ]
}

{
  "errors": [
    {
      "code": "PETNOWB2B10010"
    }
  ]
}

{
  "errors": [
    {
      "code": "PETNOWB2B20000"
    }
  ]
}