updateServiceDefinition

updateServiceDefinition

updateServiceDefinition(urlstring, requestOptionsIUpdateServiceDefinitionOptions): Promise<IUpdateServiceDefinitionResult>

Update a definition property in a hosted feature service. See the REST Documentation for more information.

Use dark colors for code blocksCopy
      
1
2
3
4
5
6
import { updateServiceDefinition } from '@esri/arcgis-rest-service-admin';
//
updateServiceDefinition(serviceurl, {
  authentication: ArcGISIdentityManager,
  updateDefinition: serviceDefinition
});
Parameters
ParameterTypeNotes
url
string

URL of feature service

requestOptions
IUpdateServiceDefinitionOptions

Options for the request

Returns 
Promise<IUpdateServiceDefinitionResult>

A Promise that resolves with success or error

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.