core
core copied to clipboard
RESTFul save of content : stName does not work with json
This works for me:
curl -v -u [email protected]:admin -XPUT http://localhost:8080/api/content/publish/1 -H "Content-Type:application/json" -d '{
stInode:"2a3e91e4-fbbf-4876-8c5b-2233c1739b05",
languageId:1,
title:"test content",
contentHost:"demo.dotcms.com",
body:"test body"
}'
this does not:
curl -v -u [email protected]:admin -XPUT http://localhost:8080/api/content/publish/1 -H "Content-Type:application/json" -d '{
stName:"webPageContent",
languageId:1,
title:"test content",
contentHost:"demo.dotcms.com",
body:"test body"
}'
it looks like master-2.5 needs commits on #2910
merged to master-2.5 was working on master already
Fix is working on 3.2.1 build