Links the form to a feature layer, so new and updated records are pushed to it. The URL must end in /FeatureServer/{layer_id}, be on a host the profile's connection may send its token to, and describe a layer with objectIdField and fields when read with the connected account. Replaces an existing link.
Authorization
Internal API clients only, the user must be a SERVER or COMPANY user, and the user must be able to modify the page.
Responses
-
OK
-
Bad Request - not a FeatureServer layer URL, on a host the connection may not reach, or not readable as a feature layer with the account.
-
Forbidden - not an internal client, a BASIC user, or no modify permission on the page.
-
Not Found - the page is not in the profile.
-
Conflict - the profile has no ArcGIS connection.
-
Bad Gateway - ArcGIS could not be reached or answered with an error.
curl \
--request PUT 'https://api.iformbuilder.com/exzact/api/v81/[servername]/profiles/self/pages/{page_id}/arcgis/link' \
--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"
}
{
"page_id": 42,
"feature_layer_url": "string"
}
{
"error_message": "string"
}
{
"error_message": "string"
}
{
"error_message": "string"
}
{
"error_message": "string"
}
{
"error_message": "string"
}