Update User Security Question or Password
patch
/rest/v19/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:
objectTitle:
Change Password RequestChange Password Request
Show Source
-
currentPassword:
string
Title:
Current PasswordCurrent Password of User -
newPassword:
string
Title:
New PasswordNew Password for User -
secretAnswer:
string
Title:
Secret AnswerSecret Answer for User -
securityQuestion:
string
Title:
Security QuestionSecurity 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 -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/companies/abcCo/users/AAP39/password
Request Body Sample
{
"currentPassword": "oldPassword",
"newPassword": "newPassword",
"securityQuestion": "What is your favorite color?",
"secretAnswer": "periwinkle"
}