Calling ContentFragment API from Postman works. But same payload from AppBuilder action throws `code: ERR_INVALID_ARG_TYPE`
I am trying https://adobe-sites.redoc.ly/tag/Fragment-Management#operation/fragments/createFragment CF API to programmatically create content fragments from inside AppBuilder action. I first tried the swagger request from postman and verified the request works. Request looks like this
curl --location 'https://author-*-*.adobeaemcloud.com/adobe/sites/cf/fragments' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <hidden>' \
--data '{
"title": "625875",
"modelId": "L2NvbmYvc2d3cy9jb3JwL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL3NhbHNpZnktZnJhZ21lbnQtbW9kZWw",
"parentPath": "/content/dam/product-content",
"fields": [{"name":"salsify:ageStatement","values":["Age Statement 625875"],"type":"text"},{"name":"salsify:brandStory","values":["Brand Story 625875"],"type":"text"},{"name":"salsify:tastingNotes","type":"text"}]
}'
Next I hardcoded and generated exact request into an AppBuilder action and invoked it. The request keeps failing with error `{"code":"ERR_INVALID_ARG_TYPE"}`
Nothing useful in server log, I dont see any log in server error.log file.
Have anyone tried and faced similar error? Any pointers whats missing can help me. thanks.
