Create plant

Create a plant 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

Display name of the plant

barcode
string

A unique identifier required for specific states.

is_mother_plant
required
boolean

True if plant is a mother plant, otherwise false.

quantity
required
integer

Quantity of plants being created.

required
object

The growth phase of the plant.

NOTE: For creating a plant, in most cases this would be vegetative. In CA it is Flowering.

growth_date
required
string

Timestamp when the growth_phase was changed.

required
object (strain_request)
required
object

The plant's origin plant batch.

required
object (location_request)
object

Additional information related to the plant.

Responses
200

OK

400

Bad Request

post/{state}/v1/plants
Request samples
application/json
{
  • "license": {
    },
  • "name": "KMP Paradigm atom plant 1",
  • "barcode": "1A4FF0200000029000015577",
  • "is_mother_plant": false,
  • "quantity": 1,
  • "growth_phase": {
    },
  • "growth_date": "2021-05-03T18:27:39Z",
  • "strain": {
    },
  • "origin": {
    },
  • "locations": {
    },
  • "additional": {
    }
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}