Patch User Based on User ID
patch
/iam/governance/selfservice/api/v1/users/{uuid}
Updates the user attributes specified in the request payload for the specified user. A request is raised in Oracle Identity Manager for the modify user operation. The details of the request is captured in the response payload.
Request
Supported Media Types
- application/json
Path Parameters
-
uuid: string
Unique User id. The unique user ID maps to the "usr_key" attribute of the user.
Attributes of user to be updated. The attribute names have to be mentioned correctly. In case of any errors in the attribute name Oracle Identity Manager throws an exception.
Response
Supported Media Types
- application/json
200 Response
Successful
Headers
-
ResponseTime: string
Captures the time in milliseconds taken for processing the request.
401 Response
Unauthorized
404 Response
Requested entity not found
500 Response
Internal Server Error
Examples
This example demonstrates the ability to patch a single user. The information shown here is against a pseudo system and serves as a prototype.
cURL Example
curl -H "Content-Type: application/json" -H "X-Requested-By: <anyvalue>" -X PATCH -u username:password -d @patch.json https://pseudo.com/iam/governance/selfservice/api/v1/users/18008
Example of PATCH Request Body
The following example shows the contents of the request body in JSON format.
{ "add": [ { "name": "Last Name", "value": "updateed12345" } ], "delete": [ { "name": "First Name" } ], "update": [ { "name": "Display Name", "value": "supriya12345" } ] }
Example of PATCH Response Body
The following example shows the contents of the response body in JSON format:
{ "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/18008" } ], "id": "18008", "status": "SUCCESS", "request": { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/10072" } ], "requestId": "10072" } }