Strain

Create strain

Create a strain registered under 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" "or" "nv" "mt" "co" "mi" "il" "ma" "ri" "nj" "md" "de" "va" "oh" "ky" "al" "ms" "mn" "la" "ok" "sd" "me"
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_number
required
string

Reference (entity_ID) for the license. This is the business license number issued by the state.

name
required
string

Strain name.

required
object

Baseline cannabinoid content of the strain.

cbd_percent
required
number <float>

A baseline percentage of cbd content in the strain. More specific data may be placed on the product or lot specific to the batch.

thc_percent
required
number <float>

A baseline percentage of thc content in the strain. More specific data may be placed on the product or lot specific to the batch.

required
object

Contains the indica and sativa percentages

indica_percent
required
number <float>

The percentage of indica in the strain.

sativa_percent
required
number <float>

The percentage of sativa in the strain.

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, deleted].

Array
state
required
string

The state of the entity.

date
required
string

Timestamp when the state was recorded ISO 8601 UTC format.

reason
required
string

Additional information for the 'state' change.

actioned_by
required
string

Username of the person who updated the state of the entity (if applicable).

Responses
200

OK

Response Schema: application/json
object
type
string
Value: "array"
Array of objects
Array
id
string

Reference (entity_ID) for the strain.

name
string

Strain name.

object
cbd_percent
number <float>

The percent of the cbd in the strain

thc_percent
number <float>

The percent of the thc in the strain

object
indica_percent
number <float>

The percentage of indica in the strain.

sativa_percent
number <float>

The percentage of sativa in the strain

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. Entity states for strain [active, inactive, in_house_tested, third_party_tested, used, deleted].

Array
state
string

state of the entity.

date
string

timestamp when the state was recorded ISO 8601 UTC format.

reason
string

additional information for the 'state' change.

actioned_by
string

username of the person who updated the state of the entity (if applicable).

Array of objects
Array
type
string
detail
string
400

Bad Request

post/{state}/v1/config/strains
Request samples
application/json
{
  • "license": {
    },
  • "name": "Spring Breeze 84",
  • "cannabinoids": {
    },
  • "contents": {
    },
  • "average_yield": "20",
  • "flowering_time": "7",
  • "gender": "male",
  • "breeder": "Trace",
  • "entity_state": [
    ]
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}

Retrieve strain(s)

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.

SecurityApiKeyAuth and CustomAuth
Request
path Parameters
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.

Enum: "ca" "or" "nv" "mt" "co" "mi" "il" "ma" "ri" "nj" "md" "de" "va" "oh" "ky" "al" "ms" "mn" "la" "ok" "sd" "me"
query Parameters
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.

Enum: "active" "inactive" "in_house_tested" "third_party_tested" "used" "deleted"
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
Responses
200

OK

Response Schema: application/json
object
type
string
Value: "array"
object
count
string

A string representing what records you are receiving out of the total for the filter criteria.

total
number

The total number of records returned based upon filter criteria.

previous
string or null

URL that when executed will return you to the last page set.

next
string or null

URL that when executed will take you to the next set of paginated records.

Array of objects
Array
id
string

Reference (entity_ID) for the strain.

name
string

Strain name.

object
cbd_percent
number <float>

The percent of the cbd in the strain

thc_percent
number <float>

The percent of the thc in the strain

object
indica_percent
number <float>

The percentage of indica in the strain.

sativa_percent
number <float>

The percentage of sativa in the strain

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. Entity states for strain [active, inactive, in_house_tested, third_party_tested, used, deleted].

Array
state
string

state of the entity.

date
string

timestamp when the state was recorded ISO 8601 UTC format.

reason
string

additional information for the 'state' change.

actioned_by
string

username of the person who updated the state of the entity (if applicable).

Array of objects
Array
type
string
detail
string
400

Bad Request

get/{state}/v1/config/strains/{id}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}

Update strain

Update a strain registered under the license_number provided.

SecurityApiKeyAuth and CustomAuth
Request
path Parameters
id
required
string

The id of the strain (required if getting strain by id)

state
required
string

Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating.

Enum: "ca" "or" "nv" "mt" "co" "mi" "il" "ma" "ri" "nj" "md" "de" "va" "oh" "ky" "al" "ms" "mn" "la" "ok" "sd" "me"
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_number
required
string

Reference (entity_ID) for the license. This is the business license number issued by the state.

name
string

Strain name.

object

Baseline cannabinoid content of the strain.

cbd_percent
number <float>

A baseline percentage of cbd content in the strain. More specific data may be placed on the product or lot specific to the batch.

thc_percent
number <float>

A baseline percentage of thc content in the strain. More specific data may be placed on the product or lot specific to the batch.

object

Contains the indica and sativa percentages

indica_percent
number <float>

The percentage of indica in the strain.

sativa_percent
number <float>

The percentage of sativa in the strain.

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].

Array
state
required
string

The state of the entity.

date
required
string

Timestamp when the state was recorded ISO 8601 UTC format.

reason
required
string

Additional information for the 'state' change.

actioned_by
required
string

Username of the person who updated the state of the entity (if applicable).

Responses
200

OK

Response Schema: application/json
object
type
string
Value: "object"
object
id
string

Reference (entity_ID) for the strain.

name
string

Strain name.

object
cbd_percent
number <float>

The percent of the cbd in the strain

thc_percent
number <float>

The percent of the thc in the strain

object
indica_percent
number <float>

The percentage of indica in the strain.

sativa_percent
number <float>

The percentage of sativa in the strain

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. Entity states for strain [active, inactive, in_house_tested, third_party_tested, used, deleted].

Array
state
string

state of the entity.

date
string

timestamp when the state was recorded ISO 8601 UTC format.

reason
string

additional information for the 'state' change.

actioned_by
string

username of the person who updated the state of the entity (if applicable).

Array of objects
Array
type
string
detail
string
400

Bad Request

put/{state}/v1/config/strains/{id}
Request samples
application/json
{
  • "license": {
    },
  • "name": "Spring Breeze 83",
  • "cannabinoids": {
    }
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}

Delete strain

Deactivate a strain registered under the license_number provided.

SecurityApiKeyAuth and CustomAuth
Request
path Parameters
id
required
string

The id of the strain (required if getting strain by id)

state
required
string

Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating.

Enum: "ca" "or" "nv" "mt" "co" "mi" "il" "ma" "ri" "nj" "md" "de" "va" "oh" "ky" "al" "ms" "mn" "la" "ok" "sd" "me"
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_number
required
string

Reference (entity_ID) for the license. This is the business license number issued by the state.

Responses
200

OK

Response Schema: application/json
object
type
string
Value: "object"
object

Trace

id
string

Reference (entity_ID) for the strain.

deleted
boolean

True if strain was deleted successfully, otherwise false.

Array of objects
Array
type
string
detail
string
400

Bad Request

delete/{state}/v1/config/strains/{id}
Request samples
application/json
{
  • "license": {
    }
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}