Forum Discussion

mattchowell's avatar
mattchowell
Iron Contributor
Jun 14, 2021

Post comment to a modern site page using REST api

Using this endpoint: https://xxx.sharepoint.com/sites/xxx/_api/web/Lists/GetByTitle('SitePages')/GetItemById(305)/Comments And this listitementitytypefullname: SP.Data.SitePagesItem Response: ...
  • ganeshsanap's avatar
    Jun 15, 2021

    mattchowell 

    You need to use Microsoft.SharePoint.Comments.comment as listitementitytypefullname instead of SP.Data.SitePagesItem.


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Resources