batchDeleteDelegationByAssessment method
Deletes a batch of delegations for an assessment in Audit Manager.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter assessmentId :
The identifier for the assessment.
Parameter delegationIds :
The identifiers for the delegations.
Implementation
Future<BatchDeleteDelegationByAssessmentResponse>
batchDeleteDelegationByAssessment({
required String assessmentId,
required List<String> delegationIds,
}) async {
final $payload = <String, dynamic>{
'delegationIds': delegationIds,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/assessments/${Uri.encodeComponent(assessmentId)}/delegations',
exceptionFnMap: _exceptionFns,
);
return BatchDeleteDelegationByAssessmentResponse.fromJson(response);
}