API to add File Type pages in Content Tree ?

Ravichandran R asked on July 22, 2016 10:33

Is there any api to Insert a file Type page in the Content Tree?

Recent Answers


Trevor Fayas answered on July 22, 2016 15:08

Here's the API for for a general insert (you would use this to create the File cms object)

https://docs.kentico.com/display/API9/Pages#Pages-Pagecreation

Then add to it the API for attaching files to a page (which you would then set as the field for the File portion of the File pagetype object)

https://docs.kentico.com/display/API9/Attachments#Attachments-Insertingattachmentsintopagefields

0 votesVote for this answer Mark as a Correct answer

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