approveSkill method
Associates a skill with the organization under the customer's AWS account. If a skill is private, the user implicitly accepts access to this skill during enablement.
May throw LimitExceededException. May throw NotFoundException. May throw ConcurrentModificationException.
Parameter skillId
:
The unique identifier of the skill.
Implementation
Future<void> approveSkill({
required String skillId,
}) async {
ArgumentError.checkNotNull(skillId, 'skillId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.ApproveSkill'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'SkillId': skillId,
},
);
}