updateServiceDefinition
FunctionupdateServiceDefinition(url: string, requestOptions: IUpdateServiceDefinitionOptions): Promise<IUpdateServiceDefinitionResult>
Update a definition property in a hosted feature service. See the REST Documentation for more information.
import { updateServiceDefinition } from '@esri/arcgis-rest-feature-service';
//
updateServiceDefinition(serviceurl, {
authentication: ArcGISIdentityManager,
updateDefinition: serviceDefinition
});
Parameters
Parameter | Type | Notes |
---|---|---|
url | string | URL of feature service |
request | IUpdateServiceDefinitionOptions | Options for the request |
Returns
Promise<IUpdateServiceDefinitionResult>
A Promise that resolves with success or error