updateCampaignSchedule method
Updates the schedule 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> updateCampaignSchedule({
required String id,
required Schedule schedule,
}) async {
final $payload = <String, dynamic>{
'schedule': schedule,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v2/campaigns/${Uri.encodeComponent(id)}/schedule',
exceptionFnMap: _exceptionFns,
);
}