Emoji object
{
"type": "emoji",
"emoji": "😻"
}
Type | Description | Example value | |
---|---|---|---|
type | "emoji" | The constant string "emoji" that represents the object type. | "emoji" |
emoji | string | The emoji character. | "😻" |
Example: set a page icon via the Create a page endpoint
curl 'https://api.notion.com/v1/pages' \
-H 'Authorization: Bearer '"$NOTION_API_KEY"'' \
-H "Content-Type: application/json" \
-H "Notion-Version: 2022-06-28" \
--data '{
"parent": {
"page_id": "13d6da822f9343fa8ec14c89b8184d5a"
},
"properties": {
"title": [
{
"type": "text",
"text": {
"content": "A page with an avocado icon",
"link": null
}
}
]
},
"icon": {
"type": "emoji",
"emoji": "🥑"
}
}'
Example: set a page icon via the Update page endpoint
curl https://api.notion.com/v1/pages/60bdc8bd-3880-44b8-a9cd-8a145b3ffbd7 \
-H 'Authorization: Bearer '"$NOTION_API_KEY"'' \
-H "Content-Type: application/json" \
-H "Notion-Version: 2022-06-28" \
-X PATCH \
--data '{
"icon": {
"type": "emoji",
"emoji": "🥨"
Modified at 2023-04-28 06:50:11