Inventory update error
Good Morning/Afternoon @mobreza
I am trying to update an inventory
, but I am getting an error when I set a parentInventory
.
I attach the forms of how I am sending the JSON
Way 1
{
"id":283639,
"availabilityStatusCode":"ACTIVE",
"inventoryNumberPart1":"COL003GRP1IMB19981125",
"formTypeCode":"SD",
"accession":{"id":67053},
"inventoryMaintenancePolicy":{"id":6},
"site":{"id":2},
"parentInventory":623338
}
Way 2
{
"id":283639,
"availabilityStatusCode":"ACTIVE",
"inventoryNumberPart1":"COL003GRP1IMB19981125",
"formTypeCode":"SD",
"accession":{"id":67053},
"inventoryMaintenancePolicy":{"id":6},
"site":{"id":2},
"parentInventory":{623338}
}
- I don't know, if the cause is because the field is not in the
serialization
. as the following picture shows.
- If the way I am sending it in the
JSON
is not correct, please tell me which one it would be?
Post Data: If I don't send the parentInventory
, the inventory
updated successfully.
Thank you, Regards