Available Methods
Create a Property Image
POST
https://www.relahq.com/api/v1/object/property_image
Headers
Name | Type | Description |
---|---|---|
TOKEN* | Your API Token | |
API-KEY* | Your API Key | |
content-type* | String | application/json |
Request Body
Name | Type | Description |
---|---|---|
file* | Array | For BASE 64 Encoded Image: { 'file': BASE64_ENCODED_DATA, 'filename': 'file_name_here.jpg' } For URL { 'url': 'https://example.com/filename.jpg' }
|
property_reference* | Integer | Rela nid of Property to add image to |
description | String | Description of the image |
main_image | Bool | Set as main image |
date_taken | Timestamp | Original date taken in UNIX timestamp |
Update an Image
PUT
https://www.relahq.com/api/v1/object/property_image/{nid}
Example request for updating image.
Path Parameters
Name | Type | Description |
---|---|---|
nid* | String | The Rela defined id representing the property |
Headers
Name | Type | Description |
---|---|---|
content-type* | String | application/json |
API-KEY* | String | Your API Key |
TOKEN* | String | Your API Token |
Request Body
Name | Type | Description |
---|---|---|
state* | String | 2 character state abbreviation |
city* | String | City of the property |
premise | String | Apartment or suite |
street* | String | Property number and street name |
For multiple property images, the optional parameter external_id may be added to uniquely identify images to prevent duplicates from being imported. To get and create multiple images at once for a given property site:
Get multiple Property Images
GET
https://www.relahq.com/api/v1/object/property_images/{property_nid}
Path Parameters
Name | Type | Description |
---|---|---|
property_nid* | String | Rela nid of a property |
Headers
Name | Type | Description |
---|---|---|
API-KEY* | String | Your API Key |
TOKEN* | String | Your API Token |
content-type* | String | application/json |
Create multiple Property Images
POST
https://www.relahq.com/api/v1/object/property_images
Headers
Name | Type | Description |
---|---|---|
TOKEN* | Your API Token | |
API-KEY* | Your API Key | |
content-type* | String | application/json |
Request Body
Name | Type | Description |
---|---|---|
file* | Array | File or URL |
property_reference* | Integer | Rela nid of Property to add image to |
external_id | String | To uniquely identify images |
Uploaded images via a zip file
POST
https://www.relahq.com/api/v1/object/zipped_images
Headers
Name | Type | Description |
---|---|---|
API-KEY* | Your API Key | |
TOKEN* | Your API Token |
Request Body
Name | Type | Description |
---|---|---|
zip_uri* | String | The publicly accessible uri to the zip file containing the images you want to upload |
property_reference* | Integer | The property nid to attache the images to |
return_uri | String | A URI enpoint to POST the results of the newly created Property Images to. |
Last updated