- URL:
- https://<root>/services/<serviceName>/sharedTemplates
- Methods:
GET
- Version Introduced:
- 11.3
Description
The shared
resource allows you to access editing templates that have been authored and persisted in the backend data store (e.g. enterprise geodatabase). These editing templates can be accessed by any feature service which references the same backend datasets. The shared
resource describes the schema of the shared templates in the data store.
Shared templates include feature, group and preset types of editing templates. Also note that editing templates accessed from the shared templates REST API are independent from editing templates that are described in layer resources.
If the service's has
property is true
, this indicates that there are shared editing templates available.
Request parameters
Parameter | Details |
---|---|
| The response format. The default format is Values: |
Response properties
Parameter | Details |
---|---|
| An integer unique identifier. The value is system maintained. |
| A global unique identifier. The value is system maintained. |
| The type of editing template. Values: |
| The name assigned to the template. |
| Identifies the default drawing tool that was authored with the template. |
| The layer for which the template is assigned. For group and preset templates this is the layer referenced by the base part. |
| Describes the subtype for which the template was authored for layers that have subtypes. The value is |
| The full definition of the template. This is needed when a client uses the template to create a feature. The definition can be accessed from the templates resource. |
| Describes the template. |
| Optional base 64 image that can be used as a thumbnail in a template picker. |
| Optional tags which can be assigned to more easily organize and search for templates associated around a common theme. Tags are semi-colon ( |
| Editing templates that are set as Values: |
| A value that describes the template. The value is updated when the definition of the template is modified. Clients can use the hash to know if a templates definition has changed since it was last used by the client. |
| The ArcGIS Enterprise user who owns the shared editing template. An editing template with a |
| Editing templates with status of Values: |
Example usage
The following is a sample request URL used to access the shared
resource:
https://machine.domain.com/webadaptor/rest/services/sharedtemplate_line/FeatureServer/sharedTemplates?f=pjson
JSON Response syntax
{
"templatesFields": <templateFields>
}
JSON Response example
{
"templateFields": [
{
"name": "templateId",
"type": "esriFieldTypeOID",
"alias": "templateId",
"domain": null,
"editable": false,
"nullable": false,
"defaultValue": null
},
{
"name": "globalId",
"type": "esriFieldTypeGlobalID",
"alias": "globalId",
"domain": null,
"editable": false,
"nullable": false,
"length": 38,
"defaultValue": null
},
{
"name": "type",
"type": "esriFieldTypeSmallInteger",
"alias": "type",
"domain": null,
"editable": false,
"nullable": false,
"defaultValue": null
},
{
"name": "name",
"type": "esriFieldTypeString",
"alias": "name",
"domain": null,
"editable": false,
"nullable": false,
"length": 255,
"defaultValue": null
},
{
"name": "defaultTool",
"type": "esriFieldTypeGUID",
"alias": "defaultTool",
"domain": null,
"editable": false,
"nullable": true,
"length": 38,
"defaultValue": null
},
{
"name": "layerId",
"type": "esriFieldTypeInteger",
"alias": "layerId",
"domain": null,
"editable": false,
"nullable": true,
"defaultValue": null
},
{
"name": "subtype",
"type": "esriFieldTypeInteger",
"alias": "subtype",
"domain": null,
"editable": false,
"nullable": true,
"defaultValue": null
},
{
"name": "definition",
"type": "esriFieldTypeBlob",
"alias": "definition",
"domain": null,
"editable": false,
"nullable": false,
"defaultValue": null
},
{
"name": "description",
"type": "esriFieldTypeString",
"alias": "description",
"domain": null,
"editable": false,
"nullable": true,
"length": 1024,
"defaultValue": null
},
{
"name": "thumbnail",
"type": "esriFieldTypeBlob",
"alias": "thumbnail",
"domain": null,
"editable": false,
"nullable": true,
"defaultValue": null
},
{
"name": "tags",
"type": "esriFieldTypeString",
"alias": "tags",
"domain": null,
"editable": false,
"nullable": true,
"length": 2000,
"defaultValue": null
},
{
"name": "visible",
"type": "esriFieldTypeSmallInteger",
"alias": "visible",
"domain": null,
"editable": false,
"nullable": false,
"defaultValue": null
},
{
"name": "hash",
"type": "esriFieldTypeString",
"alias": "hash",
"domain": null,
"editable": false,
"nullable": false,
"length": 64,
"defaultValue": null
},
{
"name": "userIdentity",
"type": "esriFieldTypeString",
"alias": "userIdentity",
"domain": null,
"editable": false,
"nullable": true,
"length": 255,
"defaultValue": null
},
{
"name": "status",
"type": "esriFieldTypeInteger",
"alias": "status",
"domain": null,
"editable": false,
"nullable": true,
"defaultValue": null
}
]
}