Update parcel
You can use this API to update any unlocked parcels, including the newly created empty parcel.
| URL | /parcel/v1/update_parcel_metrics |
| Method | POST |
| Parameters |
parcelid, string (required) parcelweight, number (required) parcelcountry, string (required) parcelreference, string avgweight, number numberofstones, number minefactory, string knownorigin, string (You can use this to add "Mine") geolocation_X, string geolocation_Y, string geolocation_Z, string workingdepartment, string workingunit, string personname, string workingpersonname, string |
| Sample Request JSON |
{ "parcelid":"961ef083-e226-4213-946c-a3433eebb685", "parcelreference":"Test Parcel", "parcelweight":"15.00", "avgweight":"15.00", "numberofstones":"5", "parcelcountry": "Australia", "minefactory": "Kimberley Diamond Company", "knownorigin":"Ellendale", "geolocation_X": "", "geolocation_Y": "", "geolocation_Z": "", "workingdepartment": "Department Name", "workingunit": "Unit Name", "personname": "Person Name", "workingpersonname": "Working Person Name" } |
| Sample Response JSON |
{ "status": "ok", "isvalid": true } |
| Response Codes |
200: ok E147: error - parcel is locked and/or exported |