Upload via REST API
/rest/uploads includes endpoints that allow to import a document into Transkribus.
A POST request to this endpoint creates a new upload process on the server. It is mandatory to set the query parameter
collId which must include the ID of a collection where the user has write access.
If the Content-Type header is set to
application/xml, the request body must include a valid Transkribus METS XML.
If the header specifies
application/json then a JSON object of the following form is expected: