updateCampaignEntryLimits method
Future<void>
updateCampaignEntryLimits({
- required EntryLimitsConfig entryLimitsConfig,
- required String id,
Updates the entry limits config for a campaign. This API is idempotent.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw InvalidCampaignStateException.
May throw ResourceNotFoundException.
May throw ValidationException.
Implementation
Future<void> updateCampaignEntryLimits({
required EntryLimitsConfig entryLimitsConfig,
required String id,
}) async {
final $payload = <String, dynamic>{
'entryLimitsConfig': entryLimitsConfig,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v2/campaigns/${Uri.encodeComponent(id)}/entry-limits',
exceptionFnMap: _exceptionFns,
);
}