Table of Contents

Upload Document

Upload document without index

Values to be replaced:

  • servername.com with your DocuWare server address.
  • {FileCabinetId} with the FileCabinetId you get from the response of Get all FileCabinets.
  • X-File-ModifiedDate is the date value of creation of the document.
  • /path/to/file must be change to the path to the file that should be uploaded.
  • "C:\Temp\login.cookies" with the path to the cookie jar file you defined by the Login.
curl --location --request POST "https://servername.com/docuware/platform/FileCabinets/{FileCabinetId}/Documents" ^
--header "Content-Type: multipart/form-data" ^
--header "X-File-ModifiedDate: 2020-08-26T00:00:00.000Z" ^
--form "file[]=@/path/to/file" ^
--cookie "C:\Temp\login.cookies"

Upload document with index

Values to be replaced:

  • servername.com with your DocuWare server address.
  • {FileCabinetId} with the FileCabinetId you get from the response of Get all FileCabinets.
  • X-File-ModifiedDate is the date value of creation of the document.
  • document= here must be the json adjust for the index fields that should be transferred.
  • /path/to/file must be change to the path to the file that should be uploaded.
  • "C:\Temp\login.cookies" with the path to the cookie jar file you defined by the Login.
curl --location --request POST "https://servername.com/docuware/platform/FileCabinets/{FileCabinetId}/Documents" ^
--header "Content-Type: multipart/form-data" ^
--header "X-File-ModifiedDate: 2020-08-26T00:00:00.000Z" ^
--form "document={""Fields"":[{""FieldName"":""COMPANY"",""Item"":""CURL upload"",""ItemElementName"":""String""}]};type=application/json" ^
--form "file[]=@/path/to/file" ^
--cookie "C:\Temp\login.cookies"