FRAMES | NO FRAMES Description | Parameters | Examples | Response
Attachment Infos - Feature Service
URL http://<featureservicefeature-url>/attachments
Parent Resource Feature - Feature Service
Child Resources Attachment
Required Capability Query

Description

The attachment infos resource returns information about attachments 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.

Each attachment info includes information about the attachment such as its id, content type, size and name.

The attachment infos resource has 1 child resource:

Resource Hierarchy

Attachment Infos - Feature Service

Parameters

Parameter Details
f Description: The response format. The default response format is html.

Values: html | json
gdbVersion //This option was added at 10.1

Description: GeoDatabase version to query. This parameter applies only if isDataVersioned property of the layer is true.
If this is not specified, query will apply to published map’s version.

Syntax:
gdbVersion=<version>
Example:
gdbVersion=SDE.DEFAULT

Example Usage

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

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

JSON Response Syntax

{
 "attachmentInfos": [
  {
   "id": <attachmentId1>,
   "contentType": "<contentType1>",
   "size": <size1>,
   "name": "<name1>"
  },
  {
   "id": <attachmentId2>,
   "contentType": "<contentType2>",
   "size": <size2>,
   "name": "<name2>"
  }
 ]
}

JSON Response Example

{
 "attachmentInfos": [
  {
   "id": 3,
   "contentType": "video/quicktime",
   "size": 397540,
   "name": "360 degree view"
  },
  {
   "id": 2,
   "contentType": "application/pdf",
   "size": 270133,
   "name": "Sales Deed"
  },
  {
   "id": 1,
   "contentType": "image/jpg",
   "size": 45325,
   "name": "Picture of the house"
  }
 ]
}