Marketo API to set expiration date for local assets | Community
Skip to main content
Level 2
March 27, 2026
Solved

Marketo API to set expiration date for local assets

  • March 27, 2026
  • 2 replies
  • 50 views

Is there any Marketo API to set expiration date for local assets?

I am using an integration tool to setup campaigns. Once the campaign has ended, I would like the API to end the campaign based on the expiration date. Currently, we do it manually. Is there a way to do it through API?

Best answer by SanfordWhiteman

You can’t call this native feature using the API, but you could write your own logic that behaves similarly. Store a deactivation schedule on your server, then use the API to deactivate campaigns and change LP URLs so they redirect to the default page.

2 replies

SanfordWhiteman
Level 10
March 28, 2026

What do you mean by "end the campaign"? Deactivate a trigger campaign? Unschedule a batch campaign?

 

Please detail exactly what you want to happen to each kind of asset after a certain date.

Level 2
March 29, 2026



Thank you ​@SanfordWhiteman for looking into my query. Basically, in the above screenshot, there is an “Set local asset expiration” option.

Once I click on it, it will show me all assets related to my program i.e. Landing Pages and Trigger/Batch campaigns. I can then set an expiration date on it on the UI manually.

Is there a way to set this expiration date on Trigger/Batch campaigns through an API call?

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
March 31, 2026

You can’t call this native feature using the API, but you could write your own logic that behaves similarly. Store a deactivation schedule on your server, then use the API to deactivate campaigns and change LP URLs so they redirect to the default page.