Change Index
Change document index fields
Values to be replaced:
- servername.com with your DocuWare server address.
- {FileCabinetId} with the FileCabinetId you get from the response of Get all FileCabinets.
- {DocumentId} with the DocumentId you get from the response of Get all documents from a FileCabinet.
- --data-raw must be adjust with the values that should be changed.
- "C:\Temp\login.cookies" with the path to the cookie jar file you defined by the Login.
curl --location -g --request PUT "https://servername.com/docuware/platform/FileCabinets/{FileCabinetId}/Documents/{DocId}/Fields" ^
--header "Accept: application/json" ^
--header "Content-Type: application/json" ^
--data-raw "{""Field"":[{""FieldName"":""COMPANY"",""Item"":""Company CURL Update"",""ItemElementName"":""String""},{""FieldName"":""CONTACT"",""Item"":""Max Mustermann"",""ItemElementName"":""String""}]}" ^
--cookie "C:\Temp\login.cookies"