Link Terpenes to a Menu Item
You can pass a list of Terpene identifier and Measurement objects in the terpenes
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 Terpene to a Menu Item by using any of the operations below:
Method | Description | Try It! |
---|---|---|
POST | Create a new Menu Item linked to the Terpene | POST Menu Item |
PATCH | Update a Terpene link on the Menu Item | PATCH Menu Item |
PUT | Upsert a new Menu Item linked to the Terpene | PUT Menu Item |
You can explore available Terpenes with this operation:
Method | Description | Try It! |
---|---|---|
GET | Retrieve all Terpenes | Retrieve Terpenes |
You can utilize the many
filters
parameters on these operation for search and discovery.
To link a Terpene to a Menu Item it requires the Terpene 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
"terpenes": [
{
"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 3 days ago