curl --location --request PUT "http://localhost:4680/storage/rest/api/Repositories('REPO')/Documents('A761CC9609B445768C12AF5DFA89A332')?SessionToken=8E96F313F3894D5BA1EF54332979B1F7" \
--header "Content-Type: application/json" \
--data "{
\"_subject\": \"Just a new subject\",
\"_doctype\": \"invoice\",
\"_language\": \"en\",
\"_externalid\": \"0050568F572C1ED8B999857F01393628\",
\"customdata\": {
\"value\": 1222345.34,
\"whatever\": {
\"a\": 1234,
\"b\": 120,
\"c\": 300,
\"d\": 200,
\"e\": 1
}
},
\"_fields\": {
\"ARTZAHL\": {
\"_active\": true,
\"_name\": \"ARTZAHL\",
\"_datatype\": \"UCS2STR\",
\"_value\": \"Überweisung\",
\"_confidence\": 100,
\"_page\": 0,
\"_zone\": {
\"_left\": 0,
\"_top\": 0,
\"_right\": 1,
\"_bottom\": 1,
\"_width\": 1,
\"_height\": 1
}
},
\"Faktura\": {
\"_active\": true,
\"_name\": \"Faktura\",
\"_datatype\": \"UCS2STR\",
\"_value\": \"0090005188\",
\"_confidence\": 100,
\"_page\": 0,
\"_zone\": {
\"_left\": 0,
\"_top\": 0,
\"_right\": 1,
\"_bottom\": 1,
\"_width\": 1,
\"_height\": 1
}
}
},
\"_blobs\": [
{
\"_uuid\": \"95B32CFA8DBC43558F28571E36E8C9AF\",
\"_storprovid\": \"23BFCEEA137D4B5A8FA7818785D4E28C\",
\"_changedate\": \"2019-05-16T10:02:28.635Z\",
\"_ext\": \"txt\",
\"_mimetype\": \"text/plain\",
\"_doctype\": \"\",
\"_extblobid\": \"\",
\"_name\": \"test\",
\"_blobdata\": \"\",
\"_bloblink\": \"doc://auri/test\",
\"_blobsize\": 16,
\"_datasize\": 0,
\"_blobdate\": \"1899-12-29T23:00:00.000Z\",
\"_encryption\": 2
}
]
}"