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
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Request 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
Nested Schema : associatedSites
Type: array
List of site UUIDs to be associated with users.
Show Source
Example:
[
    "764620086A994885B67EDD158E3EA3D1",
    "3F786850E387550FDAB836ED7E6DC881"
]
Nested Schema : userIds
Type: array
List of user IDs to update sites for.
Show Source
Example:
[
    "54B6FD8C920E4D19A259C4A9C7033A85",
    "BC2A5EEDA88F4791A4B5B7F83D1F8317"
]
Nested Schema : UsersSearchSpecificationsDto
Type: object
Search/filter specifications for selecting users during bulk role/effective/site updates.
Show Source
Nested Schema : depots
Type: object
Depots data to filter the users
Show Source
Example:
{
    "names":[
        "DepotA"
    ]
}
Nested Schema : sites
Type: object
Sites data to filter the users
Show Source
Example:
{
    "ids":[
        "123F0B1426C11EE90C31234567890AAA"
    ]
}
Nested Schema : studyRoles
Type: array
List of study role UUIDs
Show Source
Example:
[
    "AF73A2EEA90B4E9394CE6CB40B5BC66E"
]
Nested Schema : studyRoleTypes
Type: array
List of study role types
Show Source
Example:
[
    "PrincipalInvestigator"
]
Nested Schema : depotIds
Type: array
Show Source
Nested Schema : siteIds
Type: array
Show Source
Examples

Back to Top

Response

Supported Media Types

204 Response

Success

400 Response

Bad request
Body ()
Root Schema : AuthResponse
Type: object
Generic API response wrapper containing result, error data, response version and status.
Show Source
Nested Schema : ErrorResponseData
Type: object
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
  • 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
  • Application or business-specific error code representing the error type.
    Example: REPT_401
  • Human-readable error message describing the failure or issue.
    Example: Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type: object
Result data of the API response; actual type depends on the API
Example:
oracle.doceng.json.BetterJsonNull@3565a0f5

500 Response

Error
Body ()
Root Schema : ErrorResponseData
Type: object
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
  • 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
  • Application or business-specific error code representing the error type.
    Example: REPT_401
  • Human-readable error message describing the failure or issue.
    Example: Unauthorized: User does not have access to the requested resource
Back to Top