Re: Does API endpoint POST /rest/asset/v1/form/{id}/approveDraft.json working?

Rupak_Nepali
Level 1

Does API endpoint POST /rest/asset/v1/form/{id}/approveDraft.json working?

Hi Guys,

 

I feel like the Form Approve Draft API endpoint is not working?

 

I am able to get all the 200 forms per call with endpoints 

https://------.mktorest.com/rest/asset/v1/forms.json?maxReturn=200&access_token=--------
I am able to add a field to all 200 forms with endpoints
https://-----.mktorest.com/rest/asset/v1/form/{id}/fields.json?access_token=---------
 
But when I try to use the form approve draft API endpoint POST /rest/asset/v1/form/{id}/approveDraft.json.
Screen Shot 2021-08-16 at 4.44.35 PM.png
 
It is always failing.
- Have confirmed access_token is active
- Have tested passing access_token through header and body (x-www-form-urlencoded, json etc)
 
Does anyone know if this approvedraft API endpoint is working?
3 REPLIES 3
adrianfraguela
Level 3

Re: Does API endpoint POST /rest/asset/v1/form/{id}/approveDraft.json working?

Looks like the API user doesn't have the right permissions. 

 

See this link: https://nation.marketo.com/t5/knowledgebase/rest-api-call-is-returning-603-error/ta-p/249694

Rupak_Nepali
Level 1

Re: Does API endpoint POST /rest/asset/v1/form/{id}/approveDraft.json working?

@adrianfraguela Thank you for checking.
The API user used has read-write permission.  I am able to write for updating the form fields. Only this approveDraft endpoint is giving me issue.

Rupak_Nepali
Level 1

Re: Does API endpoint POST /rest/asset/v1/form/{id}/approveDraft.json working?

I can update the form metadata, clone the form, delete the form, discard the form draft, change the submit button from the API
But only having problems on approveDraft.json
Anyone facing a similar issue?
Tags (1)