Properties: Upload media

Upload new media to property

Request - POST https://api-uat.vtopenview.com/property/{propertyId}/media

You will need to supply a request body with this method.
You will need to include your access token upon making a request. For more information, see the authentication and authorization page.

Example request with authorization:

curl -- POST Base URI: https://api-uat.vtopenview.com/property/{propertyId}/media
--header "Authorization: Bearer MTQ0NjJkZmQ5OTM2NDE1ghNNBiuyUYUN"

Request Body
Example request body:

Content-Type: application/json
{
"Media": [
{
"MediaType": integer,
"FileName": "string",
"FileBase64": "string"
"PropertyRoomId": long, // Optional
}
]
}

Media type:

The list below describes the possible Media type ids.

Image = 1
Floorplan = 2
Epc = 3
VirtualTour/360 = 4
Example field on request:

"MediaType": 1

Response

If successful, this method returns a 201 Status code with no body

Example response:

HTTPS 201 Created