Skip to main content

Add an asset to a project

This API endpoint allows you to add an asset to a project. The asset is the main container for all the data and analysis results of a specific asset.

API Endpoint

[POST] https://api.intensel.net/apiv2/add_single_asset/

Request Arguments

ArgumentTypeDescription
project_namestringThe Name of the project.
asset_datadictThe data of the asset.

Asset Data

The asset data is a dictionary with the following keys:

KeyTypeDescription
namestringThe name of the asset.
latitudefloatThe latitude of the asset.
longitudefloatThe longitude of the asset.
areafloatThe area of the asset. (optional)
valuationfloatThe valuation of the asset. (optional)
storiesintThe number of stories of the asset. (optional)
revenuefloatThe revenue of the asset. (optional)
property_typestringThe property type of the asset. (optional)
ownershipstringThe ownership of the asset. (optional)
replacement_valuefloatThe replacement value of the asset. (optional)

The area, valuation, stories, revenue, property_type, ownership, and replacement_value keys are optional and can be omitted if not available.

Request Example

import requests
URL = "https://api.intensel.net/apiv2/add_single_asset/"
headers = {
'X-Intensel-Api-Key': 'YOUR_API_KEY',
}
payload = {
"project_name": "My Awesome Project",
"asset_data" : {
"name": "Hong Kong Park",
"latitude": 22.424645494250665,
"longitude" : 114.2135547607693,
"area": 2509,
"valuation": 2117.25,
"stories": 3
}
}
response = requests.post(URL, json=payload, headers=headers)
data = response.json()
print(data)

Response

The response is a JSON object with the following keys:

{
"message": "Asset added successfully"
}
{
"message": "You have reached your limit of assets. Please Contact Intensel to increase asset limit."
}

Example Response

Add Asset Response JSON -> view response