AnsweredAssumed Answered

Adding rich text on web-form using REST API

Question asked by Amit Jain on Mar 12, 2019
Latest reply on Mar 14, 2019 by Amit Jain

Hi There,

 

I have to add a rich text on all the form. I was trying to the same using the REST API but getting following error in response:

 

{"success":false,"errors":[{"message":"label cannot be null","code":"701"}],"requestId":"11658#16971c2c33e","warnings":[]}

 

Following is my payload and end point URL:

 

var url = 'https://'+munckin_Id+'.mktorest.com/rest/asset/v1/form/' + formId + '/richText.json?access_token=' + access_token

    var options = {

        'method': 'post',

        'contentType': 'x-www-form-urlencoded',

        'addRichTextRequest': {

          'text':'Hey this is from API',

        }

      

    };

 

according to the doc we don't need to add label any where not sure why I'm getting this error. Following the developer doc URL

 

http://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Form_Fields/addRichTextFieldUsingP…

 

Thank you for your help in advance.

 

Regards,

Amit

Outcomes