GetAttachments()
The GetAttacments() command returns a list of Photos or Documents attached to the Asset. Returned values can then be used against GetPhoto or GetDocument endpoints.
To get a list of assets attached to a project, see GetProjectAssetsList().
|
Parameter | Type | Max Length | Required | Description |
---|---|---|---|---|
apiToken | string | 20 | Y | Your API security token configured in Field View. |
assetId | integer | Y | The unique ID of the asset . |
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>