Adding rich text on web-form using REST API
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
Thank you for your help in advance.
Regards,
Amit