Study Descriptions
Reference for the study_descriptions endpoints of the Surfmeter API.
Surfmeter API – Study Descriptions 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 |
Study Descriptions
GET /study_descriptions
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
{
"study_descriptions": [
{
"id": 0,
"name": "string",
"import_source": "string",
"created_at": "string",
"updated_at": "string",
"study_id": "string",
"study_type": "string",
"subject": "string",
"revision": 0,
"data": {},
"uses_credentials": true,
"credential": {
"username": "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 /study_descriptions
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",
"data": {},
"uses_credentials": true,
"credential": {
"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
{
"study_description": {
"id": 0,
"name": "string",
"import_source": "string",
"created_at": "string",
"updated_at": "string",
"study_id": "string",
"study_type": "string",
"subject": "string",
"revision": 0,
"data": {},
"uses_credentials": true,
"credential": {
"username": "string",
"password_set": true
},
"versions": [
{
"id": 0,
"revision": 0,
"data": {},
"uses_credentials": true,
"data_hash": "string",
"created_by_id": 0,
"created_by_name": "string",
"created_at": "string"
}
],
"references": [
{
"public_config_id": 0,
"public_config_name": "string",
"public_config_version_id": 0,
"public_config_revision": 0,
"public_config_published": true,
"study_description_version_id": 0,
"study_description_revision": 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 /study_descriptions/{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
{
"study_description": {
"id": 0,
"name": "string",
"import_source": "string",
"created_at": "string",
"updated_at": "string",
"study_id": "string",
"study_type": "string",
"subject": "string",
"revision": 0,
"data": {},
"uses_credentials": true,
"credential": {
"username": "string",
"password_set": true
},
"versions": [
{
"id": 0,
"revision": 0,
"data": {},
"uses_credentials": true,
"data_hash": "string",
"created_by_id": 0,
"created_by_name": "string",
"created_at": "string"
}
],
"references": [
{
"public_config_id": 0,
"public_config_name": "string",
"public_config_version_id": 0,
"public_config_revision": 0,
"public_config_published": true,
"study_description_version_id": 0,
"study_description_revision": 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
PUT /study_descriptions/{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",
"data": {},
"uses_credentials": true,
"credential": {
"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
{
"study_description": {
"id": 0,
"name": "string",
"import_source": "string",
"created_at": "string",
"updated_at": "string",
"study_id": "string",
"study_type": "string",
"subject": "string",
"revision": 0,
"data": {},
"uses_credentials": true,
"credential": {
"username": "string",
"password_set": true
},
"versions": [
{
"id": 0,
"revision": 0,
"data": {},
"uses_credentials": true,
"data_hash": "string",
"created_by_id": 0,
"created_by_name": "string",
"created_at": "string"
}
],
"references": [
{
"public_config_id": 0,
"public_config_name": "string",
"public_config_version_id": 0,
"public_config_revision": 0,
"public_config_published": true,
"study_description_version_id": 0,
"study_description_revision": 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 /study_descriptions/{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
StudyDescriptionCreateData
| Name | Type |
|---|---|
credential |
Properties: username, password |
data |
|
name |
string |
uses_credentials |
boolean |
StudyDescriptionCreateResponse
| Name | Type |
|---|---|
study_description |
Properties: id, name, import_source, created_at, updated_at, study_id, study_type, subject, revision, data, uses_credentials, credential, versions, references |
StudyDescriptionDestroyResponse
StudyDescriptionIndexResponse
| Name | Type |
|---|---|
study_descriptions |
Array<Properties: id, name, import_source, created_at, updated_at, study_id, study_type, subject, revision, data, uses_credentials, credential> |
StudyDescriptionShowResponse
| Name | Type |
|---|---|
study_description |
Properties: id, name, import_source, created_at, updated_at, study_id, study_type, subject, revision, data, uses_credentials, credential, versions, references |
StudyDescriptionUpdateData
| Name | Type |
|---|---|
credential |
Properties: username, password |
data |
|
name |
string |
uses_credentials |
boolean |
StudyDescriptionUpdateResponse
| Name | Type |
|---|---|
study_description |
Properties: id, name, import_source, created_at, updated_at, study_id, study_type, subject, revision, data, uses_credentials, credential, versions, references |
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 |
|---|