CDB3-327 dgf-english 500 server error when trying to update procedure item
Summary: when I trying to send request without classification, unit, address, additionalClassification fields - I got 500 error
STR:
- Go to /api/procedures/:procedure_id?acc_token={{procedure_acc_token}} endpoint
- Send PATCH request with next body:
{"items": [
{
"id": "db721cbcc024456f9c02f34234210953",
"description": {
"uk_UA": "string",
"en_US": "string"
},
"quantity": 11.1126,
"location": {
"latitude": "string",
"longitude": "string",
"elevation": "strg"
},
"dgfItemType": "assest",
"itemProps": {
"totalBuildingArea": 12.5,
"totalObjectArea": 2222.3,
"constructionYear": 2020
}
}
]}
Example procedure: id - 5fb38629d0a64cfbf7bc5466 | acc_token - 1affb2aa-c13d-4fcb-8569-8ea5713f3081
X-Request-ID: ceeb8bf5-cfd3-4c8a-b34b-5c0e7e91037e
Actual result: 500 error
Expected result: resp_code shouldn't be 500
Edited by Olga Kochubynska