FRAMES | NO FRAMES Description | Parameters | Examples | Response
Attachment
URL http://<attachments-url>/<attachmentId>
Supported Operations Delete
Parent Resource Attachments
Child Resources Content

Description

Represents the metadata for a single file or URL attachment of a job.

Linked URL attachments are supported from version 10.1 onwards.

Parameters

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

Values: html | json

Example Usage

Example 1: URL for attachment ID 12 of job ID 5 in the "Workflow" service on sampleserver.

http://sampleserver/arcgis/rest/services/Workflow/WMServer/jobs/5/attachments/12

JSON Response Syntax

{
  "id": <attachmentId>,
  "storageType": <storageType>,  // Valid values: 1 (linked file), 2 (embedded file), 3 (linked URL - added at 10.1)
  "type": "<type>",
  "folder": "<folder>",  // Used only for linked attachments
  "filename": "<filename>"
}

JSON Response Example

{
  "id": 12,
  "storageType": 2,
  "type": "",
  "folder": "",
  "filename": "Data_QC_Report.doc"
}