Create location

Create a location under the specific license_number.

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

location name.

parent_id
string or null

reference (entity_ID) for the parent location entity which allows you to have segregation of the location in smaller sections.

required
object

location type as specified by the state and retrieved via location/types

Responses
200

OK

400

Bad Request

post/{state}/v1/config/locations
Request samples
application/json
{
  • "license": {
    },
  • "name": "Hathaway cultivation 1",
  • "parent_id": null,
  • "type": {
    }
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}