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
Body ()
Root Schema : Bulk Update Request
Type: object
Title: Bulk Update Request
Bulk Update Request
Show Source
Nested Schema : criteria
Type: object
Show Source
  • Title: Filter Query
    Filter query in mongo format.
Nested Schema : UserData
Type: object
Title: UserData
User Data to Update
Show Source
Nested Schema : Status
Type: object
Title: Status
Status of the user
Show Source
Back to Top

Response

204 Response

All Users updated successfully.
Back to Top

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%'}}"
  }
}
Back to Top