Create infrastructure asset
create_infrastructure_assetCreate an infrastructure asset (feature - segment or node). Geometry must be GeoJSON Point (for nodes) or LineString (for segments) in EPSG:4326; coordinates are [longitude, latitude]. length_m, slope_pct, and risk_score are computed server-side. Requires infrastructure_assets:write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Feature name | |
| lanes | No | Lane count | |
| model | No | Model | |
| depth_m | No | Depth (m) | |
| qr_code | No | QR code | |
| site_id | No | Site ID | |
| width_m | No | Width (m) | |
| geometry | Yes | GeoJSON geometry - Point for nodes, LineString for segments | |
| material | No | Material | |
| quantity | No | Quantity | |
| image_url | No | Image URL | |
| status_id | No | Asset status ID | |
| system_id | No | System ID | |
| to_street | No | To street (segments) | |
| network_id | Yes | Infrastructure network ID (required) | |
| road_class | No | O. Reg. 239/02 road class 1-6 (1-2 arterial, 3-4 collector, 5-6 local) | |
| building_id | No | Building ID | |
| data_source | No | Data source | |
| description | No | Description | |
| diameter_mm | No | Diameter (mm) | |
| from_street | No | From street (segments) | |
| location_id | No | Location ID | |
| risk_factor | No | Risk factor: CRITICAL, HIGH, MEDIUM, LOW | |
| to_invert_m | No | To-invert elevation (m) | |
| external_ids | No | Free-form external ID map | |
| feature_code | No | Feature ID - human-readable asset identifier, unique per tenant (typically the source GIS asset id) | |
| feature_type | Yes | "segment" (LineString) or "node" (Point) | |
| install_date | No | Install date (YYYY-MM-DD) | |
| asset_type_id | No | Asset type ID | |
| from_invert_m | No | From-invert elevation (m) | |
| purchase_cost | No | Purchase cost | |
| purchase_date | No | Purchase date (YYYY-MM-DD) | |
| safety_impact | No | LOW, MEDIUM, HIGH, CRITICAL | |
| salvage_value | No | Salvage value | |
| serial_number | No | Serial number | |
| to_feature_id | No | To-node feature ID (segments) | |
| flow_direction | No | Flow direction | |
| service_impact | No | LOW, MEDIUM, HIGH, CRITICAL | |
| condition_score | No | Condition score (0-100) | |
| from_feature_id | No | From-node feature ID (segments) | |
| manufacturer_id | No | Manufacturer ID | |
| system_class_id | No | System class ID | |
| system_group_id | No | System group ID | |
| unit_of_measure | No | Unit of measure | |
| financial_impact | No | LOW, MEDIUM, HIGH, CRITICAL | |
| regulatory_impact | No | LOW, MEDIUM, HIGH, CRITICAL | |
| reputation_impact | No | LOW, MEDIUM, HIGH, CRITICAL | |
| environmental_impact | No | LOW, MEDIUM, HIGH, CRITICAL | |
| last_maintenance_date | No | Last maintenance date (YYYY-MM-DD) | |
| unit_replacement_value | No | Unit replacement value | |
| expected_lifetime_years | No | Expected lifetime (years) | |
| salvage_value_percentage | No | ||
| positional_accuracy_class | No | Positional accuracy class | |
| likelihood_of_failure_score | No | ||
| consequence_of_failure_score | No | ||
| purchase_cost_calculation_method | No | Cost calc method |