Client Groups
Reference for the client_groups endpoints of the Surfmeter API.
Surfmeter API – Client Groups 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 |
Client Groups
GET /client_groups
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
- application/json
{
"client_groups": [
{
"id": 0,
"name": "string",
"description": "string",
"client_count": 0
}
]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.Schema of the response body
POST /client_groups
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
- application/json
{
"name": "string",
"description": "string"
}
⚠️ 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
Response 201 Created
- application/json
{
"client_group": {
"id": 0,
"name": "string",
"description": "string",
"client_count": 0
}
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.Schema of the response body
GET /client_groups/{id}
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. |
id |
path | string | No |
Response 200 OK
- application/json
{
"client_group": {
"id": 0,
"name": "string",
"description": "string",
"client_count": 0,
"clients": [
{
"id": 0,
"uuid": "string",
"type": "string",
"label": "string",
"extra_label": "string",
"owner_name": "string",
"build_flavor": "string",
"project": "string",
"tags": [
"string"
],
"client_groups": [
{
"id": 0,
"name": "string",
"description": "string"
}
]
}
]
}
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.Schema of the response body
PUT /client_groups/{id}
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. |
id |
path | string | No |
Request body
- application/json
{
"name": "string",
"description": "string",
"client_ids": [
0
]
}
⚠️ 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
Response 200 OK
- application/json
{
"client_group": {
"id": 0,
"name": "string",
"description": "string",
"client_count": 0
}
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.Schema of the response body
DELETE /client_groups/{id}
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. |
id |
path | string | No |
Response 200 OK
- application/json
Schema of the response body
{
"description": "Response for client group destroy action",
"type": "object",
"properties": {}
}
POST /client_groups/{id}/assign_configs
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. |
id |
path | string | No |
Request body
- application/json
{
"public_config_id": 0,
"automator_config_id": 0
}
⚠️ 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
Response 200 OK
- application/json
{
"assigned_clients": [
{
"id": 0,
"uuid": "string",
"label": "string",
"extra_label": "string"
}
],
"skipped_clients": [
{
"id": 0,
"uuid": "string",
"label": "string",
"extra_label": "string",
"reason": "string"
}
]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.Schema of the response body
Schemas
ClientGroupAssignConfigsData
| Name | Type |
|---|---|
automator_config_id |
integer |
public_config_id |
integer |
ClientGroupAssignConfigsResponse
| Name | Type |
|---|---|
assigned_clients |
Array<Properties: id, uuid, label, extra_label> |
skipped_clients |
Array<Properties: id, uuid, label, extra_label, reason> |
ClientGroupCreateData
| Name | Type |
|---|---|
description |
string| null |
name |
string |
ClientGroupCreateResponse
| Name | Type |
|---|---|
client_group |
Properties: id, name, description, client_count |
ClientGroupDestroyResponse
ClientGroupIndexResponse
| Name | Type |
|---|---|
client_groups |
Array<Properties: id, name, description, client_count> |
ClientGroupShowResponse
| Name | Type |
|---|---|
client_group |
Properties: id, name, description, client_count, clients |
ClientGroupUpdateData
| Name | Type |
|---|---|
client_ids |
Array<integer> |
description |
string| null |
name |
string |
ClientGroupUpdateResponse
| Name | Type |
|---|---|
client_group |
Properties: id, name, description, client_count |
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 |
|---|