uploads an image
POST/v3/pet/:petId/uploadImage
Request
Path Parameters
petId int64required
ID of pet to update
Query Parameters
additionalMetadata string
Additional Metadata
- application/octet-stream
Body
string
Responses
- 200
successful operation
- application/json
- Schema
- Example (from schema)
Schema
code int32
type string
message string
{
"code": 0,
"type": "string",
"message": "string"
}
Authorization: oauth2
name: petstore_authtype: oauth2scopes:write:pets,read:pets
flows: { "implicit": { "authorizationUrl": "https://petstore.swagger.io/oauth/authorize", "scopes": { "write:pets": "modify pets in your account", "read:pets": "read your pets" } } }
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST '/v3/pet/:petId/uploadImage' \
-H 'Content-Type: application/octet-stream' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear