Dears,
I have created a request for a client for uploading a document into laserfiche cloud using POST https://api.eu.laserfiche.com/repository/v2/Repositories/%(RepoID)/Entries/%(FolderID)/Folder/Import
The request body is as below
{
"name": "DocumentName",
"autoRename": true,
"pdfOptions": {
"generateText": true,
"generatePages": true,
"generatePagesImageType": "StandardColor",
"keepPdfAfterImport": true
},
"importAsElectronicDocument": false,
"metadata": {
"templateName": "Employee Document",
"fields": [
{
"name": "Employee Name",
"values": [
"User One"
]
},
{
"name": "Employee ID",
"values": [
"123456"
]
}
]
}
}
The purpose for this API request among others is for it to be integrated with a Low-Code, No-Code system (Maestro) which should at te end of a process send documents to Laserfiche. THe request works well when I test it with Postman. They have a request where they would want to Encode the Binary data to Base64 because that's how their file is transmitted to laserfiche.
Anyone that can assist?
Regards,
Mark