POST public-api/attachments/uplodBatchAttachmentsForForms
Upload the batch of Attachments For Forms works for attaching the list of attachments to an item according to the form type for several items as a batch. 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
Collection of 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"
]
},
{
"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
WaspResultOfListOfWaspResultOfListOfAttachmentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of WaspResultOfListOfAttachmentModel |
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": [
{
"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-27T14:03:17.529137+00:00",
"AttachmentUploadedBy": "a3f1e352-c645-4ee8-b589-983e490b6b25",
"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-27T14:03:17.529137+00:00",
"AttachmentUploadedBy": "a3f1e352-c645-4ee8-b589-983e490b6b25",
"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
},
{
"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-27T14:03:17.529137+00:00",
"AttachmentUploadedBy": "a3f1e352-c645-4ee8-b589-983e490b6b25",
"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-27T14:03:17.529137+00:00",
"AttachmentUploadedBy": "a3f1e352-c645-4ee8-b589-983e490b6b25",
"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
}
],
"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
}