rejectSkill method

Future<void> rejectSkill({
  1. required String skillId,
})

Disassociates a skill from the organization under a user's AWS account. If the skill is a private skill, it moves to an AcceptStatus of PENDING. Any private or public skill that is rejected can be added later by calling the ApproveSkill API.

May throw ConcurrentModificationException. May throw NotFoundException.

Parameter skillId : The unique identifier of the skill.

Implementation

Future<void> rejectSkill({
  required String skillId,
}) async {
  ArgumentError.checkNotNull(skillId, 'skillId');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AlexaForBusiness.RejectSkill'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'SkillId': skillId,
    },
  );
}