Request Type POST
   
Location
https://api.edify.cx/v3/login/changePassword/{USER_EMAIL_ADDRESS}
   
Details Changes the password of the account associated with the email address provided in the URL.

Only the user whose account is being reset may use this endpoint. You may not reset someone else's password.

Headers 

Key Value Type
u {EMAIL_ADDRESS}:{API_TOKEN}

 

Body

Key Value Type Values Default Value Required
currentPassword {string}      
newPassword {string}      

 

Example Request

<?php
  require_once('EdifyAPI.class.php');
  $EdifyAPI = new EdifyAPI();
  
  $USER_EMAIL_ADDRESS = 'user@email.com';
  $EdifyAPI->email = "email@domain.com";
  $EdifyAPI->apiToken = 'your-api-token';
  $service = "login/changePassword/".$USER_EMAIL_ADDRESS;
  $data = array(
    'currentPassword' => 'currentP@ssW0rd',
    'newPassword' => 'n3wP@ssw0rd'
  );
 
  $EdifyAPI->execute($service, $data);
?>
curl --location --request POST "https://api.edify.cx/v3/login/changePassword/user@email.com" \
  --header "u: {EMAIL_ADDRESS}:{API_TOKEN}" \
  --header "Content-Type: application/x-www-form-urlencoded" \
  --data "currentPassword=%7BSTRING%7D&newPassword=%7BSTRING%7D"