Notion: add icon when creating page

The idea is:

Notion’s pages are capable of being assigned a custom icon, but currently there’s no way to do that when creating a page with n8n.

My use case:

I have an integration that takes tasks from Jira which have been assigned to me, and creates a page for each one with a link to the task and some other metadata. I would like to be able to assign an icon based on whether or not the task is in progress, completed, etc.

Granted this would be more helpful if pages could also be edited so that I can update the icon, but one step at a time.

I think it would be beneficial to add this because:

It seems like it would be a pretty easy change, and would further improve the notion integration.

Any resources to support this?

Are you willing to work on this?

I would be willing to try, but I’m pretty time limited, so if anyone can get to it before I do I’d be appreciative.

Hello, I needed something similar in order to update icon. I’ve created this workflow. In the first one you need to enter the page url and you can update the icon with a http request.

Alternatively this can be used to bulk update icons for database pages. In the second flow we are first fetching all the pages of a database and updating their icon.

The icon is hardcoded, you might want to change it based on your need. Change the url to the icon of your choice

{
"icon":{"type":"external","external":{"url":"https://www.notion.so/icons/view_gray.svg"}}
}