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

Description

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

The content of the attachment are streamed to the client. Attachments are returned within an attachmentInfos. If the attachment is not found, an error is returned.

Resource Hierarchy

Attachment - Feature Service

Example Usage

Example 1: Note this is an example url only and is not an active link to an existing attachment.

http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0/818654/attachments/1

JSON Response Syntax

  {
   "id": <attachmentId1>,
   "contentType": "<contentType1>",
   "size": <size1>,
   "name": "<name1>"
  }
 

JSON Response Example

  {
   "id": 2,
   "contentType": "application/pdf",
   "size": 270133,
   "name": "Sales Deed"
  }