How do you approve a landing page template via the api? | Community
Skip to main content
August 28, 2015
Solved

How do you approve a landing page template via the api?

  • August 28, 2015
  • 2 replies
  • 1967 views

Hi,

I'm intergrating with the API so we can update our templates really fast.

However I was wondering how do you approve a landing page template via the api?

Marketo REST APIs: Asset Objects » Marketo Developers

There is approve email template and approve snippet.

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by

Hi Sean

I think current API docs lack of LP approving.

When I tried below, I could approve.

URL: <REST API Endpoint URL>/rest/asset/v1/landingPageTemplate/{id}/approveDraft.json

Good luck!

2 replies

SanfordWhiteman
Level 10
August 28, 2015
September 2, 2015

That action creates or updates a draft not the live template. I'm looking for the action to approve the template once it's been updated via this action.

Accepted solution
August 29, 2015

Hi Sean

I think current API docs lack of LP approving.

When I tried below, I could approve.

URL: <REST API Endpoint URL>/rest/asset/v1/landingPageTemplate/{id}/approveDraft.json

Good luck!

September 2, 2015

That's brilliant thank you.

Just for the record this is a POST not a GET.

It works with POST. Get returns an error from marketo.