Add a metric table
POST/projects/:project_id/metric-tables
Adds a metric table: a warehouse table of pre-computed numbers, such as daily revenue per country. Give each column a role:
time: the period a row covers. At most one, and required unlessgrainissingle_number.metric_value: a number to chart. Needs ametric_nameand aroll_upthat says how rows add up into longer periods.dimension: a column to break down and filter by.identifier: links rows to anentityof the workspace, at most one column per entity.ignored: not used.
Adding a table doesn't index it; call
POST /projects/{project_id}/metric-tables/{metric_table_id}/index afterwards.
The API key acts as an Org Admin for this request. A request for a workspace of another organization returns 404.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 405
- 409
- 429
OK
The request is invalid.
The API key header is missing, or the API key is invalid, disabled or expired.
The API key is not allowed to do this, for example a key that isn't allowed to manage members.
The workspace or resource was not found.
The requested HTTP method is not allowed.
The request conflicts with the current state, for example a join request that was already decided.
Too many requests sent with the same API key. Up to 10 requests can be sent within 1 second.