Skip to main content

Update a Page

This custom action enables makers to update an existing page in their Notion data source.

For additional details regarding the Notion API reference for this action, see Update page in the Notion developer documentation.

Configure the Request

  1. In Tonkean, navigate to your Notion data source and select Actions in the data source configuration panel. The Actions screen displays.

  2. Select Create New Custom Action in the upper right. The New HTTP Custom Action window displays.

  3. In the The action will be field, select the first dropdown and select Updating, then select the second dropdown and select Page. When finished, select Create. The window closes and the Custom Action General screen displays.

  4. Enter a unique Display Name for the action. This is the title of the action that displays to other makers.

  5. In the Settings panel, select Request. The Request screen displays.

  6. In the Path field, select the method dropdown and select PATCH, then enter the endpoint URL: v1/pages.

  7. Create an action param for the page ID, which is appended to the endpoint path. Enter "Page ID" in the available field in the Actions Params section, then select + Add Param.

  8. In the Path field, insert a forward slash, "/", then select the insert field button, insert_field.png, and choose the Page ID field.


    The complete endpoint path should display as follows:

  9. In the Body field, enter the request body with all required fields.

        "properties": {
            "Custom Property": {
                "rich_text": [
                        "text": {
                            "content": ""
            "Tags": {
                "multi_select": [
                        "name": ""

    For each required dynamic value, create a new param and include it in the body. For this action, Custom Property and Tags are both dynamic values you must create params for.

    To create a param, follow the steps below:

    1. In the Actions Params section, enter a param name in the available field, then select + Add Param.

    2. Repeat step #1 for each param you want to create.

    3. For each value where you must include a param, place your cursor between the quotes, then select the insert field button, insert_field.png and choose the action param to insert.

    When finished, the Body field should appear as in the image below, with the appropriate params included:

  10. In the Headers section, select + Add Header. A new Header Name and Header Value fields display.

  11. Enter the following values:

    • Header Name - Notion-Version

    • Header Value - 2022-06-28


The request is complete and ready for testing.

Test the Request

  1. Select Test Request. The Test Action window displays.

  2. Enter values for each action param:

    • Page ID - {Your page ID}

      If you're using Notion in a web browser, you can locate the 32-character page ID in the URL. When on the relevant page you want to update, the ID is located after the page title.


      If you're using the Notion desktop app, select Share, copy and paste the URL into a web browser, then extract the page ID from the URL.

    • Custom Property - The new property or content to add to the page.

    • Tags - Tags for the new property or content.

  3. Select Run Test. The request runs with the param values you provided and the Response section populates, including a notification with the HTTP response code. The Response Body and Headers tabs in the Response section display the response from the endpoint.


    If the test is successful, a 200 Success response code displays.


    If you don't receive the expected response, or your test request fails, close the Test Action window and return to the Request screen to troubleshoot the problem.

    Some common errors with Notion custom actions are caused by a particular entity not being shared with Tonkean. In Notion, navigate to the relevant entity (in this case, a page) and select Share in the upper right. Ensure the Tonkean integration has edit permissions.

  4. If the test is successful and you receive the response you expect, close the Test Action window and select Save Action Changes in the upper right of the Request screen.

The Update Page custom action is complete and ready to use in a module.