The GetAttachments() command returns a list of photos or
documents attached to the task. Returned values can then be used against the GetPhoto or
GetDocument endpoints.
Table 1. Parameters
| Parameter |
Type |
Max Length |
Required |
Description |
| apiToken |
string |
20 |
Y |
Your API security token configured in
Field View. |
| taskId |
integer |
20 |
Y |
The unique ID of the task. |
Table 2. Returns
| Field |
Type |
Description |
| GetAttachmentsResponse |
GetAttachmentsResponse |
Returns a list of Attachment objects, 0
or more. |
<GetAttachmentsResponse>
<GetAttachmentsResult>
<AttachmentsResponse>
<Attachments>
<Attachment>
<Id>1.12345</Id>
<Type>PHOTO</Type>
<MediaType>Task Photo</MediaType>
<OwnerId>T1.5218772</OwnerId>
</Attachment>
<Attachment>
<Id>23456</Id>
<Type>DOCUMENT</Type>
<MediaType>Document Attachment</MediaType>
<Name>todo.txt</Name>
<OwnerId>T1.12345</OwnerId>
</Attachment>
…
</Attachments>
<Status>
<Code>SUCCESS</Code>
<Message>Success.</Message>
</Status>
</AttachmentsResponse>
</GetAttachmentsResult>
</GetAttachmentsResponse>