Skip to content

Update Page Property

This component allows you to easily change details on a specific page in your Notion workspace. It’s like having a remote control for your Notion pages, letting you update them automatically as part of your Nappai automations.

Relationship with Notion API

This component directly interacts with the Notion API. It uses this API to send updates to your Notion pages. You’ll need to provide Nappai with the correct credentials to access your Notion account.

Inputs

  • Page ID: This is a unique identifier for the Notion page you want to update. Think of it as the page’s address. You can find this ID in the Notion page’s URL.
  • Properties: This is where you specify the changes you want to make to the page. You’ll provide this information as a structured format (we’ll show you how in the Usage Example). This could include things like changing the page title, adding text to a section, or updating a date.
  • Credential: This is your connection to your Notion account. Nappai will use this to verify your access and make the changes. You’ll set this up once in your Nappai account settings.

Outputs

The component provides feedback on whether the update was successful.

  • Text: A short message telling you if the update worked or if there was an error. For example, “Page updated successfully!” or “Error updating page: [Error message]”.
  • Data: If the update was successful, this will contain the updated information from the Notion page.

Usage Example

Let’s say you want to update the title of a Notion page with the ID “abcdef123456” to “Meeting Notes - July 26”. You would provide the following inputs:

  • Page ID: abcdef123456
  • Properties: {"Title": {"title": [{"text": {"content": "Meeting Notes - July 26"}}]}} (This is a JSON format, but Nappai will help you create this easily.)
  • Credential: (Select your previously configured Notion credential)

Nappai will then send this information to the Notion API, updating the page’s title.

Templates

[List of templates where the component is used - To be filled in by the developer]

  • [Component Name 1]: [Brief description] - (Link to documentation if available)
  • [Component Name 2]: [Brief description] - (Link to documentation if available)
  • [Component Name 3]: [Brief description] - (Link to documentation if available) (Repeat as needed for all listed components)

Tips and Best Practices

  • Double-check your Page ID: Make sure you have the correct Page ID to avoid updating the wrong page.
  • Test your Properties input: Before running the automation on important data, test it with a sample page to ensure your properties are formatted correctly.
  • Error Handling: Review the “Text” output to check for any errors after running the component.

Security Considerations

  • Protect your Notion Credentials: Never share your Notion credentials with anyone. Nappai uses secure methods to store and handle your credentials.
  • Input Validation: Nappai performs input validation to prevent malicious code from being injected. However, always review the inputs before running the automation.