setPortalPassword function

Future<ApiResponse<Object?>> setPortalPassword(
  1. ExsitedClient client,
  2. Object payload, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

POST /api/{api_version}/portal/change

Set a portal password by email, {"portal": {"email", "password"}}; no current password is asked, and it answers 202.

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> setPortalPassword(
  ExsitedClient client,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPostRequest(PortalsUrls.portalChange,
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);