Preview a custom KPI
Computes a KPI configuration over the last preview_days days (7 by default, 30 at most) without saving anything. Returns up to 100 computed rows, the executed SQL, the number of source rows read and the query duration. Same body and validation as createCustomKpi.
Parameters
Header Parameters
[Authentication] Required API key, in the form {prefix}.{secret}.
"a1b2c3d4.xK9pR2mVn6QwErTyUiOpAsDfGhJkLzXcVbNmQwErTyU""^[a-zA-Z0-9]{8}\\.[A-Za-z0-9_-]+$"Request Body
Responses
Preview computed successfully.
Preview a custom KPI Computes a KPI configuration over the last preview_days days (7 by default, 30 at most) without saving anything. Returns up to 100 computed rows, the executed SQL, the number of source rows read and the query duration. Same body and validation as createCustomKpi. POST /v1/custom-stats/kpis/preview previewCustomKpi Custom KPIs spm-api-key [Authentication] Required API key, in the form {prefix}.{secret}. Preview computed successfully. Client error - Invalid request or authentication issues Server error - Internal processing failure