Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 2.01 KB

ResetPasswordApi.md

File metadata and controls

63 lines (44 loc) · 2.01 KB

ResetPasswordApi

All URIs are relative to /

Method HTTP request Description
resetPasswordUsingPOST1 POST /users-web/api/v3/account/password/reset Reset Password

resetPasswordUsingPOST1

GenericMapBasedApiResponse resetPasswordUsingPOST1(body)

Reset Password

Example

// Import classes:
//import com.sematext.cloud.ApiClient;
//import com.sematext.cloud.ApiException;
//import com.sematext.cloud.Configuration;
//import com.sematext.cloud.auth.*;
//import com.sematext.cloud.client.ResetPasswordApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");

ResetPasswordApi apiInstance = new ResetPasswordApi();
UserInfo body = new UserInfo(); // UserInfo | dto
try {
    GenericMapBasedApiResponse result = apiInstance.resetPasswordUsingPOST1(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ResetPasswordApi#resetPasswordUsingPOST1");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body UserInfo dto

Return type

GenericMapBasedApiResponse

Authorization

api_key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json