client = $client; $this->endpoint = 'v2/settings/users/' . $client->getUserId() . '/credentials'; } /** * Update the user password * * @throws ApiException */ public function updatePassword(string $oldPassword, string $newPassword): array { $this->client->patch($this->endpoint . '?fields=password', [ 'oldPassword' => $oldPassword, 'password' => $newPassword, ]); return ['success' => true]; } }