V1.0
post
/ec-dataaction-svc/rest/v1.0/studies/{studyId}/{mode}/subjects/{subjectId}/unlock
Unlocks the specified subject at subject-level. Accepts a ReasonCommentRequest payload capturing reason and comment for audit.
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:
09ABE234123456789ABCDEFDEADBEEFA -
subjectId(required): string(uuid)
Unique subject identifier (UUID, 32-character uppercase hexadecimal string) representing the patient/participant enrolled in the study.Example:
07DFAAAA34CB44141AEFBB123ABC345F
Supported Media Types
- application/json
Root Schema : schema
Type:
objectReason and comment to justify operation.
Show Source
-
comment: string
Minimum Length:
0Maximum Length:2048CommentExample:Removing incorrect data captured by mistake -
reason: string
Minimum Length:
0Maximum Length:255ReasonExample:Incorrect entry
Examples
Back to Top
Response
Supported Media Types
- application/json
202 Response
subject unlock request received- empty response body - standard for HTTP 202.
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