V1.0
post
/ec-designer-svc/rest/locks/acquireLock/{studyId}
Acquires the lock of a study or study object.
Request
Path Parameters
-
studyId(required): string(uuid)
Study identifier (UUID, 32-character uppercase hexadecimal string). Required.Example:
2F9A6C7E1B8F4D56A23C9F3A0C7D4E11
Supported Media Types
- application/json
Root Schema : DesignerLockDetailsDto v1.0
Type:
objectTitle:
DesignerLockDetailsDto v1.0Lock details used to acquire or renew a study design lock.
Show Source
-
isUILock: boolean
Indicates whether the request is for a UI lock.Example:
true -
lockBasePath: string
Base path for the lock. If provided, this path is used before lockPathParams. Optional when lockPathParams are provided.Example:
studies/2F9A6C7E1B8F4D56A23C9F3A0C7D4E11 -
lockMode: string
Client-provided lock mode for the request.Example:
active -
lockName: string
Allowed Values:
[ "studyDesignSettings", "studyDesign", "studyDesignForm", "studyDesignVersion" ]Name of the lock to acquire. Allowed values: studyDesignSettings, studyDesign, studyDesignForm, studyDesignVersion.Example:studyDesign -
lockPathParams: object
lockPathParams
Additional Properties Allowed: additionalPropertiesValues used to resolve the lock path when lockBasePath is not provided. For studyId, use UUID, 32-character uppercase hexadecimal string.
-
renewal: boolean
Indicates whether this request renews an existing lock. When false, other locks held by the same user for the study are released before acquiring this lock.Example:
false -
serviceName: string
Service name associated with the lock request. Designer lock requests use designer.Example:
designer -
userId: string
User identifier supplied with the lock request. UUID, 32-character uppercase hexadecimal string.Example:
B1B8327AFAA6412287106192AB5984EF
Example:
{
"serviceName":"designer",
"lockBasePath":"studies/2F9A6C7E1B8F4D56A23C9F3A0C7D4E11",
"lockName":"studyDesign",
"userId":"B1B8327AFAA6412287106192AB5984EF",
"isUILock":true,
"lockMode":"active",
"lockPathParams":{
"studyId":"2F9A6C7E1B8F4D56A23C9F3A0C7D4E11"
},
"renewal":false
}Nested Schema : lockPathParams
Type:
objectAdditional Properties Allowed
Show Source
-
string
Values used to resolve the lock path when lockBasePath is not provided. For studyId, use UUID, 32-character uppercase hexadecimal string.Example:
{"studyId":"2F9A6C7E1B8F4D56A23C9F3A0C7D4E11"}
Values used to resolve the lock path when lockBasePath is not provided. For studyId, use UUID, 32-character uppercase hexadecimal string.
Example:
{
"studyId":"2F9A6C7E1B8F4D56A23C9F3A0C7D4E11"
}Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Successful operation.
Root Schema : LockTO v2.0
Type:
objectTitle:
LockTO v2.0Result of a study design lock acquisition request.
Show Source
-
code: string
Error code returned when the lock cannot be acquired.Example:
C1-930 -
isLockTimeOutIncreased: boolean
Indicates whether the existing lock timeout was extended.Example:
false -
isSameUser: boolean
Indicates whether the previous lock owner matches the current user.Example:
false -
message: string
Message returned when the lock cannot be acquired.Example:
Lock is already owned by another user. -
prvUserId: string
Previous lock owner user identifier, when a previous owner is available. UUID, 32-character uppercase hexadecimal string.Example:
A1A8327AFAA6412287106192AB5984EF -
prvUserName: string
Previous lock owner user name, when a previous owner is available.Example:
previous.user -
status: boolean
Indicates whether the requested lock was acquired.Example:
true -
userId: string
Current lock request user identifier. UUID, 32-character uppercase hexadecimal string.Example:
B1B8327AFAA6412287106192AB5984EF -
userName: string
Current lock request user name.Example:
designer.user
Example:
{
"status":true,
"isSameUser":false,
"prvUserId":"A1A8327AFAA6412287106192AB5984EF",
"userId":"B1B8327AFAA6412287106192AB5984EF",
"isLockTimeOutIncreased":false,
"userName":"designer.user",
"prvUserName":"previous.user"
}Examples
500 Response
Returned when the request cannot be completed due to validation failure, authorization failure, or an unexpected server-side condition.
Root Schema : ErrorResponseData
Type:
objectTitle:
ErrorResponseDataError Response Details Information
Show Source
-
details: object
Object
Title:
ObjectObject with error details information. -
errorCode: string
Error code which is stored in ErrorCode enum. Example : C1-003Example:
C1-003 -
errorMessage: string
Error message which is stored in service property file. Example : Cannot modify object after a study version has been approvedExample:
Cannot modify object after a study version has been approved
Nested Schema : Object
Type:
objectTitle:
ObjectObject with error details information.
Example:
{
"field":"studyId",
"reason":"Invalid value"
}