Notifications
Announcements
Hi everyone,
I'm encountering an issue with the SharePoint Online REST API when trying to save a page using the following endpoint:
_api/sitepages/pages(49)/SavePageAsDraft
The API call keeps running indefinitely and doesn't complete, even after several hours. Here are the details of my setup:
API Call Body:
{ "__metadata": { "type": "SP.Data.SitePagesItem" }, "CanvasContent1": "@{outputs('Translate_text_into_another_language_2')?['body/responsev2/predictionOutput/text']}" }
(The CanvasContent1 value resolves to a string dynamically in my workflow.)
CanvasContent1
Headers:
Authorization: Bearer <token>
Content-Type: application/json;odata=verbose
Accept: application/json;odata=verbose
Testing with a minimal payload like:
{ "__metadata": { "type": "SP.Data.SitePagesItem" }, "CanvasContent1": "Test content" }
The issue persists even with this simplified payload.
Ensuring that my access token is valid and has the necessary permissions.
Verifying that other API calls (like GET requests to _api/sitepages) work fine.
GET
_api/sitepages
Setting timeouts on my client to avoid indefinite hanging (though this doesn’t solve the root issue).
SavePage
Any guidance or suggestions would be greatly appreciated!
Thanks in advance for your help!
"__metadata":{"type":"SP.Publishing.SitePage"}
"__metadata":{"type":"SP.Publishing.SitePage"} "CanvasContent1": "Test content"
{ "__metadata": { "type": "SP.Publishing.SitePage" }, "CanvasContent1":"[{\"controlType\":4,\"id\":\"ed2476c7-994a-4a07-a322-8afe873c05f2\",\"innerHTML\":\"<p>Power Automate ftw!<br></p>\",\"position\":{\"zoneIndex\":1,\"sectionIndex\":1,\"controlIndex\":0.5,\"sectionFactor\":8,\"layoutIndex\":1},\"addedFromPersistedData\":true}]", "Title": "Page with Text Web Part" }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 503 Super User 2025 Season 2
Tomac 321 Moderator
abm abm 237 Most Valuable Professional