SOLVED

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

Go to solution
Anonymous
Not applicable

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

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

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

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!

View solution in original post

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

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

Anonymous
Not applicable

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

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.

Anonymous
Not applicable

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

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!

Anonymous
Not applicable

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

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.