This script updates a specific page in Notion using the Notion API. It requires the Notion API token, the ID of the page to be updated, and the new property values for the update. The script sets up the necessary headers, constructs the request body with the provided property updates, and sends a PATCH request to the Notion API to apply the updates. If successful, it returns the updated page data; otherwise, it throws an error with details about the failure.
Verified notion •
1 script