---
title: Create a pet
slug: eng-1268-map-marker/create-a-pet
docTags: 
createdAt: 2026-09-09T14:10:40.530Z
---

{
  "id": "5VE0heAUHP8KHN0awed_t",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://petstore.e2e.archbee.test/v1/pets",
    "servers": [
      {
        "url": "https://petstore.e2e.archbee.test/v1/pets"
      }
    ],
    "name": "Create a pet",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "Pet",
          "schema": [
            {
              "name": "id",
              "kind": "required",
              "type": "integer<int64>",
              "description": "",
              "format": "int64"
            },
            {
              "name": "name",
              "kind": "required",
              "type": "string",
              "description": ""
            },
            {
              "name": "tag",
              "kind": "optional",
              "type": "string",
              "description": ""
            }
          ],
          "modelRef": "#/components/schemas/Pet",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "201",
        "description": "Pet created",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "E3syhuB7VTDjN_LqK3x2s",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://petstore.e2e.archbee.test/v1/pets \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"id\": \"\",\n     \"name\": \"\"\n     }'"
        },
        {
          "id": "ZzdNcsbUqJYkr7unX2PK6",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"id\": \"\",\n   \"name\": \"\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://petstore.e2e.archbee.test/v1/pets\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "tWl0EnsYFdLFoGoDl60F7",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://petstore.e2e.archbee.test/v1/pets\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"id\": \"\",\n   \"name\": \"\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "qNjKSlaiv-ctsoWeUPQh7",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://petstore.e2e.archbee.test/v1/pets\"\n\npayload = json.dumps({\n   \"id\": \"\",\n   \"name\": \"\"\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "E3syhuB7VTDjN_LqK3x2s"
    },
    "results": {
      "languages": [
        {
          "id": "I9TaMTnV2lcp_1myplAmd",
          "language": "201",
          "code": "// Pet created\n"
        }
      ],
      "selectedLanguageId": "I9TaMTnV2lcp_1myplAmd"
    }
  },
  "children": [
    {
      "text": "",
      "id": "9mCcSG3PxFWO6ze91HWO1"
    }
  ]
}