POST public-api/attachments/getAttachmentsByAssociatedTag
Obsolete, please use GetAttachmentMetadataByAssociatedTag - and download instead Get Attachments By Associated Tag given the associated tag of item and the form name and returns the attachments related to that item nested in the form. Requires the Allow permission of the form you are attempting to retrieve attachments for, Role Site and Asset Type permissions are enforced when relevant In response , HasSuccessWithMoreDataRemaining and BatchNumber are not required .
Request Information
URI Parameters
None.
Body Parameters
AttachmentsSearchByAssociatedTagModel| Name | Description | Type | Additional information |
|---|---|---|---|
| AssociatedTag | string |
None. |
|
| FormName | string |
None. |
Request Formats
application/json
Sample:
{
"AssociatedTag": "sample string 1",
"FormName": "sample string 2"
}
Response Information
Resource Description
WaspResultOfListOfAttachmentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of AttachmentModel |
None. |
|
| Messages | Collection of WtResult |
None. |
|
| BatchNumber | integer |
None. |
|
| HasError | boolean |
None. |
|
| HasHttpError | boolean |
None. |
|
| HasMessage | boolean |
None. |
|
| HasSuccessWithMoreDataRemaining | boolean |
None. |
|
| TotalRecordsLongCount | integer |
None. |
Response Formats
application/json
Sample:
{
"Data": [
{
"AttachmentData": "QEA=",
"AttachmentId": 1,
"FormId": 2,
"AssociationId": 3,
"AttachmentFileName": "sample string 4",
"AttachmentDataType": "sample string 5",
"AttachmentGuid": "sample string 6",
"AttachmentDataSize": 1,
"AttachmentUploadedDate": "2026-07-25T03:27:20.7755224+00:00",
"AttachmentUploadedBy": "2debd031-4f8a-4e93-8c56-ac360b5a4498",
"UserName": "sample string 7",
"AttachmentUriPath": "sample string 8",
"AttachmentIsDefault": true,
"AttachmentIsReadOnly": true,
"HasAttachment": true,
"AttachmentMobileDownload": true,
"ApplicationId": 12
},
{
"AttachmentData": "QEA=",
"AttachmentId": 1,
"FormId": 2,
"AssociationId": 3,
"AttachmentFileName": "sample string 4",
"AttachmentDataType": "sample string 5",
"AttachmentGuid": "sample string 6",
"AttachmentDataSize": 1,
"AttachmentUploadedDate": "2026-07-25T03:27:20.7755224+00:00",
"AttachmentUploadedBy": "2debd031-4f8a-4e93-8c56-ac360b5a4498",
"UserName": "sample string 7",
"AttachmentUriPath": "sample string 8",
"AttachmentIsDefault": true,
"AttachmentIsReadOnly": true,
"HasAttachment": true,
"AttachmentMobileDownload": true,
"ApplicationId": 12
}
],
"Messages": [
{
"ResultCode": 0,
"Message": "sample string 1",
"HttpStatusCode": 200,
"FieldName": "sample string 2"
},
{
"ResultCode": 0,
"Message": "sample string 1",
"HttpStatusCode": 200,
"FieldName": "sample string 2"
}
],
"BatchNumber": 1,
"HasError": false,
"HasHttpError": false,
"HasMessage": true,
"HasSuccessWithMoreDataRemaining": false,
"TotalRecordsLongCount": 1
}