deleteSettingsRole function

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

DELETE /api/{api_version}/settings/roles/{role_id}

Delete a role; a system role is refused.

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> deleteSettingsRole(
  ExsitedClient client,
  Object roleId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendDeleteRequest(RolesUrls.settingsRole,
        pathParams: {'role_id': roleId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);