updateCampaignName method
Updates the name of a campaign. This API is idempotent.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Implementation
Future<void> updateCampaignName({
required String id,
required String name,
}) async {
final $payload = <String, dynamic>{
'name': name,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/campaigns/${Uri.encodeComponent(id)}/name',
exceptionFnMap: _exceptionFns,
);
}