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