core icon indicating copy to clipboard operation
core copied to clipboard

RESTFul save of content : stName does not work with json

Open wezell opened this issue 13 years ago • 3 comments

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"
}'

wezell avatar Aug 29 '13 13:08 wezell

it looks like master-2.5 needs commits on #2910

dotjorgeu avatar Aug 29 '13 15:08 dotjorgeu

merged to master-2.5 was working on master already

jtesser avatar Aug 29 '13 17:08 jtesser

Fix is working on 3.2.1 build

shaydotcms avatar Jun 19 '15 15:06 shaydotcms