Perform given action in bulk for given subject or visit IDs
post
/ec-dataaction-svc/rest/v1.0/studies/{studyId}/{mode}/subjects/bulkaction
Performs an action in bulk for specified subjects or visits based on query parameters.
Request
Path Parameters
-
mode(required): string
Mode to fetch the records for.
-
studyId(required): string(uuid)
ID of the study to fetch the records for.
Query Parameters
-
action(required): string
Performs an action (lock or unlock) on the specified Subject or one of its Visits based on the provided input record.
Supported Media Types
- */*
Root Schema : BulkActionDTO
Type:
object
Title:
BulkActionDTO
Information for bulk action
Show Source
-
comment: string
comment for visit/subject unlockExample:
comment
-
filters: object
filters
filters for fetching subjectIds. For subject lock either filters or subjectIds should be there
-
reason: string
reason for visit/subject unlock. Mandatory for unlock eventsExample:
reason
-
subjectIds: array
subjectIds
List of Subject Ids. For visit lock/unlock only 1 subjectId is allowed
-
visitIds: array
visitIds
List of visits mandatory for visit lock/unlock
Nested Schema : filters
Type:
object
filters for fetching subjectIds. For subject lock either filters or subjectIds should be there
Example:
{
"sites":[
"11111111-1111-1111-1111-111111111111",
"22222222-2222-2222-2222-222222222222"
],
"limit":10,
"offset":0,
"order":"ASC",
"reviewStatus":"PENDING",
"subjectStates":[
"SCREENING_INITIATED",
"RANDOMIZED"
],
"exactSearchKeywords":[
"keyword1",
"keyword2"
],
"containsSearchKeywords":[
"searchKeyword1",
"searchKeyword2"
],
"nextVisitOnly":true,
"notStarted":false,
"projectionTillDate":"01-Jan-2024"
}
Nested Schema : subjectIds
Type:
array
List of Subject Ids. For visit lock/unlock only 1 subjectId is allowed
Show Source
-
Array of:
string(uuid)
List of Subject Ids. For visit lock/unlock only 1 subjectId is allowed
Example:
[
"6AF54DB79B764662B685D68C52AB0B84",
"6AF54DB79B764662B685D68C52AB0B84"
]
Nested Schema : visitIds
Type:
array
List of visits mandatory for visit lock/unlock
Show Source
Example:
[
{
"eventId":"D27DB9E0AFE349D7980683CF55A33883",
"eventInstanceNum":null
},
{
"eventId":"AE8DC4C6B0EA491D951F67CBA6C7A0FA",
"eventInstanceNum":null
}
]
Response
Supported Media Types
- application/json
200 Response
Success
400 Response
Bad_Request
Nested Schema : result
Type:
object
Nested Schema : details
Type:
object