Create a strain registered under the license_number provided.
OK
object | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "KMP20222825"
}, - "name": "Spring Breeze 84",
- "cannabinoids": {
- "cbd_percent": 10,
- "thc_percent": 18
}, - "contents": {
- "indica_percent": 25,
- "sativa_percent": 75
}, - "average_yield": "20",
- "flowering_time": "7",
- "gender": "male",
- "breeder": "Trace",
- "entity_state": [
- {
- "state": "in_house_tested",
- "date": "2021-01-12T05:27:39",
- "reason": "internal test KX14",
- "actioned_by": "jdoe@kmp.com"
}
]
}{- "results": {
- "type": "array",
- "data": [
- {
- "id": "209801",
- "name": "Spring Breeze 84",
- "cannabinoids": {
- "cbd_percent": 10,
- "thc_percent": 18
}, - "contents": {
- "indica_percent": 25,
- "sativa_percent": 75
}, - "average_yield": "20",
- "flowering_time": "7",
- "gender": "male",
- "breeder": "Trace",
- "entity_state": [
- {
- "state": "active",
- "date": "2021-01-12T05:27:39",
- "reason": "strain created",
- "actioned_by": "jdoe@kmp.com"
}, - {
- "state": "in_house_tested",
- "date": "2021-01-12T05:27:39",
- "reason": "internal test KX14",
- "actioned_by": "jdoe@kmp.com"
}
]
}
]
}, - "warnings": [ ]
}Retrieve strain details. If the id path parameter is not provided in the request, the response will contain all the active strains for the license_number provided.
| id required | string The id of the strain (required if getting strain by id) Example: a521f55de4394f4f99c282be687e63aa |
| state required | string Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating. |
| license_number required | string Reference (entity_ID) for the license. This is the business license number issued by the state. Example: license_number=ABC-1234 |
| limit | number Optional parameter that allows you to specify a number to limit the results in the response. Default limit is 100. Example: limit=100 |
| offset | number Optional parameter that allows you to offset records if the max number for the filter exceeds the limit. Example: offset=0 |
| entity_state | string Queryable entity states for strain. |
OK
object | |||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "results": {
- "type": "array",
- "records": {
- "count": "0 - 100",
- "total": 437,
- "previous": null,
}, - "data": [
- {
- "id": "199903",
- "name": "Blue Dream",
- "cannabinoids": {
- "cbd_percent": 15,
- "thc_percent": 13
}, - "contents": {
- "indica_percent": 50,
- "sativa_percent": 50
}, - "average_yield": "20",
- "flowering_time": "7",
- "gender": "female",
- "breeder": "Kush & co.",
- "entity_state": [
- {
- "state": "in_house_tested",
- "date": "2021-01-12T05:27:39",
- "reason": "internal test KX14",
- "actioned_by": "jdoe@kmp.com"
}, - {
- "state": "active",
- "date": "2021-01-12T05:27:39",
- "reason": "strain created",
- "actioned_by": "jdoe@kmp.com"
}
]
}
]
}, - "warnings": [ ]
}Update a strain registered under the license_number provided.
required | object | ||||
| name | string Strain name. | ||||
object Baseline cannabinoid content of the strain. | |||||
| |||||
object Contains the indica and sativa percentages | |||||
| average_yield | string The average yield time for the strain | ||||
| flowering_time | string The flowering time for the strain | ||||
| gender | string Source plant gender : female or male | ||||
| breeder | string Name of breeder | ||||
Array of objects A list of state changes made to the entity. Modifiable entity states for strain [active, inactive, in_house_tested, third_party_tested, used]. | |||||
OK
object | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "KMP20222825"
}, - "name": "Spring Breeze 83",
- "cannabinoids": {
- "cbd_percent": 10,
- "thc_percent": 20
}
}{- "results": {
- "type": "object",
- "data": {
- "id": "209801",
- "name": "Spring Breeze 83",
- "cannabinoids": {
- "cbd_percent": 10,
- "thc_percent": 20
}, - "contents": {
- "indica_percent": 25,
- "sativa_percent": 75
}, - "average_yield": "20",
- "flowering_time": "7",
- "gender": "male",
- "breeder": "Trace",
- "entity_state": [
- {
- "state": "in_house_tested",
- "date": "2021-01-12T05:27:39",
- "reason": "internal test KX14",
- "actioned_by": "jdoe@kmp.com"
}, - {
- "state": "active",
- "date": "2021-01-12T05:27:39",
- "reason": "strain created",
- "actioned_by": "jdoe@kmp.com"
}
]
}
}, - "warnings": [ ]
}Deactivate a strain registered under the license_number provided.
{- "license": {
- "license_number": "KMP20222825"
}
}{- "results": {
- "type": "object",
- "data": {
- "id": "207202",
- "deleted": true
}
}, - "warnings": [ ]
}