UpdatePassword() API

This API request enables the operator to update the password of the player in DG system.

UpdatePassword() Request

TypeInput
HTTP MethodPOST
API URLhttps://<API_BASE_URL>/player/update-password/
Headers"Content-Type": "application/json"
POST Parametersjson object e.g.:
{
"api_key": "1pghjl4v5apt2bks",
"username": "test_username",
"password": "passt84fas28",
"new_password": "newPassw0rd",
}
ParametersTypeDescription
api_keyStringAPI Key allocated to each front-end
usernameStringUsername of the player
passwordStringPlayer’s current password
new_passwordStringPlayer’s new password

UpdatePassword() Response + Example

Response would be in JSON format. Type: dictionary.

{
"result": {"status": "success"
          }
}
Object/Key in Response ObjectTypeDescription
resultJSON ObjectKey result contains the JSON object as value.
statusStringResponse status