How to publish a page created using REST API?

Gopala Padibandla asked on May 11, 2016 00:23

Hello,


I have created a page using kentico REST API. But I am not sure how to publish the page. I did tried to set the "DocumentCanBePublished" property to true but no luck. Any help is highly appreciated.

Information

Method: POST

URL: http://website/rest/content/currentsite/en-AU/document/Offices?format=json

JSON Object:

{

"NodeClassID": 4620,

"OfficeName":"Test Office",

"OfficePhone":"0412 345 678",

"OfficeEmail":"test@test.com",

"DocumentCanBePublished":true

}

Regards, Gopala

Correct Answer

Roman Hutnyk answered on May 11, 2016 04:46

I believe you have to use workflow actions API as described here.

3 votesVote for this answer Unmark Correct answer

Recent Answers


Gopala Padibandla answered on May 11, 2016 05:20 (last edited on May 11, 2016 05:21)

Thank you so much Roman, that helped me to solve the issue

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.