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
Path Parameters
Body ()
Root Schema : Change Password Request
Type: object
Title: Change Password Request
Change Password Request
Show Source
Back to Top

Response

Supported Media Types

204 Response

Change password is successful
Back to Top

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