Update plant batch

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.

SecurityApiKeyAuth and CustomAuth
Request
path Parameters
state
required
string

Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating.

Enum: "ca" "il" "wa" "ma" "md" "mi" "wv" "co" "ok" "oh"
id
required
string

Plant Batch ID

Example: a521f55de4394f4f99c282be687e63aa
header Parameters
x-api-key
required
string

Trace API key header

Example: b123x21wbHlkYXBpa2V5
Authorization
required
string

Company and user credentials authentication

Example: KMP-JSON token=dmVuZG9yLWFwaS1rZXk6dX12312sdfs2V5
Request Body schema: application/json
required
object (license_base)
required
object

Specific action for this plant_batch operation.

name
string

The display name of the plant_batch.

barcode
string

A unique identifier required for specific states.

object

The type of the plant_batch (e.g. Clone or Seed).

object

The quantity of immature plants being added to this plant_batch.

planted_date
string <date-time>

The timestamp of when the plant_batch was created (planted).

additives_application_date
string <date-time>

The timestamp of when additives were applied to the plant_batch.

mother_plant_date
string <date-time>

The timestamp of when the plant_batch was first used as a mother plant.

object (strain_request_not_required)
object

The plant_batch's origin, either plant (mother plant), plant_batch, or lot.

object (location_request_not_required)
move_date
string <date-time>

The timestamp of when the plant_batch was moved.

object (additional_info)

Additional information

Array of objects (additives)

List of additives that have been applied to the plant_batch.

Array of objects (destroy_event)

The destroy plant events taken on this plant_batch

Responses
200

OK

400

Bad Request

put/{state}/v1/plant_batches/{id}
Request samples
application/json
{
  • "license": {
    },
  • "actions": {
    },
  • "move_date": "2022-06-26T20:29:19Z",
  • "locations": {
    }
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}