interface ICreateServiceParams {
    allowGeometryUpdates?: boolean;
    capabilities?: string;
    copyrightText?: string;
    description?: string;
    editorTrackingInfo?: {
        allowAnonymousToDelete?: boolean;
        allowAnonymousToUpdate?: boolean;
        allowOthersToDelete?: boolean;
        allowOthersToQuery?: boolean;
        allowOthersToUpdate?: boolean;
        enableEditorTracking?: boolean;
        enableOwnershipAccessControl?: boolean;
    };
    hasStaticData?: boolean;
    initialExtent?: IExtent;
    maxRecordCount?: number;
    name: string;
    serviceDescription?: string;
    spatialReference?: ISpatialReference;
    supportedQueryFormats?: string;
    units?: string;
    xssPreventionInfo?: any;
}

Properties

allowGeometryUpdates?: boolean

Indicates if updating the geometry of the service is permitted.

capabilities?: string

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

copyrightText?: string

Copyright information associated with the dataset.

description?: string

A user-friendly description for the published dataset.

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

Editor tracking info.

Type declaration

  • Optional allowAnonymousToDelete?: boolean
  • Optional allowAnonymousToUpdate?: boolean
  • Optional allowOthersToDelete?: boolean
  • Optional allowOthersToQuery?: boolean
  • Optional allowOthersToUpdate?: boolean
  • Optional enableEditorTracking?: boolean
  • Optional enableOwnershipAccessControl?: boolean
hasStaticData?: boolean

Indicates whether the data changes.

initialExtent?: IExtent

The initial extent set for the service.

maxRecordCount?: number

A double value indicating any constraints enforced on query operations.

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?: string

Description given to the service.

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?: string

The formats in which query results are returned.

units?: string

Units used by the feature service

xssPreventionInfo?: any

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