Add and delete custom metrics for tables to track business KPIs, data quality measures, and usage statistics beyond standard metadata using the Collate REST API.
PUT /v1/tables/{id}/customMetric
DELETE /v1/tables/{id}/customMetric/{metricName}
| Code | Error Type | Description |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission |
404 | NOT_FOUND | Table or custom metric does not exist |
400 | BAD_REQUEST | Invalid metric definition or SQL expression |
409 | CONFLICT | Custom metric with same name already exists |