updateSettingsRole function
Future<ApiResponse<Object?> >
updateSettingsRole(
- ExsitedClient client,
- Object roleId,
- Object payload, {
- bool? raiseOnError,
- String? responseFormat,
PATCH /api/{api_version}/settings/roles/{role_id}
Update or enable/disable a role.
No typed view. Read response.map.
Implementation
Future<ApiResponse<Object?>> updateSettingsRole(
ExsitedClient client,
Object roleId,
Object payload, {
bool? raiseOnError,
String? responseFormat,
}) =>
client.sendPatchRequest(RolesUrls.settingsRole,
pathParams: {'role_id': roleId},
jsonBody: payload,
raiseOnError: raiseOnError,
responseFormat: responseFormat);