updateFeatures

Function

import { updateFeatures } from '@esri/arcgis-rest-feature-service';
//
updateFeatures({
  url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0",
  features: [{
    geometry: { x: -120, y: 45, spatialReference: { wkid: 4326 } },
    attributes: { status: "alive" }
  }]
});

Update features request. See the REST Documentation for more information.

Parameters

Parameter Type Default Notes
requestOptions Required IUpdateFeaturesRequestOptions

Options for the request.

Returns

Promise<IUpdateFeaturesResult> - A Promise that will resolve with the updateFeatures response.


Function defined in packages/arcgis-rest-feature-service/src/update.ts:66