createFeatureService

Function

import {
  createFeatureService,
  addToServiceDefinition
} from '@esri/arcgis-rest-feature-service-admin';
//
createFeatureService({
  authentication: userSession,
  item: {
    "name": "NewEmptyService",
    "capabilities": "Create,Delete,Query,Update,Editing"
  }
});

Create a new hosted feature service. After the service has been created, call addToServiceDefinition() if you'd like to update it's schema.

Parameters

Parameter Type Default Notes
requestOptions Required ICreateServiceRequestOptions

Options for the request. NOTE: rawResponse is not supported by this operation.

Returns

Promise<ICreateServiceResult> - A Promise that resolves with service details once the service has been created


Function defined in packages/arcgis-rest-feature-service-admin/src/create.ts:166