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

Description

Represents the metadata for all the file and URL attachments 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 the attachments of job ID 5 the "Workflow" service on sampleserver.

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

JSON Response Syntax

{
  "attachments": [
    {
      "id": <attachmentId1>,
      "storageType": <storageType1>,  // Valid values: 1 (linked file), 2 (embedded file), 3 (linked URL - added at 10.1)
      "type": "<type1>",
      "folder": "<folder1>",  // Used only for linked attachments
      "filename": "<filename1>"
    },
    {
      "id": <attachmentId2>,
      "storageType": <storageType2>,
      "type": "<type2>",
      "folder": "<folder2>",
      "filename": "<filename2>"
    },
    ...
  ]
}

JSON Response Example

{
  "attachments": [
    // An example of an embedded file attachment:
    {
      "id": 12,
      "storageType": 2,
      "type": "",
      "folder": "",
      "filename": "Data_QC_Report.doc"
    },
    // An example of a linked file attachment:
    {
      "id": 15,
      "storageType": 1,
      "type": "",
      "folder": "C:\\Documents\\",
      "filename": "Job_Guidelines.pdf"
    },
    // An example of a linked URL attachment:
    {
      "id": 16,
      "storageType": 3,
      "type": "",
      "folder": "http://www.arcgis.com/",
      "filename": ""
    }
  ]
}