• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Setting up the API Client
  • Using the API Client
    • Getting started
  • Customers
    • Adding a customer
  • Branch Users
    • Managing branch users
  • List data
    • Getting list data
  • Properties
    • Referring a property
    • Searching for properties
    • Getting property details
  • Property Images
    • Listing property images
    • Adding property images
    • Removing property images
  • Property Notes
    • Listing property notes
  • Viewings
    • Listing property viewings
    • Creating a viewing
    • Rescheduling a viewing
    • Cancelling a viewing
    • Adding viewing feedback

Adding property images

In order to add images to a property, you'll need to use the PropertyImages.AddPropertyImageAsync method on the API client:

var response = await client.PropertyImages.AddPropertyImageAsync(new AddPropertyImageRequest
{
    PropertyId = propertyId,
    Url = "https://www.example.com/image.jpg"
});

This will return a AddPropertyImageResponse object, which will indicate success or failure of the operation, and return the ImageId of the image that was added.

Validation

The PropertyId must be the Id of a property that is associated to the partner agent that is making the request.

The Url must be a valid URL to an image file, and must be publicly accessible.

In This Article
Back to top Generated by DocFX