insert_features
Add new rows to an ArcGIS Pro layer or table using attributes and geometry, with optional edit session and save settings.
Instructions
Insert new rows into a layer or table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| features | Yes | Rows, e.g. [{"attributes": {"NAME": "A"}, "geometry": "POINT (100 15)"}]. geometry accepts WKT, [x, y] or Esri JSON. | |
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. | |
| save_edits | No | Commit the edits immediately instead of leaving them pending. | |
| use_edit_session | No | Wrap in an edit session (needed for enterprise/versioned data). | |
| geometry_spatial_reference | No | WKID of the supplied geometry; defaults to the layer's. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |