POST public-api/attachments/uplodAttachmentsForForms
Upload Attachments For Forms works for attaching the list of attachments to an item according to the form type. This Api will cover any form in the application which could have attachment. Requires the Edit permission of the form you are attempting to Edit, Role Site and Asset Type permissions are enforced when relevant Accepts a maximum of 500 records at a time
Request Information
URI Parameters
None.
Body Parameters
AttachmentsUploadAssociatedModel| Name | Description | Type | Additional information |
|---|---|---|---|
| AttachmentsList | Collection of AttachmentUploadAttributes |
None. |
|
| AttachmentFormType | WtFormId |
None. |
|
| AssociatedObjectList | Collection of string |
None. |
Request Formats
application/json
Sample:
{
"AttachmentsList": [
{
"AttachmentFileByteArray": "QEA=",
"AttachmentType": 0,
"AttachmentFileName": "sample string 1",
"IsDefaultAttachment": true
},
{
"AttachmentFileByteArray": "QEA=",
"AttachmentType": 0,
"AttachmentFileName": "sample string 1",
"IsDefaultAttachment": true
}
],
"AttachmentFormType": 0,
"AssociatedObjectList": [
"sample string 1",
"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-02-17T10:19:04.1254255+00:00",
"AttachmentUploadedBy": "ac72d3d1-ee77-4866-acc7-dd0ed8769c7c",
"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-02-17T10:19:04.1254255+00:00",
"AttachmentUploadedBy": "ac72d3d1-ee77-4866-acc7-dd0ed8769c7c",
"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
}