disableProfile method

Future<ProfileDetailResponse> disableProfile({
  1. required String profileId,
})

Disables a profile. When disabled, temporary credential requests with this profile fail.

Required permissions: rolesanywhere:DisableProfile.

May throw AccessDeniedException. May throw ResourceNotFoundException.

Parameter profileId : The unique identifier of the profile.

Implementation

Future<ProfileDetailResponse> disableProfile({
  required String profileId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/profile/${Uri.encodeComponent(profileId)}/disable',
    exceptionFnMap: _exceptionFns,
  );
  return ProfileDetailResponse.fromJson(response);
}