Skip to main content

Data Owner / Kpi Thresholds

Reference for the data_owner/kpi_thresholds endpoints of the Surfmeter API.

Surfmeter API – Data Owner / Kpi Thresholds v1

The Surfmeter API lets you manage clients, users, capabilities, measurements, and organization-wide settings programmatically.


Servers​

Description URL
https://surfmeter-server.{host}/client_admin_api/v1 https://surfmeter-server.{host}/client_admin_api/v1

Data Owner / Kpi Thresholds​


GET /data_owner/kpi_thresholds​

Input parameters

Parameter In Type Default Nullable Description
ApiKeyAuth header string N/A No API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys.

Response 200 OK


PUT /data_owner/kpi_thresholds​

Input parameters

Parameter In Type Default Nullable Description
ApiKeyAuth header string N/A No API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys.

Request body

{
"kpi_threshold_overrides": {}
}

⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
"description": "Request data that replaces all KPI threshold overrides of the organization",
"type": "object",
"required": [
"kpi_threshold_overrides"
],
"additionalProperties": false,
"properties": {
"kpi_threshold_overrides": {
"type": "object",
"description": "Complete map of overrides keyed by statistic key; an empty object removes all overrides",
"additionalProperties": {
"type": "object",
"required": [
"thresholds"
],
"additionalProperties": false,
"properties": {
"thresholds": {
"type": "array",
"items": {
"type": "number"
},
"description": "One to four grade boundaries in strictly ascending order, in the raw unit of the statistic"
}
}
}
}
}
}

Response 200 OK


Schemas​

KpiThresholdsUpdateData​

Name Type
kpi_threshold_overrides

Security schemes​

<tr>
<td>ApiKeyAuth</td>
<td>apiKey</td>
<td></td>
<td>API key used on every request. Create keys in the Surfmeter Dashboard

under Keys → Surfmeter API Keys.

</tbody>
Name Type Scheme Description