Create a metric context item
Creates a semantic-layer metric definition. NOTE: the underlying writer is not yet implemented — the endpoint validates the input and returns 422 with a stable error message until the writer is wired.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Metric name.
"gross_margin_pct"
Human description.
"Gross margin as a percentage of revenue."
Metric expression in the semantic layer.
"(${facts.revenue} - ${facts.cogs}) / ${facts.revenue}"
Access modifier (public / private). Defaults to public.
"public"
Display format hint (percent, currency, number, …).
"percent"
Response
UUID of the newly-created context item. Use it on subsequent GET / PATCH / DELETE calls.
"7a3f9d2c-1111-4000-a000-000000000abc"
Kind of context item created.
note, saved_query, link, dimension, fact, metric, filter "note"
Tenant S3 key for the raw content blob (notes, saved queries, links). Null for kinds without S3 backing.
"context_notes/7a3f9d2c.../Q3_churn_analysis.md"
Resolved title for the created item. Null for kinds without a title field.
"Q3 churn analysis"