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>,
"type": "<type1>",
"folder": "<folder1>",
"filename": "<filename1>"
},
{
"id": <attachmentId2>,
"storageType": <storageType2>,
"type": "<type2>",
"folder": "<folder2>",
"filename": "<filename2>"
},
...
]
}
JSON Response Example
{
"attachments": [
{
"id": 12,
"storageType": 2,
"type": "",
"folder": "",
"filename": "Data_QC_Report.doc"
},
{
"id": 15,
"storageType": 1,
"type": "",
"folder": "C:\\Documents\\",
"filename": "Job_Guidelines.pdf"
},
{
"id": 16,
"storageType": 3,
"type": "",
"folder": "http://www.arcgis.com/",
"filename": ""
}
]
}