Create harvest

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

User friendly reference for the harvest.

required
object

Start and end dates of the harvest.

required
object (harvest_type_request)
required
object

The strains in the Harvest

Array of objects (harvest_total_weights)

List of weights for the harvest.

Array of objects

Plants that are in the harvest with weights.

required
object (locations_base)
object (additional_info)

Additional information

Responses
200

OK

400

Bad Request

post/{state}/v1/harvests
Request samples
application/json
{
  • "license": {
    },
  • "name": "Tomino amuro kamui 06122022 manicure A02",
  • "harvest_date": {
    },
  • "type": {
    },
  • "strain": {
    },
  • "weights": null,
  • "plants": [
    ],
  • "locations": {
    },
  • "products": null,
  • "additional": {
    }
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [
    ]
}