addToServiceDefinition

Function

import { addToServiceDefinition } from '@esri/arcgis-rest-feature-service-admin';
//
addToServiceDefinition(serviceurl, {
  authentication: userSession,
  layers: [],
  tables: []
});

Add layer(s) and/or table(s) to a hosted feature service. See the REST Documentation for more information.

Parameters

Parameter Type Default Notes
url Required string

URL of feature service

requestOptions Required IAddToServiceDefinitionRequestOptions

Options for the request

Returns

Promise<IAddToServiceDefinitionResult> - A Promise that resolves with service layer and/or table details once the definition has been updated


Function defined in packages/arcgis-rest-feature-service-admin/src/addTo.ts:52