⚙️
AGENT1 API (A1API)
  • Welcome!
  • Quick Start
  • Reference
    • API Reference
      • Statistics
      • Holders & Wallets
      • Marketplace Information
      • Code Hunter
      • Pets
  • How to test the API?
  • Sample PHP code 101
  • Changelog
  • Community Websites
Powered by GitBook
On this page
  1. Reference
  2. API Reference

Pets

Coming soon

Creating a new pet

Create pet.

POST https://api.myapi.com/v1/pet

Creates a new pet.

Request Body

Name
Type
Description

name*

string

The name of the pet

owner_id

string

The id of the user who owns the pet

species

string

The species of the pet

breed

string

The breed of the pet

{
    "name"="Wilson",
    "owner": {
        "id": "sha7891bikojbkreuy",
        "name": "Samuel Passet",
    "species": "Dog",}
    "breed": "Golden Retriever",
}

Good to know: Coming soon

Updating a pet

Good to know: Coming soon

PreviousCode HunterNextHow to test the API?

Last updated 2 years ago

  • Creating a new pet
  • Create pet.
  • Updating a pet
  • PUTUpdate an existing pet

Update an existing pet

put
Authorizations
Body
idinteger · int64Optional
namestringRequiredExample: doggie
photoUrlsstring[]Required
statusstring · enumOptional

pet status in the store

Possible values:
Responses
400
Invalid ID supplied
404
Pet not found
405
Validation exception
put
PUT /v2/pet HTTP/1.1
Host: petstore.swagger.io
Content-Type: application/json
Accept: */*
Content-Length: 132

{
  "id": 1,
  "category": {
    "id": 1,
    "name": "text"
  },
  "name": "doggie",
  "photoUrls": [
    "text"
  ],
  "tags": [
    {
      "id": 1,
      "name": "text"
    }
  ],
  "status": "available"
}

No content