All URIs are relative to https://api.lamp.digital
Method | HTTP request | Description |
---|---|---|
participantAll | GET /participant | Get the set of all participants. |
participantAllByResearcher | GET /researcher/{researcher_id}/participant | Get the set of all participants under a single researcher. |
participantAllByStudy | GET /study/{study_id}/participant | Get the set of all participants in a single study. |
participantCreate | POST /study/{study_id}/participant | Create a new Participant for the given Study. |
participantDelete | DELETE /participant/{participant_id} | Delete a participant AND all owned data or event streams. |
participantUpdate | PUT /participant/{participant_id} | Update a Participant's settings. |
participantView | GET /participant/{participant_id} | Get a single participant, by identifier. |
kotlin.Array<kotlin.Any> participantAll(transform)
Get the set of all participants.
Get the set of all participants.
// Import classes:
//import digital.lamp.lamp-core.infrastructure.*
//import digital.lamp.lamp-core.models.*
val apiInstance = ParticipantAPI()
val transform : kotlin.String = transform_example // kotlin.String |
try {
val result : kotlin.Array<kotlin.Any> = apiInstance.participantAll(transform)
println(result)
} catch (e: ClientException) {
println("4xx response calling ParticipantAPI#participantAll")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ParticipantAPI#participantAll")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
transform | kotlin.String | [optional] |
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json
kotlin.Array<kotlin.Any> participantAllByResearcher(researcherId, transform)
Get the set of all participants under a single researcher.
Get the set of all participants under a single researcher.
// Import classes:
//import digital.lamp.lamp-core.infrastructure.*
//import digital.lamp.lamp-core.models.*
val apiInstance = ParticipantAPI()
val researcherId : kotlin.String = researcherId_example // kotlin.String |
val transform : kotlin.String = transform_example // kotlin.String |
try {
val result : kotlin.Array<kotlin.Any> = apiInstance.participantAllByResearcher(researcherId, transform)
println(result)
} catch (e: ClientException) {
println("4xx response calling ParticipantAPI#participantAllByResearcher")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ParticipantAPI#participantAllByResearcher")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
researcherId | kotlin.String | ||
transform | kotlin.String | [optional] |
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json
kotlin.Array<kotlin.Any> participantAllByStudy(studyId, transform)
Get the set of all participants in a single study.
Get the set of all participants in a single study.
// Import classes:
//import digital.lamp.lamp-core.infrastructure.*
//import digital.lamp.lamp-core.models.*
val apiInstance = ParticipantAPI()
val studyId : kotlin.String = studyId_example // kotlin.String |
val transform : kotlin.String = transform_example // kotlin.String |
try {
val result : kotlin.Array<kotlin.Any> = apiInstance.participantAllByStudy(studyId, transform)
println(result)
} catch (e: ClientException) {
println("4xx response calling ParticipantAPI#participantAllByStudy")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ParticipantAPI#participantAllByStudy")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
studyId | kotlin.String | ||
transform | kotlin.String | [optional] |
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json
kotlin.String participantCreate(studyId, participant)
Create a new Participant for the given Study.
Create a new Participant for the given Study.
// Import classes:
//import digital.lamp.lamp-core.infrastructure.*
//import digital.lamp.lamp-core.models.*
val apiInstance = ParticipantAPI()
val studyId : kotlin.String = studyId_example // kotlin.String |
val participant : Participant = // Participant |
try {
val result : kotlin.String = apiInstance.participantCreate(studyId, participant)
println(result)
} catch (e: ClientException) {
println("4xx response calling ParticipantAPI#participantCreate")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ParticipantAPI#participantCreate")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
studyId | kotlin.String | ||
participant | Participant |
kotlin.String
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: application/json
- Accept: application/json
kotlin.String participantDelete(participantId)
Delete a participant AND all owned data or event streams.
Delete a participant AND all owned data or event streams.
// Import classes:
//import digital.lamp.lamp-core.infrastructure.*
//import digital.lamp.lamp-core.models.*
val apiInstance = ParticipantAPI()
val participantId : kotlin.String = participantId_example // kotlin.String |
try {
val result : kotlin.String = apiInstance.participantDelete(participantId)
println(result)
} catch (e: ClientException) {
println("4xx response calling ParticipantAPI#participantDelete")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ParticipantAPI#participantDelete")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
participantId | kotlin.String |
kotlin.String
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json
kotlin.String participantUpdate(participantId, participant)
Update a Participant's settings.
Update a Participant's settings.
// Import classes:
//import digital.lamp.lamp-core.infrastructure.*
//import digital.lamp.lamp-core.models.*
val apiInstance = ParticipantAPI()
val participantId : kotlin.String = participantId_example // kotlin.String |
val participant : Participant = // Participant |
try {
val result : kotlin.String = apiInstance.participantUpdate(participantId, participant)
println(result)
} catch (e: ClientException) {
println("4xx response calling ParticipantAPI#participantUpdate")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ParticipantAPI#participantUpdate")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
participantId | kotlin.String | ||
participant | Participant |
kotlin.String
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: application/json
- Accept: application/json
kotlin.Array<kotlin.Any> participantView(participantId, transform)
Get a single participant, by identifier.
Get a single participant, by identifier.
// Import classes:
//import digital.lamp.lamp-core.infrastructure.*
//import digital.lamp.lamp-core.models.*
val apiInstance = ParticipantAPI()
val participantId : kotlin.String = participantId_example // kotlin.String |
val transform : kotlin.String = transform_example // kotlin.String |
try {
val result : kotlin.Array<kotlin.Any> = apiInstance.participantView(participantId, transform)
println(result)
} catch (e: ClientException) {
println("4xx response calling ParticipantAPI#participantView")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ParticipantAPI#participantView")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
participantId | kotlin.String | ||
transform | kotlin.String | [optional] |
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json