Update the details of a plant_batch. Update growth phase and take actions (move, add waste or addtives, destroy, etc..) upon the plants for the license_number provided.
OK
Bad Request
{- "license": {
- "license_number": "KMIL1012345"
}, - "actions": {
- "id": "ILPBUD0002"
}, - "move_date": "2022-06-26T20:29:19Z",
- "locations": {
- "id": "fdad7be6c0f74ce1ae8b1431e88bbac6"
}
}
{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "KMIL1012345",
- "type": {
- "name": "Cultivation Centers"
}
}, - "actions": {
- "id": "ILPBUD0002",
- "name": "move"
}, - "id": "feb189d1e56148c2a9f509b38030a598",
- "name": "Hathaway plant batch rejit 05122022 B5",
- "barcode": "9164149779326645",
- "type": {
- "id": "ILPBT0001",
- "name": "seed"
}, - "quantity": {
- "unit_of_measure": "Each",
- "total": 5,
- "untracked": 5,
- "tracked": null,
- "lots": null,
- "harvested": null,
- "wasted": {
- "number_scheduled_for_destruction": 0,
- "number_wasted": 0
}
}, - "planted_date": "2022-05-12T18:27:39Z",
- "strain": {
- "id": "3b81bb9e64e64332a24a9d8cf5fbc595",
- "name": "matsumoto reijit 5"
}, - "origin": {
- "plants": null,
- "plant_batches": null,
- "lots": [
- {
- "id": "33wa9b62fe1c47e4970c55ec6c7ff898",
- "barcode": "1565161621663009",
- "name": "Default seed IL lot",
- "type": {
- "id": "KOMLT0001",
- "name": "Product"
}, - "quantity": 5,
- "unit_of_measure": "Each"
}
]
}, - "additives": null,
- "waste": null,
- "locations": {
- "id": "fdad7be6c0f74ce1ae8b1431e88bbac6",
- "name": "IL manisha pune 521"
}, - "additional": {
- "patient_license": null,
- "is_for_medical_use": false
}, - "entity_state": [
- {
- "state": "active",
- "date": "2022-07-10T23:46:41Z",
- "reason": "batch created",
- "actioned_by": "system generated"
}, - {
- "state": "updated",
- "date": "2022-07-11T00:20:36Z",
- "reason": "location changed",
- "actioned_by": "user credentials"
}, - {
- "state": "plant_batch_moved",
- "date": "2022-06-26T20:29:19Z",
- "reason": "original location a2befc157b1c44a1a56c5e4573b5e6e0 Hathaway cultivation 1 inventory-5270040",
- "actioned_by": "user credentials"
}
]
}
}, - "warnings": [ ]
}