associateSkillWithUsers method
Makes a private skill available for enrolled users to enable on their devices.
May throw ConcurrentModificationException. May throw NotFoundException.
Parameter skillId
:
The private skill ID you want to make available to enrolled users.
Implementation
Future<void> associateSkillWithUsers({
required String skillId,
}) async {
ArgumentError.checkNotNull(skillId, 'skillId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.AssociateSkillWithUsers'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'SkillId': skillId,
},
);
}