Update plant

Update the details of a plant. Update growth phases and take actions (move, 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 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 operation.

name
string

Display name of the plant

barcode
string

A unique identifier used for tracking purposes.

is_mother_plant
boolean

True if plant is a mother plant, otherwise false.

mother_plant_date
string <date-time>

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

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
string

Timestamp when the growth_phase was changed.

object (strain_request_not_required)
object

Plant's origin, either source plant, plants' batch or other type of lot.

object (location_request_not_required)
move_date
string <date-time>

The timestamp of when the plant was moved.

additives_application_date
string

Timestamp when additives were applied to the plant.

Array of objects (add_additive_to_item)

Additives added to plant.

object

Additional information related to the plant.

Responses
200

OK

400

Bad Request

put/{state}/v1/plants/{id}
Request samples
application/json
{
  • "license": {
    },
  • "actions": {
    },
  • "move_date": "2021-05-21T20:29:19Z",
  • "locations": {
    }
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}