Skip to main content
POST
/
pet
/
{petId}
/
uploadImage
JavaScript
import BeaverdockAPI from 'beaverdock-api';

const client = new BeaverdockAPI({
  apiKey: process.env['BEAVERDOCK_API_API_KEY'], // This is the default and can be omitted
});

const response = await client.pet.uploadImage(0, fs.createReadStream('path/to/file'));

console.log(response.code);
{
  "code": 123,
  "type": "<string>",
  "message": "<string>"
}

Authorizations

api_key
string
header
required

Path Parameters

petId
integer<int64>
required

ID of pet to update

Query Parameters

additionalMetadata
string

Additional Metadata

Body

application/octet-stream

The body is of type file.

Response

200 - application/json

successful operation

code
integer<int32>
type
string
message
string