Pet Store Demo
    Pet Store Demo
    • 🐶 Walk through Apidog
    • Sample APIs
      • Deletes a pet
        DELETE
    • Find pet by ID
      GET
    • Finds Pets by status
      GET
    • Add a new pet to the store
      POST
    • Update an existing pet
      PUT
    • Pet User ID
      GET
    • API-Token
      GET
    • Apidog Echo
      GET
    • sayHello
      POST
    • New Request
      GET
    • Weather
      GET

      Update an existing pet

      PUT
      /pet
      pet

      Request

      Body Params application/json
      object {0}
      Example
      {}

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request PUT 'https://dev.your-api-server.com/pet' \
      --header 'Content-Type: application/json' \
      --data-raw '{}'

      Responses

      🟠405Validation error
      application/json
      Body
      object {0}
      Example
      {}
      🟢200OK
      🟠404Record not found
      Previous
      Add a new pet to the store
      Next
      Pet User ID
      Built with