pet

Updates a pet in the store with form data.

Updates a pet resource based on the form data.

post/pet/{petId}

Path parameters

petIdinteger required

ID of pet that needs to be updated

Query parameters

namestring

Name of pet that needs to be updated

statusstring

Status of pet that needs to be updated

Response

successful operation

idinteger
namestring required
photoUrlsstring[] required
status'available' | 'pending' | 'sold'

pet status in the store

Example response

{
  "id": 10,
  "name": "doggie",
  "category": {
    "id": 1,
    "name": "Dogs"
  }
}

Changes

Changed in 6 of the 53 revisions of this API.5415

    • added the non-success response with the status 400

      response-non-success-status-added

    • removed the non-success response with the status 405

      response-non-success-status-removed

    • added the success response with the status 200

      response-success-status-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • d5fd36e3763a12See the full diff
    • removed the success response with the status 200

      response-success-status-removed

    • added the non-success response with the status 405

      response-non-success-status-added

    • removed the non-success response with the status 400

      response-non-success-status-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the non-success response with the status 400

      response-non-success-status-added

    • removed the non-success response with the status 405

      response-non-success-status-removed

    • added the success response with the status 200

      response-success-status-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 887ffd0911f212See the full diff
    • removed the success response with the status 200

      response-success-status-removed

    • added the non-success response with the status 405

      response-non-success-status-added

    • removed the non-success response with the status 400

      response-non-success-status-removed

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 253de9e0f0ae342See the full diff
    • removed the media type application/xml for the response with the status default

      response-media-type-removed

    • removed the required property name from the response with the default status

      response-required-property-removed

    • removed the required property photoUrls from the response with the default status

      response-required-property-removed

    • removed the optional property category from the response with the default status

      response-optional-property-removed

    • removed the optional property id from the response with the default status

      response-optional-property-removed

    • removed the optional property status from the response with the default status

      response-optional-property-removed

    • removed the optional property tags from the response with the default status

      response-optional-property-removed

    • added the required property code to the response with the default status

      response-required-property-added

    • added the required property message to the response with the default status

      response-required-property-added

    • added the non-success response with the status 400

      response-non-success-status-added

    • removed the non-success response with the status 405

      response-non-success-status-removed

    • added the success response with the status 200

      response-success-status-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog