Skip to main content
Skip to main content

updateCampaigns - Promotion Module Reference

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

updateCampaigns(data, sharedContext?): Promise<CampaignDTO[]>

This method updates existing campaigns.

Example

const campaigns =
await promotionModuleService.updateCampaigns([
{
id: "procamp_123",
name: "Summer Sales",
},
])

Parameters

dataUpdateCampaignDTO[]Required
The attributes to update in the campaigns.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<CampaignDTO[]>Required
The updated campaigns.

updateCampaigns(data, sharedContext?): Promise<CampaignDTO>

This method updates an existing campaign.

Example

const campaigns =
await promotionModuleService.updateCampaigns({
id: "procamp_123",
name: "Summer Sales",
})

Parameters

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

Returns

PromisePromise<CampaignDTO>Required
The updated campaign.
Was this section helpful?