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.
Responses
-
Created
-
Bad Request -
feature_layer_urlis 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). -
Forbidden - not an internal client, or a BASIC user.
-
Conflict - the profile has no ArcGIS connection.
-
Bad Gateway - ArcGIS could not be reached or answered with an error.
curl \
--request POST 'https://api.iformbuilder.com/exzact/api/v80/[servername]/integrations/arcgis/imports' \
--header "Content-Type: application/json" \
--header "Authorization: Bearer {access_token}" \
--data '{
"feature_layer_url": "https://services7.arcgis.com/AbC123/arcgis/rest/services/street_trees/FeatureServer/0"
}'
# Headers
Authorization: Bearer {access_token}
# Payload
{
"feature_layer_url": "https://services7.arcgis.com/AbC123/arcgis/rest/services/street_trees/FeatureServer/0"
}
{
"id": 42,
"name": "string",
"label": "string",
"feature_layer_url": "string",
"element_count": 42,
"renamed_fields": [
{
"field": "string",
"element": "string"
}
]
}
{
"error_message": "string"
}
{
"error_message": "string"
}
{
"error_message": "string"
}
{
"error_message": "string"
}