Attachment (Map Service/Dynamic Layer)

URL:
https://<dynamic-attachmentinfos-url>/<attachmentId>
Methods:
GET
Required Capability:
Query
Version Introduced:
10.1

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 it hasAttachments property is true .

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

Request parameters

ParameterDetails

layer

Description: Dynamic layer/table source definition.

Syntax:

1
2
3
4
{
    "id": <layerOrTableId>,
    "source": <layer source>
  }

Example:

1
2
3
4
5
6
7
8
9
{
  "id": 101,
  "source":
  {
    "type": "mapLayer",
    "mapLayerId": 0,
    "gdbVersion": "SDE.DynamicLayers"
  }
}

Example usage

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 3):

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

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close