API v2: 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.

Request for Retrieving 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"
}