> For the complete documentation index, see [llms.txt](https://apidocs.zerionsoftware.com/doc/iformbuilder-v81/llms.txt)

# Import ArcGIS Feature Layer

> POST /integrations/arcgis/imports
> 
> Creates a form in the caller's profile from a feature layer and links the form to that layer. The form gets an Esri widget, then one element per layer field:
> 
> | Layer field | Element |
> |---|---|
> | coded-value domain | pick list, with a new option list |
> | range domain | range |
> | `esriFieldTypeDate` | date-time |
> | `esriFieldTypeDateOnly` | date |
> | double, single, integer, small and big integer | number |
> | anything else | text, sized to the field's length |
> 
> The object id field is not imported. Global id, geometry, blob and raster fields become optional text elements; records never send them to the layer. Required (`nullable: false`) and read-only (`editable: false`) carry over. A field whose name has characters an element name cannot hold, is reserved, starts with a digit or collides with another is renamed and listed in `renamed_fields`; the form keeps the layer field name, and records send a renamed element to that field. If any step fails, the half-created form and its option lists are removed.
> 
> ### Authorization
> 
> Internal API clients only, and the user must be a SERVER or COMPANY user.



## Servers
- https://api.iformbuilder.com/exzact/api/v81/[servername]: https://api.iformbuilder.com/exzact/api/v81/[servername]


## Authentication methods
- Oauth2


## Parameters
### Headers

- **Authorization** (string)
  e.g. Bearer {access_token}




### Body: application/json (object)

- **feature_layer_url** (string)
  https URL ending in `/FeatureServer/{layer_id}`; a query string is dropped



## Responses
### 201
Created

#### Body: application/json (object)
- **id** (integer)

- **name** (string)

- **label** (string)

- **feature_layer_url** (string)

- **element_count** (integer)
  elements created from layer fields, the Esri widget not counted

- **renamed_fields** (array[object])


### 400
Bad Request - `feature_layer_url` is not an https FeatureServer layer URL, is on a host the connection may not reach, cannot be read with the account, or is not a feature layer; or the form could not be created (for example the profile's form limit).

#### Body: application/json (object)
- **error_message** (string)
  human-readable reason for the failure


### 403
Forbidden - not an internal client, or a BASIC user.

#### Body: application/json (object)
- **error_message** (string)
  human-readable reason for the failure


### 409
Conflict - the profile has no ArcGIS connection.

#### Body: application/json (object)
- **error_message** (string)
  human-readable reason for the failure


### 502
Bad Gateway - ArcGIS could not be reached or answered with an error.

#### Body: application/json (object)
- **error_message** (string)
  human-readable reason for the failure



[Powered by Bump.sh](https://bump.sh)
