- drafts
- test 23
- Welcome
- Getting Started
- Authorization
- OverView
- Sample APIs
- Client
- Product
- Category
- Invoices
- Clients
- Products
- Suppliers
- Taxes
- General Listing
- Site Info
- Staff
- Authentication
- Api V2
- Last
- Full Version
- Invoices
- Estimates
- Credit Notes
- Refund Receipts
- Purchase Orders
- Purchase Refunds
- Clients
- Suppliers
- Staff
- Client Attendance
- Client Appointments
- Invoice Appointments
- Estimate Appointments
- Work Order Appointments
- Notes
- Products
- Time Tracking
- Work Orders
- Product Categories
- Taxes
- Invoice Payments
- Client Payments
- Expenses
- Incomes
- Stores
- Treasuries
- Stock Transactions
- Journals
- Journal Accounts
- Journal Categories
- Follow Up Statuses
- Follow Up Actions
- General Listing
- Site Info
- Authentication
- Documentation
- tests
- Authentication
- Site Information
- Invoices
- Estimates
- Credit Notes
- Purchase Orders
- Purchase Refunds
- Clients
- Suppliers
- Products
- General Listings
- Edit Estimate
- Delete Estimate
- Edit Credit Note
- Delete Credit Note
- Edit Refund Receipt
- Delete Refund Receipt
- Edit Purchase Order
- Delete Purchase Order
- Edit Purchase Refund
- Delete Purchase Refund
- Edit Client
- Delete Client
- Edit Supplier
- Delete Supplier
- Edit Product
- Delete Product
- Docs
- Untitled Doc
- Invoices
- Estimates
- Credit Notes
- Refund Receipts
- Purchase Orders
- Purchase Refunds
- Clients
- Suppliers
- Staff
- Client Attendance
- Client Appointments
- Invoice Appointments
- Estimate Appointments
- Work Order Appointments
- Notes
- Products
- Time Tracking
- Work Orders
- Product Categories
- Taxes
- Invoice Payments
- Client Payments
- Expenses
- Incomes
- Stores
- Treasuries
- Stock Transactions
- Journals
- Journal Accounts
- Journal Categories
- Follow Up Statuses
- Follow Up Actions
- General Listing
- Site Info
- Authentication
- Documentation
- ttt
- Authentication
- Site Information
- Invoices
- Estimates
- Credit Notes
- Purchase Orders
- Purchase Refunds
- Clients
- Suppliers
- Products
- General Listings
- Edit Estimate
- Delete Estimate
- Edit Credit Note
- Delete Credit Note
- Edit Refund Receipt
- Delete Refund Receipt
- Edit Purchase Order
- Delete Purchase Order
- Edit Purchase Refund
- Delete Purchase Refund
- Edit Client
- Delete Client
- Edit Supplier
- Delete Supplier
- Edit Product
- Delete Product
Add a new pet to the store
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
POST
{{subdomain}}/api2
pet
Last modified:2025-03-16 17:10:50
Maintainer:Not configured
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{subdomain}}/api2/pet' \
--data-urlencode 'name=Hello Kitty' \
--data-urlencode 'status=sold'
Response Response Example
{
"code": 0,
"data": {
"name": "Hello Kitty",
"photoUrls": [
"http://dummyimage.com/400x400"
],
"id": 3,
"category": {
"id": 71,
"name": "Cat"
},
"tags": [
{
"id": 22,
"name": "Cat"
}
],
"status": "sold"
}
}
Request
Body Params application/x-www-form-urlencoded
name
stringÂ
required
Example:
Hello Kitty
status
stringÂ
required
Example:
sold
Responses
🟢201OK
application/json
Body
code
integerÂ
required
>= 0<= 0
data
object (Pet)Â
required
id
integer <int64>
required
>= 1
category
object (Category)Â
required
name
stringÂ
required
Example:
doggie
photoUrls
array[string]
required
tags
array[object (Tag) {2}]Â
required
status
enum<string>Â
required
Allowed values:
availablependingsold