V1.0
post
/ec-dataaction-svc/rest/v1.0/studies/{studyId}/{mode}/subjects/visits/lock
API is used to lock list of subjects, visits, forms, and items within a clinical study.
Request
Path Parameters
-
mode(required): string
Mode of the study, accepts: test, active, or training.Example:
test -
studyId(required): string(uuid)
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the study.Example:
0727DC1B0BA64C8482B9F5E1226C3A71
Supported Media Types
- application/json
Root Schema : schema
Type:
objectDTO representing a subject and the list of events (visits/forms/items) to be locked.
Show Source
-
events: array
events
List of visit/form/item objects for the subject in UUID format.
-
subjectId: string
(UUID)
Unique subject identifier (UUID, 32-character uppercase hexadecimal string) representing the patient/participant enrolled in the study.Example:
F5F6EA48B9D04C6F8C657CFA5A20EC53
Nested Schema : events
Type:
arrayList of visit/form/item objects for the subject in UUID format.
Show Source
-
Array of:
object VisitFormsItemsDTO
DTO for event (visit) details including forms and items to be locked.
Nested Schema : VisitFormsItemsDTO
Type:
objectDTO for event (visit) details including forms and items to be locked.
Show Source
-
elements: array
elements
List of data element DTOs indicating forms/items under the visit.
-
eventId: string
(UUID)
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical event like Screening, Visit 1 etc.Example:
BCAF12ED87549BA59F7A43AB6A77C1E2 -
eventInstanceNum: integer
(int64)
Numeric value representing the instance number of the event. Used for repeated or unscheduled visits. It is null for scheduled events.Example:
1 -
studyVersion: string
String representing the version of the study configuration or protocol. Helps track changes in form or study design.Example:
2.0.0.38
Nested Schema : elements
Type:
arrayList of data element DTOs indicating forms/items under the visit.
Show Source
-
Array of:
object DataElementRequestDTO
DTO specifying a data elements (form, form section, item, or repeat) to be locked or unlocked in a visit.
Nested Schema : DataElementRequestDTO
Type:
objectDTO specifying a data elements (form, form section, item, or repeat) to be locked or unlocked in a visit.
Show Source
-
formId: string
(UUID)
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical form.Example:
AABBCCDDEEFF00112233445566778899 -
formSectionId: string
(UUID)
ID (UUID, 32-character uppercase hexadecimal string) of the form section.Example:
BB112233445566778899AABBCCDDEEFF -
innerRepeat: integer
(int64)
Indicates the repeat sequence number of a nested or inner repeating form within an outer repeating structure. This value is used to distinguish multiple occurrences of the same inner form for a given outer repeat instance.Example:
0 -
itemId: string
(UUID)
Unique Item identifier (UUID, 32-character uppercase hexadecimal string) from the study Designer, associated to a form.Example:
EEFF00112233445566778899AABBCCDD -
outerRepeat: integer
(int64)
Indicates the repeat sequence number of the primary or outer repeating form. This value identifies each top-level occurrence of a repeating form and serves as the parent context for any nested inner repeats.Example:
1
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : SubjectVisitsItemsResponseDTO
Type:
objectResponse DTO for bulk lock operation, includes processed and failed objects
Show Source
-
exceptions: array
exceptions
Exceptions or error messages for failed objects.
-
failedObjects: array
failedObjects
List of subject/visit/form/item objects which failed to process.
-
processedObjects: array
processedObjects
List of successfully processed subject/visit/form/item objects.
Nested Schema : exceptions
Type:
arrayExceptions or error messages for failed objects.
Show Source
-
Array of:
string
Exceptions or error messages for failed objects.Example:
["Event not found for subject 18DFFBDF2523489AAF3DE9D6CA60B7F2"]
Example:
[
"Event not found for subject 18DFFBDF2523489AAF3DE9D6CA60B7F2"
]Nested Schema : failedObjects
Type:
arrayList of subject/visit/form/item objects which failed to process.
Show Source
-
Array of:
object schema
DTO representing a subject and the list of events (visits/forms/items) to be locked.
Nested Schema : processedObjects
Type:
arrayList of successfully processed subject/visit/form/item objects.
Show Source
-
Array of:
object schema
DTO representing a subject and the list of events (visits/forms/items) to be locked.
Nested Schema : schema
Type:
objectDTO representing a subject and the list of events (visits/forms/items) to be locked.
Show Source
-
events: array
events
List of visit/form/item objects for the subject in UUID format.
-
subjectId: string
(UUID)
Unique subject identifier (UUID, 32-character uppercase hexadecimal string) representing the patient/participant enrolled in the study.Example:
F5F6EA48B9D04C6F8C657CFA5A20EC53
Nested Schema : events
Type:
arrayList of visit/form/item objects for the subject in UUID format.
Show Source
-
Array of:
object VisitFormsItemsDTO
DTO for event (visit) details including forms and items to be locked.
Nested Schema : VisitFormsItemsDTO
Type:
objectDTO for event (visit) details including forms and items to be locked.
Show Source
-
elements: array
elements
List of data element DTOs indicating forms/items under the visit.
-
eventId: string
(UUID)
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical event like Screening, Visit 1 etc.Example:
BCAF12ED87549BA59F7A43AB6A77C1E2 -
eventInstanceNum: integer
(int64)
Numeric value representing the instance number of the event. Used for repeated or unscheduled visits. It is null for scheduled events.Example:
1 -
studyVersion: string
String representing the version of the study configuration or protocol. Helps track changes in form or study design.Example:
2.0.0.38
Nested Schema : elements
Type:
arrayList of data element DTOs indicating forms/items under the visit.
Show Source
-
Array of:
object DataElementRequestDTO
DTO specifying a data elements (form, form section, item, or repeat) to be locked or unlocked in a visit.
Nested Schema : DataElementRequestDTO
Type:
objectDTO specifying a data elements (form, form section, item, or repeat) to be locked or unlocked in a visit.
Show Source
-
formId: string
(UUID)
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical form.Example:
AABBCCDDEEFF00112233445566778899 -
formSectionId: string
(UUID)
ID (UUID, 32-character uppercase hexadecimal string) of the form section.Example:
BB112233445566778899AABBCCDDEEFF -
innerRepeat: integer
(int64)
Indicates the repeat sequence number of a nested or inner repeating form within an outer repeating structure. This value is used to distinguish multiple occurrences of the same inner form for a given outer repeat instance.Example:
0 -
itemId: string
(UUID)
Unique Item identifier (UUID, 32-character uppercase hexadecimal string) from the study Designer, associated to a form.Example:
EEFF00112233445566778899AABBCCDD -
outerRepeat: integer
(int64)
Indicates the repeat sequence number of the primary or outer repeating form. This value identifies each top-level occurrence of a repeating form and serves as the parent context for any nested inner repeats.Example:
1
Examples
400 Response
Bad_Request
Root Schema : RestResponse
Type:
Show Source
object-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
-
status: string
-
version: integer
(int32)
Nested Schema : ErrorResponseData
Type:
objectStructure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
-
details: object
details
Detailed error context or debugging information such as validation error, stack trace, or field/parameter cause.
-
errorCode: string
Application or business-specific error code representing the error type.Example:
REPT_401 -
errorMessage: string
Human-readable error message describing the failure or issue.Example:
Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type:
objectNested Schema : details
Type:
objectDetailed error context or debugging information such as validation error, stack trace, or field/parameter cause.
Example:
User role is missing required permission REPORTING_VIEW. Field: userId