FRAMES | NO FRAMES Description | Examples
Attachment - Map Service
URL http://<dynamic-attachmentinfos-url>/<attachmentId>
Parent Resource Attachment Infos
Required Capability Query

Description

The attachment resource represents an individual attachment associated with a feature. This resource is available only if the dynamic layer has advertised that it has attachments. A dynamic layer has attachments if its hasAttachments property is true.

The content of the attachment are streamed to the client. If the attachment is not found, an HTTP status code of 404 (Not found) is returned.

Resource Hierarchy

Attachment

Parameters

Parameter Details
layer Description: Dynamic layer / table source definition.

Note:
  • Use "gdbVersion" on dynamic map layer definition to specify an alternate geodatabase version.
Syntax:
  {
    "id": <layerOrTableId>,
    "source": <layer source>
  }
Example:
{
  "id": 101,
  "source":
  {
    "type": "mapLayer",
    "mapLayerId": 0,
    "gdbVersion": "SDE.DynamicLayers"
  }
}

Example Usage (TODO)

Example 1: Attachment resource for attachment ID 19 belonging to a feature (with featureId 1) in a dynamic layer (existing map service layer with id 2):

http://myServer/arcgis/rest/services/Census/MapServer/dynamicLayer/1/attachments/19?layer={"id":101,"source":{"type":"mapLayer","mapLayerId":3}}&where=1=1&f=pjson