Get Survey Types
GET/Surveys/getStudyTypes
About Api Returns details of a survey based on its ID.
Request
Header Parameters
Responses
- 200
- 400
- 401
- 404
- 500
Successful response containing study types
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Indicates whether the request was successful
The version of the API
A message indicating the status of the request
result
object
data
object[]
The ID of the study type
The STID of the study type
The description of the study type
The name of the study type
The total number of study types returned
{
"success": true,
"apiVersion": 1,
"message": "Request Success",
"result": {
"data": [
{
"id": 2,
"STID": "TRACKER",
"description": "Tracker Study",
"name": "Tracker Study"
}
],
"total": 1
}
}
Bad Request. Please ensure you are passing all the required params and header info.
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "Unauthorized"
}
Please ensure that you are using the correct API environments and sending the correct ZAMP-KEY in the request header.
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "ZAMP-KEY key is invalid"
}
Please ensure that you are using the correct environments with the correct API name.
There is some issue facing at Zamplia Server Side. Please contact support.
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "Internal server error"
}