createFeatureService
FunctioncreateFeatureService(requestOptions: ICreateServiceOptions): Promise<ICreateServiceResult>
Create a new hosted feature service. After the service has been created, call addToServiceDefinition()
if you'd like to update it's schema.
import {
createFeatureService,
addToServiceDefinition
} from '@esri/arcgis-rest-feature-service';
//
createFeatureService({
authentication: ArcGISIdentityManager,
item: {
"name": "NewEmptyService",
"capabilities": "Create,Delete,Query,Update,Editing"
}
});
Parameters
Parameter | Type | Notes |
---|---|---|
request | ICreateServiceOptions | Options for the request. NOTE: |
Returns
Promise<ICreateServiceResult>
A Promise that resolves with service details once the service has been created