ICreateServiceParams

Interface

A createParameters JSON object for a new service.

Properties

PropertyTypeNotes
boolean

Indicates if updating the geometry of the service is permitted.

capabilities
 optional 
string

Specify feature service editing capabilities for Create, Delete, Query, Update, and Sync.

copyrightText
 optional 
string

Copyright information associated with the dataset.

description
 optional 
string

A user-friendly description for the published dataset.

editorTrackingInfo
 optional 
{ allowAnonymousToDelete?: boolean; allowAnonymousToUpdate?: boolean; allowOthersToDelete?: boolean; allowOthersToQuery?: boolean; allowOthersToUpdate?: boolean; enableEditorTracking?: boolean; enableOwnershipAccessControl?: boolean }

Editor tracking info.

hasStaticData
 optional 
boolean

Indicates whether the data changes.

initialExtent
 optional 

The initial extent set for the service.

maxRecordCount
 optional 
number

A double value indicating any constraints enforced on query operations.

string

Name of the service to be created. This name must be unique. If the name already exists, the operation will fail. ArcGIS Enterprise does not allow spaces or special characters other than underscores in a service name.

serviceDescription
 optional 
string

Description given to the service.

spatialReference
 optional 

All layers added to a hosted feature service need to have the same spatial reference defined for the feature service. When creating a new empty service without specifying its spatial reference, the spatial reference of the hosted feature service is set to the first layer added to that feature service.

string

The formats in which query results are returned.

units
 optional 
string

Units used by the feature service

xssPreventionInfo
 optional 
any

A JSON object specifying the properties of cross-site scripting prevention.

allowGeometryUpdates optional

allowGeometryUpdates: boolean

Indicates if updating the geometry of the service is permitted.

capabilities optional

capabilities: string

Specify feature service editing capabilities for Create, Delete, Query, Update, and Sync.

copyrightText optional

copyrightText: string

Copyright information associated with the dataset.

description optional

description: string

A user-friendly description for the published dataset.

editorTrackingInfo optional

editorTrackingInfo: { allowAnonymousToDelete?: boolean; allowAnonymousToUpdate?: boolean; allowOthersToDelete?: boolean; allowOthersToQuery?: boolean; allowOthersToUpdate?: boolean; enableEditorTracking?: boolean; enableOwnershipAccessControl?: boolean }

Editor tracking info.

hasStaticData optional

hasStaticData: boolean

Indicates whether the data changes.

initialExtent optional

initialExtent: IExtent

The initial extent set for the service.

maxRecordCount optional

maxRecordCount: number

A double value indicating any constraints enforced on query operations.

name

name: string

Name of the service to be created. This name must be unique. If the name already exists, the operation will fail. ArcGIS Enterprise does not allow spaces or special characters other than underscores in a service name.

serviceDescription optional

serviceDescription: string

Description given to the service.

spatialReference optional

spatialReference: ISpatialReference

All layers added to a hosted feature service need to have the same spatial reference defined for the feature service. When creating a new empty service without specifying its spatial reference, the spatial reference of the hosted feature service is set to the first layer added to that feature service.

supportedQueryFormats optional

supportedQueryFormats: string

The formats in which query results are returned.

units optional

units: string

Units used by the feature service

xssPreventionInfo optional

xssPreventionInfo: any

A JSON object specifying the properties of cross-site scripting prevention.

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