curl --location --request PATCH '/workspaces//documents//feedback' \
--header 'Content-Type: application/json' \
--data-raw '{
"overallRating": 4,
"comments": "The VAT amount was incorrectly extracted. It should be 7.70, not 7.07.",
"fieldCorrections": {
"documentType": "INVOICE",
"externalDocumentId": "INV-2025-00123",
"items": [
{
"correctedFields": {
"vatAmount": 7.7,
"description": "Corrected Service Description for Q2"
}
}
],
"sender": {
"correctedFields": {
"emails": [
"corrected.info@docpier.com"
]
}
}
}
}'