updateCampaignsStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateCampaignsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates one or more campaigns.
Example#
Input#
UpdateCampaignDTO[]
UpdateCampaignDTO[]
UpdateCampaignDTO[]
UpdateCampaignDTO[]id
stringThe ID of the campaign.
id
stringname
stringOptionalThe name of the campaign.
name
stringOptionaldescription
null | stringOptionalThe description of the campaign.
description
null | stringOptionalcampaign_identifier
stringOptionalThe campaign identifier of the campaign.
campaign_identifier
stringOptionalstarts_at
null | DateOptionalThe start date of the campaign.
starts_at
null | DateOptionalends_at
null | DateOptionalThe end date of the campaign.
ends_at
null | DateOptionalThe budget of the campaign.
Output#
CampaignDTO[]
CampaignDTO[]
CampaignDTO[]
CampaignDTO[]id
stringThe ID of the campaign.
id
stringname
stringOptionalThe name of the campaign.
name
stringOptionaldescription
stringOptionalThe description of the campaign.
description
stringOptionalcampaign_identifier
stringOptionalThe campaign identifier of the campaign.
campaign_identifier
stringOptionalstarts_at
DateOptionalThe start date of the campaign.
starts_at
DateOptionalends_at
DateOptionalThe end date of the campaign.
ends_at
DateOptionalThe associated campaign budget.
The associated promotions.
Was this page helpful?