Create plant batch

Create a plant_batch 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"
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)
name
required
string

The display name of the plant_batch.

barcode
required
string

A unique identifier required for specific states.

required
object

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

required
object

The quantity of immature plants being created in the plant_batch.

planted_date
required
string <date-time>

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

required
object (strain_request)
required
object

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

object (location_request)
object (additional_info)

Additional information

Responses
200

OK

400

Bad Request

post/{state}/v1/plant_batches
Request samples
application/json
{
  • "license": {
    },
  • "name": "Hathaway plant batch rejit 05122022 B5",
  • "barcode": null,
  • "type": {
    },
  • "quantity": {
    },
  • "planted_date": "2022-05-12T18:27:39Z",
  • "strain": {
    },
  • "origin": {
    },
  • "locations": {
    },
  • "additional": {
    }
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [
    ]
}