Variables Endpoint
This endpoint retrieves the set of variables for a given study. Each variable
represents a field on an electronic clinical case report form (eCRF). Records in
the system contain responses for these variables within their recordData
sections.
Accessing the index
The list of variables is returned via a GET request.
Request structure
GET /api/v1/edc/studies/PHARMADEMO/variables?page=0&size=25&sort=variableId%2CASC&
filter=variableId%3D%3D10299 HTTP/1.1
Content-Type: application/json
Host: localhost:8080
Path parameters
studyKeyStudy key used to retrieve the list of variables. This value is required.
Request parameters
pageIndex page to return. Defaults to
0.sizeNumber of items per page. Defaults to
25and may not exceed500.sortProperty name to sort by. Append
ascordescto specify direction. Multiplesortparameters may be supplied. Defaults toformId,asc.filterOptional filter criteria. Must follow the API filter syntax.
Example response
{
"metadata": {
"status": "OK",
"method": "GET",
"path": "/api/v1/edc/studies/PHARMADEMO/variables",
"timestamp": "2025-06-05 21:12:08",
"error": {}
},
"pagination": {
"currentPage": 0,
"size": 25,
"totalPages": 1,
"totalElements": 1,
"sort": [
{
"property": "variableId",
"direction": "ASC"
}
]
},
"data": [
{
"studyKey": "PHARMADEMO",
"variableId": 1,
"variableType": "RADIO",
"variableName": "Pain Level",
"sequence": 1,
"revision": 1,
"disabled": false,
"dateCreated": "2025-06-05 21:12:08",
"dateModified": "2025-06-05 21:12:09",
"formId": 108727,
"variableOid": "OID-1",
"deleted": false,
"formKey": "FORM_1",
"formName": "Pre-procedure screening",
"label": "Select patient pain level between 1 and 10",
"blinded": false
}
]
}
Response fields
metadataResponse metadata including HTTP status, method and timestamp.
paginationInformation about the current page, page size, total pages and sort order.
dataList of variables and their attributes for the specified study.