createWhatsAppDataset method
Creates a Meta Conversions API dataset for a WhatsApp Business Account.
May throw AccessDeniedByMetaException.
May throw DependencyException.
May throw InternalServiceException.
May throw InvalidParametersException.
May throw ResourceNotFoundException.
May throw ThrottledRequestException.
Parameter id :
The ID of the WhatsApp Business Account to create a dataset for, formatted
as waba-01234567890123456789012345678901.
Implementation
Future<CreateWhatsAppDatasetOutput> createWhatsAppDataset({
required String id,
}) async {
final $payload = <String, dynamic>{
'id': id,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v1/whatsapp/waba/dataset',
exceptionFnMap: _exceptionFns,
);
return CreateWhatsAppDatasetOutput.fromJson(response);
}