Link Cannabinoids to a Menu Item
You can pass a list of Cannabinoid identifier and Measurement objects as the cannabinoids
field in the Menu Item payload.
This link can directly improve search relevance, increase consumer engagement, and it elevates the visibility of the Menu Item within the Weedmaps ecosystem.
You can link a Cannabinoid to a Menu Item by using any of the operations below:
Method | Description | Try It! |
---|---|---|
POST | Create a new Menu Item linked to the Cannabinoid | POST Menu Item |
PATCH | Update a Cannabinoid link on the Menu Item | PATCH Menu Item |
PUT | Upsert a new Menu Item linked to the Cannabinoid | PUT Menu Item |
You can explore available Cannabinoids with this operation:
Method | Description | Try It! |
---|---|---|
GET | Retrieve all Cannabinoids | Retrieve Cannabinoids |
You can utilize the many
filters
parameters on these operation for search and discovery.
To link a Cannabinoid to a Menu Item it requires the Cannabinoid identifier (id
) or slug
, and a Measurement.
A Measurement can be represented in percentage and/or in milligrams, both require a minimum and maximum float range attribute.
{
"percentage": {
"min": "float",
"max": "float"
},
"milligrams": {
"min": "float",
"max": "float"
}
}
Example Payload
"cannabinoids": [
{
"id": "integer",
"percentage": {
"min": "float",
"max": "float"
},
"milligrams": {
"min": "float",
"max": "float"
}
},
{
"slug": "string",
"percentage": {
"min": "float",
"max": "float"
},
"milligrams": {
"min": "float",
"max": "float"
}
}
]
Updated 4 days ago