UAG - Change Password 🆕¶


Data Structures¶

ChangePasswordModel¶

Attribute

Type

Required

Description

state

string

Change password state.

password

string

yes

Old or new password depending on state or prompt.

method_id

string

ID of the authentication method whose password is changed. See the section Profile Authentication Methods Management.

Retrieve Available Attributes of the ChangePasswordModel¶

Request

Method

GET

Path

/api/v2/objspec/change_password

GET /api/v2/objspec/change_password

Example Request

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/objspec/change_password'

Change Password¶

Request

Method

POST

Path

/api/v2/change-password

Headers

Content-Type: application/json

Body

ChangePasswordModel

POST /api/v2/change-password

Example Request

curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
https://10.0.0.1/api/v2/change-password \
-d '{"password": "new-password"}'

Response

{
    "result": "success"
}