Service Credentials
Reference for the service_credentials endpoints of the Surfmeter API.
Surfmeter API – Service Credentials 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 |
Service Credentials
GET /service_credentials
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
{
"service_credentials": [
{
"id": 0,
"name": "string",
"service": "string",
"username": "string",
"created_at": "string",
"updated_at": "string",
"password_set": true
}
]
}
⚠️ 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 /service_credentials
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",
"service": "string",
"username": "string",
"password": "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
{
"service_credential": {
"id": 0,
"name": "string",
"service": "string",
"username": "string",
"created_at": "string",
"updated_at": "string",
"password_set": true
}
}
⚠️ 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 /service_credentials/{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
{
"service_credential": {
"id": 0,
"name": "string",
"service": "string",
"username": "string",
"created_at": "string",
"updated_at": "string",
"password_set": true
}
}
⚠️ 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 /service_credentials/{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",
"service": "string",
"username": "string",
"password": "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 200 OK
- application/json
{
"service_credential": {
"id": 0,
"name": "string",
"service": "string",
"username": "string",
"created_at": "string",
"updated_at": "string",
"password_set": true
}
}
⚠️ 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 /service_credentials/{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
{
"type": "object",
"properties": {},
"required": []
}
Schemas
ServiceCredentialCreateData
| Name | Type |
|---|---|
name |
string |
password |
string |
service |
string |
username |
string |
ServiceCredentialCreateResponse
| Name | Type |
|---|---|
service_credential |
Properties: id, name, service, username, created_at, updated_at, password_set |
ServiceCredentialDestroyResponse
ServiceCredentialIndexResponse
| Name | Type |
|---|---|
service_credentials |
Array<Properties: id, name, service, username, created_at, updated_at, password_set> |
ServiceCredentialShowResponse
| Name | Type |
|---|---|
service_credential |
Properties: id, name, service, username, created_at, updated_at, password_set |
ServiceCredentialUpdateData
| Name | Type |
|---|---|
name |
string |
password |
string |
service |
string |
username |
string |
ServiceCredentialUpdateResponse
| Name | Type |
|---|---|
service_credential |
Properties: id, name, service, username, created_at, updated_at, password_set |
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 |
|---|