Properties & Listings
Create a property
Manually create a new property record.
POST
/
api
/
assets
/
Create a property
curl --request POST \
--url https://pandora.ask-wire.com/api/assets/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'portfolio=<string>' \
--form 'ref_asset_id=<string>' \
--form 'reference_id=<string>' \
--form 'notes=<string>' \
--form 'address=<string>' \
--form latitude=123 \
--form longitude=123 \
--form 'district=<string>' \
--form 'zone_name=<string>' \
--form region=123 \
--form regional_unit=123 \
--form neighborhood=123 \
--form 'property_usage=<string>' \
--form 'price=<string>' \
--form 'sales_price=<string>' \
--form build_area=123 \
--form land_area=123 \
--form basement_area=123 \
--form covered_veranda_area=123 \
--form uncovered_veranda_area=123 \
--form construction_year=123 \
--form renovated=true \
--form renovation_year=123 \
--form building_floor_count=123 \
--form floor_number=123 \
--form number_of_bedrooms=123 \
--form number_of_bathrooms=123 \
--form parking_space=123 \
--form has_parking_space=true \
--form storage_space=123 \
--form 'heating_type=<string>' \
--form 'cooling_type=<string>' \
--form 'energy_class=<string>' \
--form 'condition=<string>' \
--form 'view=<string>' \
--form 'right_of_ownership=<string>' \
--form 'description=<string>' \
--form 'seller=<string>' \
--form 'owner=<string>' \
--form auction=true \
--form road_access=true \
--form garden=true \
--form swimming_pool=true \
--form building_coefficient=123 \
--form coverage_ratio=123 \
--form 'parcel_id=<string>' \
--form 'registration_number=<string>' \
--form 'registration_block=<string>' \
--form 'registration_codes={
"code": "<string>",
"country": "<string>"
}' \
--form purpose=property_management \
--form 'files=<string>' \
--form files.items='@example-file'import requests
url = "https://pandora.ask-wire.com/api/assets/"
files = { "files.items": ("example-file", open("example-file", "rb")) }
payload = {
"portfolio": "<string>",
"ref_asset_id": "<string>",
"reference_id": "<string>",
"notes": "<string>",
"address": "<string>",
"latitude": "123",
"longitude": "123",
"district": "<string>",
"zone_name": "<string>",
"region": "123",
"regional_unit": "123",
"neighborhood": "123",
"property_usage": "<string>",
"price": "<string>",
"sales_price": "<string>",
"build_area": "123",
"land_area": "123",
"basement_area": "123",
"covered_veranda_area": "123",
"uncovered_veranda_area": "123",
"construction_year": "123",
"renovated": "true",
"renovation_year": "123",
"building_floor_count": "123",
"floor_number": "123",
"number_of_bedrooms": "123",
"number_of_bathrooms": "123",
"parking_space": "123",
"has_parking_space": "true",
"storage_space": "123",
"heating_type": "<string>",
"cooling_type": "<string>",
"energy_class": "<string>",
"condition": "<string>",
"view": "<string>",
"right_of_ownership": "<string>",
"description": "<string>",
"seller": "<string>",
"owner": "<string>",
"auction": "true",
"road_access": "true",
"garden": "true",
"swimming_pool": "true",
"building_coefficient": "123",
"coverage_ratio": "123",
"parcel_id": "<string>",
"registration_number": "<string>",
"registration_block": "<string>",
"registration_codes": "{
\"code\": \"<string>\",
\"country\": \"<string>\"
}",
"purpose": "property_management",
"files": "<string>"
}
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('portfolio', '<string>');
form.append('ref_asset_id', '<string>');
form.append('reference_id', '<string>');
form.append('notes', '<string>');
form.append('address', '<string>');
form.append('latitude', '123');
form.append('longitude', '123');
form.append('district', '<string>');
form.append('zone_name', '<string>');
form.append('region', '123');
form.append('regional_unit', '123');
form.append('neighborhood', '123');
form.append('property_usage', '<string>');
form.append('price', '<string>');
form.append('sales_price', '<string>');
form.append('build_area', '123');
form.append('land_area', '123');
form.append('basement_area', '123');
form.append('covered_veranda_area', '123');
form.append('uncovered_veranda_area', '123');
form.append('construction_year', '123');
form.append('renovated', 'true');
form.append('renovation_year', '123');
form.append('building_floor_count', '123');
form.append('floor_number', '123');
form.append('number_of_bedrooms', '123');
form.append('number_of_bathrooms', '123');
form.append('parking_space', '123');
form.append('has_parking_space', 'true');
form.append('storage_space', '123');
form.append('heating_type', '<string>');
form.append('cooling_type', '<string>');
form.append('energy_class', '<string>');
form.append('condition', '<string>');
form.append('view', '<string>');
form.append('right_of_ownership', '<string>');
form.append('description', '<string>');
form.append('seller', '<string>');
form.append('owner', '<string>');
form.append('auction', 'true');
form.append('road_access', 'true');
form.append('garden', 'true');
form.append('swimming_pool', 'true');
form.append('building_coefficient', '123');
form.append('coverage_ratio', '123');
form.append('parcel_id', '<string>');
form.append('registration_number', '<string>');
form.append('registration_block', '<string>');
form.append('registration_codes', '{
"code": "<string>",
"country": "<string>"
}');
form.append('purpose', 'property_management');
form.append('files', '<string>');
form.append('files.items', '{
"fileName": "example-file"
}');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://pandora.ask-wire.com/api/assets/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pandora.ask-wire.com/api/assets/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"portfolio\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"ref_asset_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"notes\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"address\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"latitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"longitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"district\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zone_name\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"region\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"regional_unit\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"neighborhood\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"property_usage\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sales_price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"build_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"land_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"basement_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"covered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"uncovered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"construction_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovated\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovation_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_floor_count\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"floor_number\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bedrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bathrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parking_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"has_parking_space\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"storage_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"heating_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"cooling_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"energy_class\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"condition\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"view\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"right_of_ownership\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"seller\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"owner\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auction\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"road_access\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"garden\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"swimming_pool\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_coefficient\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"coverage_ratio\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parcel_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_number\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_block\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_codes\"\r\n\r\n{\r\n \"code\": \"<string>\",\r\n \"country\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\nproperty_management\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pandora.ask-wire.com/api/assets/"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"portfolio\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"ref_asset_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"notes\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"address\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"latitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"longitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"district\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zone_name\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"region\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"regional_unit\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"neighborhood\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"property_usage\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sales_price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"build_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"land_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"basement_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"covered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"uncovered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"construction_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovated\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovation_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_floor_count\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"floor_number\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bedrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bathrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parking_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"has_parking_space\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"storage_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"heating_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"cooling_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"energy_class\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"condition\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"view\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"right_of_ownership\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"seller\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"owner\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auction\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"road_access\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"garden\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"swimming_pool\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_coefficient\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"coverage_ratio\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parcel_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_number\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_block\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_codes\"\r\n\r\n{\r\n \"code\": \"<string>\",\r\n \"country\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\nproperty_management\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pandora.ask-wire.com/api/assets/")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"portfolio\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"ref_asset_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"notes\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"address\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"latitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"longitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"district\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zone_name\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"region\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"regional_unit\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"neighborhood\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"property_usage\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sales_price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"build_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"land_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"basement_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"covered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"uncovered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"construction_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovated\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovation_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_floor_count\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"floor_number\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bedrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bathrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parking_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"has_parking_space\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"storage_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"heating_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"cooling_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"energy_class\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"condition\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"view\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"right_of_ownership\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"seller\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"owner\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auction\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"road_access\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"garden\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"swimming_pool\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_coefficient\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"coverage_ratio\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parcel_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_number\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_block\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_codes\"\r\n\r\n{\r\n \"code\": \"<string>\",\r\n \"country\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\nproperty_management\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://pandora.ask-wire.com/api/assets/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"portfolio\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"ref_asset_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"notes\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"address\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"latitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"longitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"district\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zone_name\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"region\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"regional_unit\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"neighborhood\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"property_usage\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sales_price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"build_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"land_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"basement_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"covered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"uncovered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"construction_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovated\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovation_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_floor_count\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"floor_number\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bedrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bathrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parking_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"has_parking_space\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"storage_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"heating_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"cooling_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"energy_class\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"condition\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"view\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"right_of_ownership\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"seller\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"owner\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auction\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"road_access\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"garden\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"swimming_pool\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_coefficient\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"coverage_ratio\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parcel_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_number\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_block\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_codes\"\r\n\r\n{\r\n \"code\": \"<string>\",\r\n \"country\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\nproperty_management\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"id": 123,
"ref_asset_id": "<string>",
"reference_id": "<string>",
"municipality": {
"id": 123,
"name_en": "<string>"
},
"municipal_unit": {
"id": 123,
"name_en": "<string>"
},
"region": 123,
"regional_unit": 123,
"neighborhood": 123,
"marketability_report_id": 123,
"marketability_report_status": "<string>",
"marketability_report_task_id": 123,
"marketability_report_task_status": "<string>",
"marketability_report_task_approved_at": "2023-11-07T05:31:56Z",
"marketability_report_reference": "<string>",
"adjusted_price_sqm": 123,
"files": [
"<unknown>"
],
"sub_assets": [
"<unknown>"
],
"registration_codes": [
{
"code": "<string>",
"country": "<string>"
}
],
"deleted": true,
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"listing_type": "rent",
"title": "<string>",
"url": "<string>",
"images": "<string>",
"source": "<string>",
"eauction_code": "<string>",
"price": "<string>",
"sales_price": "<string>",
"price_per_sqm": "<string>",
"auction": true,
"auction_status": "<string>",
"auction_kind": "<string>",
"auction_notice_date": "2023-11-07T05:31:56Z",
"auction_conduct_date": "2023-11-07T05:31:56Z",
"address": "<string>",
"country": "greece",
"district": "<string>",
"zone_name": "<string>",
"client_id": "<string>",
"client_name": "<string>",
"owner": "<string>",
"seller": "<string>",
"latitude": 123,
"longitude": 123,
"property_type": "Apartment",
"property_usage": "residential",
"portfolio": "<string>",
"purpose": "<string>",
"build_area": 123,
"land_area": 123,
"basement_area": 123,
"covered_veranda_area": 123,
"uncovered_veranda_area": 123,
"construction_year": 123,
"renovated": true,
"renovation_year": 123,
"building_floor_count": 123,
"floor_number": 123,
"parking_space": 123,
"has_parking_space": true,
"storage_space": 123,
"garden": true,
"swimming_pool": true,
"road_access": true,
"heating_type": "<string>",
"cooling_type": "<string>",
"energy_class": "<string>",
"condition": "<string>",
"view": "<string>",
"right_of_ownership": "<string>",
"description": "<string>",
"overview": "<string>",
"map_url": "<string>",
"coverage_ratio": 123,
"building_coefficient": 123,
"registration_number": "<string>",
"registration_block": "<string>",
"parcel_id": "<string>",
"listing_status": "active",
"share_on_sale": "<string>",
"number_of_bedrooms": 123,
"number_of_bathrooms": 123
}Overview
Creates a new property record from manually entered data, for example when adding a property that doesn’t come from an automated source feed. Supporting documents can be attached in the same request. Send the request asmultipart/form-data so that files can be included alongside the property fields.
Location fields are auto-derived server-side from
address — a verified
live create with only address and property_type came back with
municipality, municipal_unit, region, regional_unit, neighborhood,
latitude, and longitude all populated automatically via geocoding.
There’s no need to resolve these yourself before creating a record.notes must be valid HTML, not plain text — sending plain text returns
400 {"notes": ["Content must be valid HTML."]}. Wrap content in a tag,
e.g. <p>your text</p>. On
Update a property, the same invalid input
returns a 500 instead of this 400, so validate HTML client-side before
sending to either endpoint.Request
Body (multipart/form-data)
Core fields
| Field | Type | Description |
|---|---|---|
portfolio | string | Portfolio the property belongs to. |
ref_asset_id | string | Your own external reference ID for this property. |
reference_id | string | Source system reference ID. |
notes | string | Free-text internal notes. |
Always send
purpose as the fixed value "property_management" on
create. It isn’t a field you vary per request.Classification
| Field | Type | Values | Description |
|---|---|---|---|
country | string | greece, cyprus | Country the property is located in. |
listing_type | string | rent, sale, sold | Listing type, if this asset is also a listing. |
listing_status | string | active, inactive | Listing status. |
Location
Per the backend’s own schema,
municipality is not a field you can
set directly — send address and the server geocodes municipality,
region, regional_unit, and neighborhood automatically (verified
against a live response). Use region / regional_unit / neighborhood
below only if you need to override the geocoded result.| Field | Type | Description |
|---|---|---|
address | string | Full address string. Drives automatic geocoding. |
latitude | number | Latitude coordinate. |
longitude | number | Longitude coordinate. |
district | string | Free-text district name. |
zone_name | string | Free-text zone name. |
region | integer | Region ID (level 3). Overrides the geocoded value if set. |
regional_unit | integer | Regional unit ID (level 4). Overrides the geocoded value if set. |
neighborhood | integer | Neighborhood ID. Overrides the geocoded value if set. |
Property details
property_type is the only field below with a server-enforced enum,
verified against the backend’s own schema. property_usage,
heating_type, energy_class, condition, and view are free-text
strings (up to 255 characters) as far as the API is concerned — the values
listed for them are conventions used by the Ask Wire web app, not
constraints the API enforces.| Field | Type | Values | Description |
|---|---|---|---|
property_type | string | Apartment, House, Field, Plot, Warehouse, Shop, Office, Storage, Retail, Right to Build, Parking space, Other | Property category. Required. |
property_usage | string | e.g. residential, commercial, mixed | Intended use of the property. Free text. |
land_use | string | e.g. residential, commercial, mixed | Zoning / permitted use of the land. Free text. |
price | number | Asking or listed price. | |
build_area | number | Built area in sqm. | |
land_area | number | Land area in sqm. | |
basement_area | number | Basement area in sqm. | |
covered_veranda_area | number | Covered veranda area in sqm. | |
uncovered_veranda_area | number | Uncovered veranda area in sqm. | |
construction_year | integer | Year the building was constructed. | |
renovated | boolean | true, false | Whether the property has been renovated. |
renovation_year | integer | Year of the most recent renovation. | |
building_floor_count | integer | Total number of floors in the building. | |
floor_number | integer | Floor the property is on. | |
number_of_bedrooms | integer | Number of bedrooms. | |
number_of_bathrooms | integer | Number of bathrooms. | |
parking_space | integer | Number of parking spaces. | |
storage_space | integer | Number of storage spaces. | |
heating_type | string | e.g. autonomous (Oil), autonomous (Gas), central (Oil), central (Gas), heatpump, Fireplace/Stove | Type of heating system. Free text. |
energy_class | string | e.g. A+, A, B+, B, C, D, E, F, G | Energy performance rating. Free text. |
condition | string | e.g. poor, fair, good | Overall condition of the property. Free text. |
view | string | e.g. poor, fair, good | Quality of the view from the property. Free text. |
garden | boolean | true, false | Has a garden. |
swimming_pool | boolean | true, false | Has a swimming pool. |
road_access | boolean | true, false | Has direct road access. |
percent_of_ownership | number | Percentage of ownership held for this property. | |
building_coefficient | number | Building coefficient for the plot. | |
coverage_ratio | number | Coverage ratio for the plot. |
Cadastral details
sheet_number, plan_number, parcel_block_number, parcel_number,
and block_number are not fields on this endpoint — per the backend
schema, only the fields below are accepted here. Those other identifiers
belong to a separate Cyprus cadastral-search lookup flow in the app, not
to asset creation.| Field | Type | Description |
|---|---|---|
parcel_id | string | Parcel identifier (max 30 characters). |
registration_number | string | Cadastral registration number. |
registration_block | string | Cadastral registration block. |
registration_codes | array | Array of { code, country } objects. code is required per entry. |
Files
| Field | Type | Description |
|---|---|---|
files | file[] | One or more supporting documents to attach. Repeat the field per file. |
Example request
curl -X POST "https://pandora.ask-wire.com/api/assets/" \
-H "Authorization: Bearer YOUR_TOKEN" \
--form 'address="12 Ledra Street, Nicosia"' \
--form 'property_type="Apartment"' \
--form 'property_usage="residential"' \
--form 'purpose="property_management"' \
--form 'price="185000"' \
--form 'build_area="95"' \
--form 'number_of_bedrooms="2"' \
--form 'files=@/path/to/title-deed.pdf'
Response
Returns201 Created with the full created asset record — same shape as Update a property. Verified against a live response for a minimal create (address + property_type only):
{
"id": 2024230,
"ref_asset_id": null,
"municipality": { "id": 112, "name_en": "Athens" },
"municipal_unit": { "id": 1016, "name_en": "Athens" },
"marketability_report_id": null,
"marketability_report_status": null,
"marketability_report_task_id": null,
"marketability_report_task_status": null,
"adjusted_price_sqm": null,
"marketability_report_task_approved_at": null,
"files": [],
"sub_assets": [],
"registration_codes": [],
"deleted": false,
"notes": null,
"created_at": "2026-09-15T16:48:46.873560Z",
"modified_at": "2026-09-15T16:48:46.873583Z",
"listing_type": null,
"title": null,
"url": null,
"images": null,
"source": null,
"eauction_code": null,
"reference_id": null,
"price": null,
"sales_price": null,
"auction_status": null,
"auction_kind": null,
"auction_notice_date": null,
"auction_conduct_date": null,
"address": "Docs Test Street 1, Athens, Greece",
"country": "greece",
"client_id": "cln-ixSNPPuSA",
"district": null,
"zone_name": null,
"latitude": 37.9838096,
"longitude": 23.7275388,
"property_type": "Apartment",
"property_usage": null,
"portfolio": null,
"build_area": null,
"basement_area": null,
"land_area": null,
"covered_veranda_area": null,
"uncovered_veranda_area": null,
"construction_year": null,
"renovated": null,
"renovation_year": null,
"price_per_sqm": null,
"building_floor_count": null,
"floor_number": null,
"parking_space": null,
"has_parking_space": null,
"storage_space": null,
"garden": null,
"heating_type": null,
"cooling_type": null,
"number_of_bedrooms": null,
"number_of_bathrooms": null,
"swimming_pool": null,
"condition": null,
"energy_class": null,
"view": null,
"right_of_ownership": null,
"description": null,
"seller": null,
"listing_status": null,
"marketability_report_reference": null,
"owner": null,
"auction": false,
"road_access": false,
"client_name": null,
"share_on_sale": null,
"overview": null,
"coverage_ratio": null,
"building_coefficient": null,
"map_url": null,
"registration_number": null,
"registration_block": null,
"parcel_id": null,
"purpose": "property_management",
"region": 13,
"regional_unit": 87,
"neighborhood": 1539
}
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
multipart/form-data
Available options:
Apartment, House, Field, Plot, Warehouse, Shop, Office, Storage, Retail, Right to Build, Parking space, Other Must be valid HTML, e.g.
text
.Free-text district name.
Available options:
greece, cyprus Available options:
rent, sale, sold, Available options:
active, inactive, Free text, not a server-enforced enum.
Free text, not a server-enforced enum.
Free text, not a server-enforced enum.
Free text, not a server-enforced enum.
Free text, not a server-enforced enum.
Maximum string length:
30Show child attributes
Show child attributes
Fixed value. Always send "property_management" on create.
Available options:
property_management Response
201 - application/json
The created property
A manually managed property record, as returned by create, retrieve, and update. Verified against live responses.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
HTML content.
Available options:
rent, sale, sold, Decimal string, e.g. "150000.0000".
Available options:
greece, cyprus Available options:
Apartment, House, Field, Plot, Warehouse, Shop, Office, Storage, Retail, Right to Build, Parking space, Other Available options:
residential, commercial, mixed Available options:
active, inactive, ⌘I
Create a property
curl --request POST \
--url https://pandora.ask-wire.com/api/assets/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'portfolio=<string>' \
--form 'ref_asset_id=<string>' \
--form 'reference_id=<string>' \
--form 'notes=<string>' \
--form 'address=<string>' \
--form latitude=123 \
--form longitude=123 \
--form 'district=<string>' \
--form 'zone_name=<string>' \
--form region=123 \
--form regional_unit=123 \
--form neighborhood=123 \
--form 'property_usage=<string>' \
--form 'price=<string>' \
--form 'sales_price=<string>' \
--form build_area=123 \
--form land_area=123 \
--form basement_area=123 \
--form covered_veranda_area=123 \
--form uncovered_veranda_area=123 \
--form construction_year=123 \
--form renovated=true \
--form renovation_year=123 \
--form building_floor_count=123 \
--form floor_number=123 \
--form number_of_bedrooms=123 \
--form number_of_bathrooms=123 \
--form parking_space=123 \
--form has_parking_space=true \
--form storage_space=123 \
--form 'heating_type=<string>' \
--form 'cooling_type=<string>' \
--form 'energy_class=<string>' \
--form 'condition=<string>' \
--form 'view=<string>' \
--form 'right_of_ownership=<string>' \
--form 'description=<string>' \
--form 'seller=<string>' \
--form 'owner=<string>' \
--form auction=true \
--form road_access=true \
--form garden=true \
--form swimming_pool=true \
--form building_coefficient=123 \
--form coverage_ratio=123 \
--form 'parcel_id=<string>' \
--form 'registration_number=<string>' \
--form 'registration_block=<string>' \
--form 'registration_codes={
"code": "<string>",
"country": "<string>"
}' \
--form purpose=property_management \
--form 'files=<string>' \
--form files.items='@example-file'import requests
url = "https://pandora.ask-wire.com/api/assets/"
files = { "files.items": ("example-file", open("example-file", "rb")) }
payload = {
"portfolio": "<string>",
"ref_asset_id": "<string>",
"reference_id": "<string>",
"notes": "<string>",
"address": "<string>",
"latitude": "123",
"longitude": "123",
"district": "<string>",
"zone_name": "<string>",
"region": "123",
"regional_unit": "123",
"neighborhood": "123",
"property_usage": "<string>",
"price": "<string>",
"sales_price": "<string>",
"build_area": "123",
"land_area": "123",
"basement_area": "123",
"covered_veranda_area": "123",
"uncovered_veranda_area": "123",
"construction_year": "123",
"renovated": "true",
"renovation_year": "123",
"building_floor_count": "123",
"floor_number": "123",
"number_of_bedrooms": "123",
"number_of_bathrooms": "123",
"parking_space": "123",
"has_parking_space": "true",
"storage_space": "123",
"heating_type": "<string>",
"cooling_type": "<string>",
"energy_class": "<string>",
"condition": "<string>",
"view": "<string>",
"right_of_ownership": "<string>",
"description": "<string>",
"seller": "<string>",
"owner": "<string>",
"auction": "true",
"road_access": "true",
"garden": "true",
"swimming_pool": "true",
"building_coefficient": "123",
"coverage_ratio": "123",
"parcel_id": "<string>",
"registration_number": "<string>",
"registration_block": "<string>",
"registration_codes": "{
\"code\": \"<string>\",
\"country\": \"<string>\"
}",
"purpose": "property_management",
"files": "<string>"
}
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('portfolio', '<string>');
form.append('ref_asset_id', '<string>');
form.append('reference_id', '<string>');
form.append('notes', '<string>');
form.append('address', '<string>');
form.append('latitude', '123');
form.append('longitude', '123');
form.append('district', '<string>');
form.append('zone_name', '<string>');
form.append('region', '123');
form.append('regional_unit', '123');
form.append('neighborhood', '123');
form.append('property_usage', '<string>');
form.append('price', '<string>');
form.append('sales_price', '<string>');
form.append('build_area', '123');
form.append('land_area', '123');
form.append('basement_area', '123');
form.append('covered_veranda_area', '123');
form.append('uncovered_veranda_area', '123');
form.append('construction_year', '123');
form.append('renovated', 'true');
form.append('renovation_year', '123');
form.append('building_floor_count', '123');
form.append('floor_number', '123');
form.append('number_of_bedrooms', '123');
form.append('number_of_bathrooms', '123');
form.append('parking_space', '123');
form.append('has_parking_space', 'true');
form.append('storage_space', '123');
form.append('heating_type', '<string>');
form.append('cooling_type', '<string>');
form.append('energy_class', '<string>');
form.append('condition', '<string>');
form.append('view', '<string>');
form.append('right_of_ownership', '<string>');
form.append('description', '<string>');
form.append('seller', '<string>');
form.append('owner', '<string>');
form.append('auction', 'true');
form.append('road_access', 'true');
form.append('garden', 'true');
form.append('swimming_pool', 'true');
form.append('building_coefficient', '123');
form.append('coverage_ratio', '123');
form.append('parcel_id', '<string>');
form.append('registration_number', '<string>');
form.append('registration_block', '<string>');
form.append('registration_codes', '{
"code": "<string>",
"country": "<string>"
}');
form.append('purpose', 'property_management');
form.append('files', '<string>');
form.append('files.items', '{
"fileName": "example-file"
}');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://pandora.ask-wire.com/api/assets/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pandora.ask-wire.com/api/assets/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"portfolio\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"ref_asset_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"notes\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"address\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"latitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"longitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"district\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zone_name\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"region\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"regional_unit\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"neighborhood\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"property_usage\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sales_price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"build_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"land_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"basement_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"covered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"uncovered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"construction_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovated\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovation_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_floor_count\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"floor_number\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bedrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bathrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parking_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"has_parking_space\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"storage_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"heating_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"cooling_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"energy_class\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"condition\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"view\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"right_of_ownership\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"seller\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"owner\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auction\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"road_access\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"garden\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"swimming_pool\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_coefficient\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"coverage_ratio\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parcel_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_number\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_block\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_codes\"\r\n\r\n{\r\n \"code\": \"<string>\",\r\n \"country\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\nproperty_management\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pandora.ask-wire.com/api/assets/"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"portfolio\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"ref_asset_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"notes\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"address\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"latitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"longitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"district\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zone_name\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"region\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"regional_unit\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"neighborhood\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"property_usage\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sales_price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"build_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"land_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"basement_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"covered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"uncovered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"construction_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovated\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovation_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_floor_count\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"floor_number\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bedrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bathrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parking_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"has_parking_space\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"storage_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"heating_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"cooling_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"energy_class\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"condition\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"view\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"right_of_ownership\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"seller\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"owner\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auction\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"road_access\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"garden\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"swimming_pool\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_coefficient\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"coverage_ratio\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parcel_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_number\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_block\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_codes\"\r\n\r\n{\r\n \"code\": \"<string>\",\r\n \"country\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\nproperty_management\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pandora.ask-wire.com/api/assets/")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"portfolio\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"ref_asset_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"notes\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"address\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"latitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"longitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"district\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zone_name\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"region\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"regional_unit\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"neighborhood\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"property_usage\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sales_price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"build_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"land_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"basement_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"covered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"uncovered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"construction_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovated\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovation_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_floor_count\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"floor_number\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bedrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bathrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parking_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"has_parking_space\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"storage_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"heating_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"cooling_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"energy_class\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"condition\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"view\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"right_of_ownership\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"seller\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"owner\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auction\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"road_access\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"garden\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"swimming_pool\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_coefficient\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"coverage_ratio\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parcel_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_number\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_block\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_codes\"\r\n\r\n{\r\n \"code\": \"<string>\",\r\n \"country\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\nproperty_management\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://pandora.ask-wire.com/api/assets/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"portfolio\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"ref_asset_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"notes\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"address\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"latitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"longitude\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"district\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zone_name\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"region\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"regional_unit\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"neighborhood\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"property_usage\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sales_price\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"build_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"land_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"basement_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"covered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"uncovered_veranda_area\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"construction_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovated\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"renovation_year\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_floor_count\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"floor_number\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bedrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"number_of_bathrooms\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parking_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"has_parking_space\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"storage_space\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"heating_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"cooling_type\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"energy_class\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"condition\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"view\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"right_of_ownership\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"seller\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"owner\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auction\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"road_access\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"garden\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"swimming_pool\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"building_coefficient\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"coverage_ratio\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parcel_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_number\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_block\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"registration_codes\"\r\n\r\n{\r\n \"code\": \"<string>\",\r\n \"country\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\nproperty_management\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"id": 123,
"ref_asset_id": "<string>",
"reference_id": "<string>",
"municipality": {
"id": 123,
"name_en": "<string>"
},
"municipal_unit": {
"id": 123,
"name_en": "<string>"
},
"region": 123,
"regional_unit": 123,
"neighborhood": 123,
"marketability_report_id": 123,
"marketability_report_status": "<string>",
"marketability_report_task_id": 123,
"marketability_report_task_status": "<string>",
"marketability_report_task_approved_at": "2023-11-07T05:31:56Z",
"marketability_report_reference": "<string>",
"adjusted_price_sqm": 123,
"files": [
"<unknown>"
],
"sub_assets": [
"<unknown>"
],
"registration_codes": [
{
"code": "<string>",
"country": "<string>"
}
],
"deleted": true,
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"listing_type": "rent",
"title": "<string>",
"url": "<string>",
"images": "<string>",
"source": "<string>",
"eauction_code": "<string>",
"price": "<string>",
"sales_price": "<string>",
"price_per_sqm": "<string>",
"auction": true,
"auction_status": "<string>",
"auction_kind": "<string>",
"auction_notice_date": "2023-11-07T05:31:56Z",
"auction_conduct_date": "2023-11-07T05:31:56Z",
"address": "<string>",
"country": "greece",
"district": "<string>",
"zone_name": "<string>",
"client_id": "<string>",
"client_name": "<string>",
"owner": "<string>",
"seller": "<string>",
"latitude": 123,
"longitude": 123,
"property_type": "Apartment",
"property_usage": "residential",
"portfolio": "<string>",
"purpose": "<string>",
"build_area": 123,
"land_area": 123,
"basement_area": 123,
"covered_veranda_area": 123,
"uncovered_veranda_area": 123,
"construction_year": 123,
"renovated": true,
"renovation_year": 123,
"building_floor_count": 123,
"floor_number": 123,
"parking_space": 123,
"has_parking_space": true,
"storage_space": 123,
"garden": true,
"swimming_pool": true,
"road_access": true,
"heating_type": "<string>",
"cooling_type": "<string>",
"energy_class": "<string>",
"condition": "<string>",
"view": "<string>",
"right_of_ownership": "<string>",
"description": "<string>",
"overview": "<string>",
"map_url": "<string>",
"coverage_ratio": 123,
"building_coefficient": 123,
"registration_number": "<string>",
"registration_block": "<string>",
"parcel_id": "<string>",
"listing_status": "active",
"share_on_sale": "<string>",
"number_of_bedrooms": 123,
"number_of_bathrooms": 123
}