API Reference
Reference for the API
JavaScript
import Dasdk from 'dasdk'; const client = new Dasdk({ apiKey: 'My API Key', }); const pet = await client.pet.update({ name: 'doggie', photoUrls: ['string'] }); console.log(pet.id);
{ "name": "doggie", "photoUrls": [ "<string>" ], "id": 10, "category": { "id": 1, "name": "Dogs" }, "tags": [ { "id": 123, "name": "<string>" } ], "status": "available" }
Update an existing pet by Id
Update an existent pet in the store
"doggie"
10
Show child attributes
1
"Dogs"
pet status in the store
available
pending
sold
Successful operation