updateFeatures
FunctionupdateFeatures(requestOptions: IUpdateFeaturesOptions): Promise<{ updateResults: IEditFeatureResult[] }>
Update features request. See the REST Documentation for more information.
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" }
}]
});
Parameters
Parameter | Type | Notes |
---|---|---|
request | IUpdateFeaturesOptions | Options for the request. |
Returns
Promise<{ updateResults: IEditFeatureResult[] }>
A Promise that will resolve with the updateFeatures response.