0

Hi I uploaded a file using sharepoint rest api using below url

_api/web/getfolderbyserverrelativeurl('/Pages')/files/add(url='Pages/14789564.aspx')

If you see in below screenshot Page Layout created as empty. Is it possible to update or create pagelayout here

Can any one help me onthis

enter image description here

3
  • Which version of SharePoint are you using? Are you looking for this: stackoverflow.com/questions/46830552/… Mar 19, 2023 at 9:55
  • Am using sharepoint online. Is there any way to create a page with page layout using rest api? as of now am trying to create a page by uploading a document of .aspx and then trying to update fields of page. but couldn't succeeded to update page layout as its read only field as per link given by you
    – Madhu Nali
    Mar 19, 2023 at 11:33
  • Not sure if it is possible using REST API. You might be able to do it using JSOM or PowerShell. Mar 19, 2023 at 12:02

1 Answer 1

0

You can set Content Type ID associated with this page layout. In Master Page gallery you can see what the layout associate with this page layout.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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