Many files under one document

Anything concerning integration via the REST API
Post Reply
legosiv
Posts: 1
Joined: Thu Jan 13, 2022 10:29 am

Many files under one document

Post by legosiv »

Hello! I am trying to upload more than one file under one document. https://docs.mayan-edms.com/chapters/files.html -> the docs here state
Mayan EDMS support creating multiple files in relation to a single document. In essence, the Document is a file container.
So i was wondering if I could store more than one file under one document. e.g. I have an Identity Card with information on both the front and back of the card. The user needs to upload both the front and back separately but can I have the 2 files as one document inside Mayan EDMS or should I use cabinets for this? I planned to use the documents_create route to create a document and documents_file_create to upload files. However both the api routes have other required fields that are not listed in the documentation. Why is that? Is there an error in the documentation? What is required for the action field? Links to some examples or other resources will be appreciated. Thank you! Image [br][/br] Image
Post Reply