Skip to main content
Skip to main content

updatePromotionRules - Promotion Module Reference

This documentation provides a reference to the updatePromotionRules method. This belongs to the Promotion Module.

This method updates existing promotion rules.

Example

const promotionRules =
await promotionModuleService.updatePromotionRules([
{
id: "prorul_123",
description: "Only allow VIP customers",
},
])

Parameters

The attributes to update in the promotion rules.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<PromotionRuleDTO[]>Required
The updated promotion rules.
Was this section helpful?