Bulk user sites update
put
/ec-auth-svc/rest/v1.0/authusers/studies/{StudyID}/users/sites
Bulk update sites for a list of users or users matching search criteria in the specified study.
Request
Path Parameters
-
StudyID(required): string(uuid)
Unique identifier for the study.Example:
85EFD8B9FF11437F8D0DA3F314A9D123
Supported Media Types
- application/json
Root Schema : schema
Type:
objectRequest payload for performing bulk site associations or updates for a set of users in a study. Selection may be made by explicit userIds, allUsers, or via the userSearchSpecs filter. Site associations can be provided explicitly (associatedSites) or set globally via allSites.
Show Source
-
allSites: boolean
If true, associate all current/future sites with users; if false, uses provided associatedSites.Example:
false -
allUsers: boolean
Flag stating if all users found by userSearchSpecs should be included. If true, applies to all; if false, applies to userIds only.Example:
false -
associatedSites: array
associatedSites
List of site UUIDs to be associated with users.
-
modeName(required): string
Name of the study mode (e.g., active, design, etc) for which site association is applied.Example:
active -
userIds: array
userIds
List of user IDs to update sites for.
-
userSearchSpecs: object
UsersSearchSpecificationsDto
Search/filter specifications for selecting users during bulk role/effective/site updates.
Nested Schema : associatedSites
Type:
arrayList of site UUIDs to be associated with users.
Show Source
-
Array of:
string(uuid)
List of site UUIDs to be associated with users.
Example:
[
"764620086A994885B67EDD158E3EA3D1",
"3F786850E387550FDAB836ED7E6DC881"
]Nested Schema : userIds
Type:
arrayList of user IDs to update sites for.
Show Source
-
Array of:
string(uuid)
List of user IDs to update sites for.
Example:
[
"54B6FD8C920E4D19A259C4A9C7033A85",
"BC2A5EEDA88F4791A4B5B7F83D1F8317"
]Nested Schema : UsersSearchSpecificationsDto
Type:
objectSearch/filter specifications for selecting users during bulk role/effective/site updates.
Show Source
-
depots: object
depots
Depots data to filter the users
-
mode: string
Study mode for the searchExample:
active -
searchString: string
Free text to search/filter usersExample:
site, US -
sites: object
sites
Sites data to filter the users
-
sortBy: string
Result sort columnExample:
lastName -
sortOrder: string
Sort order, ascending/descendingExample:
asc -
studyRoles: array
studyRoles
List of study role UUIDs
-
studyRoleTypes: array
studyRoleTypes
List of study role types
-
userStatus: string
User status for filteringExample:
Inactive
Nested Schema : depots
Type:
objectDepots data to filter the users
Show Source
Example:
{
"names":[
"DepotA"
]
}Nested Schema : sites
Type:
objectSites data to filter the users
Show Source
Example:
{
"ids":[
"123F0B1426C11EE90C31234567890AAA"
]
}Nested Schema : studyRoles
Type:
arrayList of study role UUIDs
Show Source
-
Array of:
string(uuid)
List of study role UUIDs
Example:
[
"AF73A2EEA90B4E9394CE6CB40B5BC66E"
]Nested Schema : studyRoleTypes
Type:
arrayList of study role types
Show Source
-
Array of:
string
List of study role typesExample:
["PrincipalInvestigator"]
Example:
[
"PrincipalInvestigator"
]Examples
Back to Top
Response
Supported Media Types
- application/json
204 Response
Success
400 Response
Bad request
Root Schema : AuthResponse
Type:
objectGeneric API response wrapper containing result, error data, response version and status.
Show Source
-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
Result data of the API response; actual type depends on the API
-
status: string
(none)
Indicates request success ("success") or failure ("failure").Example:
success -
version: integer
(int32)
Version of the response schema.Example:
1
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: string
Detailed 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 -
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:
objectResult data of the API response; actual type depends on the API
Example:
oracle.doceng.json.BetterJsonNull@3565a0f5500 Response
Error
Root Schema : ErrorResponseData
Type:
objectStructure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
-
details: string
Detailed 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 -
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