Update User Security Question or Password
patch
/rest/v16/companies/{companyName}/users/{userName}/password
This endpoint is used to change the password, security question, or the secret answer of the current user.
Request
Supported Media Types
- application/json
Path Parameters
-
companyName(required): string
Company login name. For Host Company users, use _host. For Partner Organization users, use partner organization company login name.
-
userName(required): string
Login Id of the user
Root Schema : Change Password Request
Type:
object
Title:
Change Password Request
Change Password Request
Show Source
-
currentPassword:
string
Title:
Current Password
Current Password of User -
newPassword:
string
Title:
New Password
New Password for User -
secretAnswer:
string
Title:
Secret Answer
Secret Answer for User -
securityQuestion:
string
Title:
Security Question
Security Question for User
Response
Supported Media Types
- application/json
204 Response
Change password is successful
Examples
This endpoint is used to change the password, security question, or the secret answer of the current user submitting a PATCH request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X PATCH - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" https://sitename.oracle.com/rest/v16/companies/abcCo/users/AAP39/password
Request Body Sample
{ "currentPassword": "oldPassword", "newPassword": "newPassword", "securityQuestion": "What is your favorite color?", "secretAnswer": "periwinkle" }