Api session event editor functionoverride set function value
Jump to navigation
Jump to search
API Endpoint: editorfunctionoverride/set_function_value.
Description: Set Function Value
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (FUNCTION_OVERRIDE Integer ID) | Function Override | |
| 1 | REQUIRED | (Enumeration) | Function Value | ALIGN_ELEVATION, BASEMENT_COLOR, BASEMENT_HEIGHT_M, BOWEN_RATIO, CRITICAL_INFRASTRUCTURE, DEFAULT_FLOORS, DISTANCE_ZONE_M, DISTURBANCE_DISTANCE_M, DRAINAGE, EXTRA_COLOR, FLOOR_HEIGHT_M, FOLIAGE_CROWN_FACTOR, GROUND_COLOR, GROUND_INFILTRATION_MD, HEAT_EFFECT, HEIGHT_OFFSET_M, JAM_FACTOR_BUSES, JAM_FACTOR_CARS, JAM_FACTOR_TRUCKS, JAM_FACTOR_VANS, LIVABILITY_EFFECT, MAX_FLOORS, MIN_FLOORS, MONUMENTAL, NUM_AIRPLANES, NUM_BICYCLES, NUM_BUSES, NUM_CARS, NUM_PEDESTRIANS, NUM_SHIPS, NUM_TRAINS, NUM_TRAMS, NUM_TRUCKS, NUM_VANS, PIPES_PERMITTED, ROOF_COLOR, ROOT_DEPTH_M, SAFETY_DISTANCE_M, SEWERED, SLANTING_ROOF_HEIGHT, SOLAR_PANELS, SOLID, TERRAIN_MIX, TOP_COLOR, TRAFFIC_LANES, TRAFFIC_NOISE_SIGMA, TRAFFIC_NOISE_TAU, TRAFFIC_SPEED, VEGETATION_FRACTION, WATER_MANNING, WATER_MICRORELIEF_M, WATER_STORAGE_M2, WATER_TRANSPIRATION_FACTOR or ZONING_PERMIT_REQUIRED |
| 2 | REQUIRED | (Floating point number or multiple values in array [1.0, 2.0, 3.0]) | double[] |
Response Codes
| Response Code: | Description |
|---|---|
| 204 | No Content |
| 300-600 | Codes Overview |
Example POST
Curl example POST:
curl 'https://engine.tygron.com/api/session/event/editorfunctionoverride/set_function_value/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 1, "LIVABILITY_EFFECT", 1.0 ]'Curl example multi item POST:
curl 'https://engine.tygron.com/api/session/event/editorfunctionoverride/set_function_value/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 1, "LIVABILITY_EFFECT", [ 1.0, 2.0, 3.0 ] ]'JavaScript example POST:
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ 1, "LIVABILITY_EFFECT", 1.0 ]'
};
fetch("https://engine.tygron.com/api/session/event/editorfunctionoverride/set_function_value/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));