Bulk Update User Status
post
/rest/v16/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:
object
Title:
Bulk Update Request
Bulk Update Request
Show Source
-
criteria:
object criteria
-
userData:
object UserData
Title:
UserData
User Data to Update
Nested Schema : criteria
Type:
Show Source
object
-
q:
string
Title:
Filter Query
Filter query in mongo format.
Nested Schema : UserData
Type:
object
Title:
UserData
User Data to Update
Show Source
-
status:
object Status
Title:
Status
Status of the user
Nested Schema : Status
Type:
object
Title:
Status
Status of the user
Show Source
-
displayValue:
string
Title:
Display Value
Display value. -
value:
string
Title:
Value
Value
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 - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" https://sitename.oracle.com/rest/v16/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%'}}" } }