SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am adding a file with the REST-API:


How can I additionally add the PublishingPageLayout-property (and other properties) to the created page/file via REST-API?

share|improve this question

Never tried with the REST API, however via CSOM you would need to set the "PublishingPageLayout" to the Site Collection relative url of the actual ASPX representing the layout using something like "/sites/mySiteCollection/_catalogs/masterpage/ArticleLeft.aspx, ArticleLeft" and at the same time the ContentTypeID property using the actual Content type Identifier.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.