Mautic Advanced icon

Mautic Advanced

Consume Mautic API with advanced features

Campaign → Update

AI-generated

Summary

Update a campaign in Mautic by specifying its ID and desired fields to modify, optionally creating it if it does not exist.

Inputs

  • Authentication — Choose the authentication method for connecting to Mautic: Credentials or OAuth2.
  • Campaign ID (required) — The unique identifier of the campaign to update.
  • Create If Not Found — Boolean flag indicating if a new campaign should be created when the provided campaign ID does not exist (uses PUT instead of PATCH). Defaults to false.
  • Update Fields — Fields to update on the campaign, including Description, Name, Is Published status, Publish Up and Down dates, and Alias used for URL generation.

Output shape

a single updated campaign object

Returns the updated campaign data object from Mautic. If 'Create If Not Found' is set to true and the campaign ID does not exist, a new campaign is created and returned instead. Errors are returned if required inputs are missing or invalid, or if update fails.

Discussion