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.

Available Fields for asset_data​

The asset data is a dictionary with the following keys:

✅ indicates a required field, while ❌ indicates an optional field.

KeyTypeRequiredDescription
namestring✅The name of the asset.
latitudefloat✅The latitude of the asset.
longitudefloat✅The longitude of the asset.
areafloat❌The area of the asset.
valuationfloat❌The valuation of the asset.
storiesint❌The number of stories of the asset.
revenuefloat❌The revenue of the asset.
property_typestring❌The property type of the asset.
ownershipstring❌The ownership of the asset.
replacement_valuefloat❌The replacement value of the asset.
content_valuefloat❌The content value of the asset.
basementstring❌Whether the asset has a basement. (Yes/No)
mitigation_riskint❌The Flood Mitigation Risk of the asset. (0,1,2,3)
(0-No Risk, 1-Low Risk, 2-Moderate Risk, 3-High Risk)
exclude_ground_floorstring❌Whether to exclude the ground floor from the analysis. (Yes/No)
plinth_heightfloat❌The plinth height of the asset.

Note: Fields marked as ✅ are required and must be included in the request. Others are optional.

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