putInvitationConfiguration method

Future<void> putInvitationConfiguration({
  1. required String organizationName,
  2. String? contactEmail,
  3. List<String>? privateSkillIds,
})

Configures the email template for the user enrollment invitation with the specified attributes.

May throw NotFoundException. May throw ConcurrentModificationException.

Parameter organizationName : The name of the organization sending the enrollment invite to a user.

Parameter contactEmail : The email ID of the organization or individual contact that the enrolled user can use.

Parameter privateSkillIds : The list of private skill IDs that you want to recommend to the user to enable in the invitation.

Implementation

Future<void> putInvitationConfiguration({
  required String organizationName,
  String? contactEmail,
  List<String>? privateSkillIds,
}) async {
  ArgumentError.checkNotNull(organizationName, 'organizationName');
  _s.validateStringLength(
    'organizationName',
    organizationName,
    1,
    100,
    isRequired: true,
  );
  _s.validateStringLength(
    'contactEmail',
    contactEmail,
    1,
    128,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AlexaForBusiness.PutInvitationConfiguration'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'OrganizationName': organizationName,
      if (contactEmail != null) 'ContactEmail': contactEmail,
      if (privateSkillIds != null) 'PrivateSkillIds': privateSkillIds,
    },
  );
}