Bulk Update User Status
post
/rest/v19/users/actions/bulkUpdate
This endpoint is used to perform a bulk update of active and inactive users based on the criteria passed in the request body.
Request
Supported Media Types
- application/json
Root Schema : Bulk Update Request
Type:
objectTitle:
Bulk Update RequestBulk Update Request
Show Source
-
criteria:
object Criteria
Title:
CriteriaCriteria to Filter Users -
userData:
object UserData
Title:
UserDataUser Data to Update
Nested Schema : Criteria
Type:
objectTitle:
CriteriaCriteria to Filter Users
Show Source
-
q:
string
Title:
Filter StringFilter String
Nested Schema : UserData
Type:
objectTitle:
UserDataUser Data to Update
Show Source
-
status:
object Status
Title:
StatusStatus of the user
Nested Schema : Status
Type:
objectTitle:
StatusStatus of the user
Show Source
-
displayValue:
string
Title:
Display ValueDisplay value. -
value:
number
Title:
ValueValue.
Response
204 Response
All Users updated successfully.
Examples
This endpoint is used to perform a bulk update of user status based on the criteria passed in the request body by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/users/actions/bulkUpdate
Request Body Sample
{
"userData": {
"status": {
"value": 0,
"displayValue": "Inactive"
}
},
"criteria": {
"q": "{'login' :{'$like':'%jsmith%'}}"
}
}
Note: The display value is optional in the sample above. For example, the following sample is also valid.
{
"userData": {
"status": {
"value": 0
}
},
"criteria": {
"q": "{'login' :{'$like':'%jsmith%'}}"
}
}