I was wondering if it was possible to post a news with the SharePoint API as I did with a News link.
For a news link I used as endpoint https://mysite.sharepoint.com/sites/News/_api/SitePages/pages/reposts but I didn't find the endpoint for news post.
My HTTP body looks like that:
{
"__metadata": {
"type": "SP.Publishing.RepostPage"
},
"BannerImageUrl": null,
"Description":"Description",
"IsBannerImageUrlExternal":true,
"OriginalSourceUrl":"https://docs.microsoft.com",
"ShouldSaveAsDraft":false,
"Title":"My title"
}
Thanks for our help