A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.notion.com/reference/comment-attachment-copy below:

Comment display name

Comment display name

The Comment Display Name object represents the author name that shows up for a comment. This overrides the default author name when specified.

Parameter Type Description Example value type string
(enum) Possible type values are:"integration", "user", or "custom" "user" custom object If the type is "custom", include a custom object specifying the custom name
"custom": { "name": <Custom Name> } "custom": { "name": "Notion Bot" }

Example of a Create Comment request with custom display name:

{
  "parent": {
    "page_id": "d0a1ffaf-a4d8-4acf-a1ed-abae6e110418"
  },
  "rich_text": [
    {
      "text": {
        "content": "Thanks for checking us out!"
      }
    }
  ],
  "display_name": {
    "type": "custom",
    "custom": {
      "name": "Notion Bot"
    }
  }
}

The response of Comment APIs like Create comment contains attachments with the following fields:

Field Type Description Example value type string (enum) Possible type values are:"integration", "user", or "custom" "custom" resolved_name string The custom display name shown in a comment "Notion Bot"
{
  ...existing parameters omitted,
  "display_name": {
    "type": "custom",
    "resolved_name": "Notion Bot"
  }
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4