disassociateSkillFromUsers method

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

Makes a private skill unavailable for enrolled users and prevents them from enabling it on their devices.

May throw ConcurrentModificationException. May throw NotFoundException.

Parameter skillId : The private skill ID you want to make unavailable for enrolled users.

Implementation

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