Movatterモバイル変換


[0]ホーム

URL:


Page property items

Overview

Aproperty_item object describes the identifier, type, and value of a page property. It's returned from theRetrieve a page property item API.

Generally, the details on this page are the same as those inPage properties, but with tweaks and additional information specific to the retrieve page property item endpoint, such asvalue pagination .

Common fields

Each page property item object contains the following keys. In addition, it will contain a key corresponding with the value oftype. The value is an object containing type-specific data. The type-specific data are described in the sections below.

PropertyTypeDescriptionExample value
object"property_item"Always"property_item"."property_item"
idstringUnderlying identifier for the property. This identifier is guaranteed to remain constant when the property name changes. It may be a UUID, but is often a short random string.

Theid may be used in place ofname when creating or updating pages.
"f%5C%5C%3Ap"
typestring (enum)Type of the property. Possible values are"rich_text","number","select","multi_select","date","formula","relation","rollup","title","people","files","checkbox","url","email","phone_number","created_time","created_by","last_edited_time", and"last_edited_by"."rich_text"

Paginated values

Thetitle,rich_text,relation andpeople property items of are returned as a paginatedlist object of individualproperty_item objects in the results. An abridged set of the the properties found in thelist object are found below; see thePagination documentation for additional information.

PropertyTypeDescriptionExample value
object"list"Always"list"."list"
type"property_item"Always"property_item"."property_item"
resultslistList ofproperty_item objects.[{"object": "property_item", "id": "vYdV", "type": "relation", "relation": { "id": "535c3fb2-95e6-4b37-a696-036e5eac5cf6"}}... ]
property_itemobjectAproperty_item object that describes the property.{"id": "title", "next_url": null, "type": "title", "title": {}}
next_urlstring ornullThe URL the user can request to get the next page of results."http://api.notion.com/v1/pages/0e5235bf86aa4efb93aa772cce7eab71/properties/vYdV?start_cursor=LYxaUO&page_size=25"

Title

Title property value objects contain an array ofrich text objects within thetitle property.

{  "Name": {    "object": "list",    "results": [      {        "object": "property_item",        "id": "title",        "type": "title",        "title": {          "type": "text",          "text": {            "content": "The title",            "link": null          },          "annotations": {            "bold": false,            "italic": false,            "strikethrough": false,            "underline": false,            "code": false,            "color": "default"          },          "plain_text": "The title",          "href": null        }      }    ],    "next_cursor": null,    "has_more": false,    "type": "property_item",    "property_item": {      "id": "title",      "next_url": null,      "type": "title",      "title": {}    }  }}

Rich text

Rich text property value objects contain an array ofrich text objects within therich_text property.

{  "Details": {    "object": "list",    "results": [      {        "object": "property_item",        "id": "NVv%5E",        "type": "rich_text",        "rich_text": {          "type": "text",          "text": {            "content": "Some more text with ",            "link": null          },          "annotations": {            "bold": false,            "italic": false,            "strikethrough": false,            "underline": false,            "code": false,            "color": "default"          },          "plain_text": "Some more text with ",          "href": null        }      },      {        "object": "property_item",        "id": "NVv%5E",        "type": "rich_text",        "rich_text": {          "type": "text",          "text": {            "content": "fun formatting",            "link": null          },          "annotations": {            "bold": false,            "italic": true,            "strikethrough": false,            "underline": false,            "code": false,            "color": "default"          },          "plain_text": "fun formatting",          "href": null        }      }    ],    "next_cursor": null,    "has_more": false,    "type": "property_item",    "property_item": {      "id": "NVv^",      "next_url": null,      "type": "rich_text",      "rich_text": {}    }  }}

Number

Number property value objects contain a number within thenumber property.

{  "Quantity": {    "object": "property_item",    "id": "XpXf",    "type": "number",    "number": 1234  }}

Select

Select property value objects contain the following data within theselect property:

PropertyTypeDescriptionExample value
idstring (UUIDv4)ID of the option.

When updating a select property, you can use eithername orid.
"b3d773ca-b2c9-47d8-ae98-3c2ce3b2bffb"
namestringName of the option as it appears in Notion.

If the selectdatabase property does not yet have an option by that name, it will be added to the database schema if the integration also has write access to the parent database.

Note: Commas (",") are not valid for select values.
"Fruit"
colorstring (enum)Color of the option. Possible values are:"default","gray","brown","red","orange","yellow","green","blue","purple","pink". Defaults to"default".

Not currently editable.
"red"
{  "Option": {    "object": "property_item",    "id": "%7CtzR",    "type": "select",    "select": {      "id": "64190ec9-e963-47cb-bc37-6a71d6b71206",      "name": "Option 1",      "color": "orange"    }  }}

Multi-select

Multi-select property value objects contain an array of multi-select option values within themulti_select property.

Option values

PropertyTypeDescriptionExample value
idstring (UUIDv4)ID of the option.

When updating a multi-select property, you can use eithername orid.
"b3d773ca-b2c9-47d8-ae98-3c2ce3b2bffb"
namestringName of the option as it appears in Notion.

If the multi-selectdatabase property does not yet have an option by that name, it will be added to the database schema if the integration also has write access to the parent database.

Note: Commas (",") are not valid for select values.
"Fruit"
colorstring (enum)Color of the option. Possible values are:"default","gray","brown","red","orange","yellow","green","blue","purple","pink". Defaults to"default".

Not currently editable.
"red"
{  "Tags": {    "object": "property_item",    "id": "z%7D%5C%3C",    "type": "multi_select",    "multi_select": [      {        "id": "91e6959e-7690-4f55-b8dd-d3da9debac45",        "name": "A",        "color": "orange"      },      {        "id": "2f998e2d-7b1c-485b-ba6b-5e6a815ec8f5",        "name": "B",        "color": "purple"      }    ]  }}

Date

Date property value objects contain the following data within thedate property:

PropertyTypeDescriptionExample value
startstring (ISO 8601 date and time)An ISO 8601 format date, with optional time."2020-12-08T12:00:00Z"
endstring (optional,ISO 8601 date and time)An ISO 8601 formatted date, with optional time. Represents the end of a date range.

Ifnull, this property's date value is not a range.
"2020-12-08T12:00:00Z"
time_zonestring (optional, enum)Time zone information forstart andend. Possible values are extracted from theIANA database and they are based on the time zones fromMoment.js.

When time zone is provided,start andend should not have anyUTC offset. In addition, when time zone is provided,start andend cannot be dates without time information.

Ifnull, time zone information will be contained inUTC offsets instart andend.
"America/Los_Angeles"
{  "Shipment Time": {    "object": "property_item",    "id": "i%3Ahj",    "type": "date",    "date": {      "start": "2021-05-11T11:00:00.000-04:00",      "end": null,      "time_zone": null    }  }}

Formula

Formula property value objects represent the result of evaluating a formula described in the
database's properties. These objects contain atype key and a key corresponding with the value oftype. The value is an object containing type-specific data. The type-specific data are described in the sections below.

PropertyTypeDescription
typestring (enum)The type of the formula result. Possible values are"string","number","boolean", and"date".

String formula

String formula property values contain an optional string within thestring property.

Number formula

Number formula property values contain an optional number within thenumber property.

Boolean formula

Boolean formula property values contain a boolean within theboolean property.

Date formula

Date formula property values contain an optionaldate property value within thedate property.

{  "Formula": {    "object": "property_item",    "id": "KpQq",    "type": "formula",    "formula": {      "type": "number",      "number": 1234    }  }}

Relation

Relation property value objects contain an array ofrelation property items with page references within therelation property. A page reference is an object with anid property which is a string value (UUIDv4) corresponding to a page ID in another database.

{  "Project": {    "object": "list",    "results": [      {        "object": "property_item",        "id": "vYdV",        "type": "relation",        "relation": {          "id": "535c3fb2-95e6-4b37-a696-036e5eac5cf6"        }      }    ],    "next_cursor": null,    "has_more": true,    "type": "property_item",    "property_item": {      "id": "vYdV",      "next_url": null,      "type": "relation",      "relation": {}    }  }}

Rollup

Rollup property value objects represent the result of evaluating a rollup described in the
data source's properties. The property is returned as alist object of typeproperty_item with a list ofrelation items used to computed the rollup underresults.

Arollup property item is also returned under theproperty_type key that describes the rollup aggregation and computed result.

In order to avoid timeouts, if the rollup has a with a large number of aggregations or properties the endpoint returns anext_cursor value that is used to determinate the aggregation valueso far for the subset of relations that have been paginated through.

Oncehas_more isfalse, then the final rollup value is returned. See thePagination documentation for more information on pagination in the Notion API.

Computing the values of following aggregations arenot supported. Instead the endpoint returns a list ofproperty_item objects for the rollup:

  • show_unique (Show unique values)
  • unique (Count unique values)
  • median(Median)
PropertyTypeDescription
typestring (enum)The type of rollup. Possible values are"number","date","array","unsupported" and"incomplete".
functionstring (enum)Describes the aggregation used.
Possible values include:count,count_values,empty,not_empty,unique,show_unique,percent_empty,percent_not_empty,sum,average,median,min,max,range,earliest_date,latest_date,date_range,checked,unchecked,percent_checked,percent_unchecked,count_per_group,percent_per_group,show_original

Number rollup

Number rollup property values contain a number within thenumber property.

Date rollup

Date rollup property values contain adate property value within thedate property.

Array rollup

Array rollup property values contain an array ofproperty_item objects within theresults property.

Incomplete rollup

Rollups with an aggregation with more than one page of aggregated results will return arollup object of type"incomplete". To obtain the final value paginate through the next values in the rollup using thenext_cursor ornext_url property.

{  "Rollup": {    "object": "list",    "results": [      {        "object": "property_item",        "id": "vYdV",        "type": "relation",        "relation": {          "id": "535c3fb2-95e6-4b37-a696-036e5eac5cf6"        }      }...    ],    "next_cursor": "1QaTunT5",    "has_more": true,    "type": "property_item",    "property_item": {      "id": "y}~p",      "next_url": "http://api.notion.com/v1/pages/0e5235bf86aa4efb93aa772cce7eab71/properties/y%7D~p?start_cursor=1QaTunT5&page_size=25",      "type": "rollup",      "rollup": {        "function": "sum",        "type": "incomplete",        "incomplete": {}      }    }  }}

People

People property value objects contain an array ofuser objects within thepeople property.

{  "Owners": {    "object": "property_item",    "id": "KpQq",    "type": "people",    "people": [      {        "object": "user",        "id": "285e5768-3fdc-4742-ab9e-125f9050f3b8",        "name": "Example Avo",        "avatar_url": null,        "type": "person",        "person": {          "email": "[email protected]"        }      }    ]  }}

Files

File property value objects contain an array of file references within thefiles property. A file reference is an object with aFile Object andname property, with a string value corresponding to a filename of the original file upload (e.g."Whole_Earth_Catalog.jpg").

{  "Files": {    "object": "property_item",    "id": "KpQq",    "type": "files",    "files": [      {        "type": "external",        "name": "Space Wallpaper",        "external": "https://website.domain/images/space.png"      }    ]  }}

Checkbox

Checkbox property value objects contain a boolean within thecheckbox property.

{  "Done?": {    "object": "property_item",    "id": "KpQq",    "type": "checkbox",    "checkbox": true  }}

URL

URL property value objects contain a non-empty string within theurl property. The string describes a web address (i.e."http://worrydream.com/EarlyHistoryOfSmalltalk/").

{  "Website": {    "object": "property_item",    "id": "KpQq",    "type": "url",    "url": "https://notion.so/notiondevs"  }}

Email

Email property value objects contain a string within theemail property. The string describes an email address (i.e."[email protected]").

{  "Shipper's Contact": {    "object": "property_item",    "id": "KpQq",    "type": "email",    "email": "[email protected]"  }}

Phone number

Phone number property value objects contain a string within thephone_number property. No structure is enforced.

{  "Shipper's No.": {    "object": "property_item",    "id": "KpQq",    "type": "phone_number",    "phone_number": "415-000-1111"  }}

Created time

Created time property value objects contain a string within thecreated_time property. The string contains the date and time when this page was created. It is formatted as anISO 8601 date time string (i.e."2020-03-17T19:10:04.968Z").

{  "Created Time": {    "object": "property_item",    "id": "KpQq",    "type": "create_time",  "created_time": "2020-03-17T19:10:04.968Z"  }}

Created by

Created by property value objects contain auser object within thecreated_by property. The user object describes the user who created this page.

{  "Created By": {    "created_by": {      "object": "user",      "id": "23345d4f-cf71-4a70-89a5-226c95a6eaae",      "name": "Test User",      "type": "person",      "person": {        "email": "[email protected]"      }    }  }}
{  "dsEa": {    "created_by": {"object": "user","id": "71e95936-2737-4e11-b03d-f174f6f13087"  }  }}

Last edited time

Last edited time property value objects contain a string within thelast_edited_time property. The string contains the date and time when this page was last updated. It is formatted as anISO 8601 date time string (i.e."2020-03-17T19:10:04.968Z").

{  "Last Edited Time": {  "last_edited_time": "2020-03-17T19:10:04.968Z"  }}
{  "as0w": {  "last_edited_time": "2020-03-17T19:10:04.968Z"  }}

Last edited by

Last edited by property value objects contain auser object within thelast_edited_by property. The user object describes the user who last updated this page.

{  "Last Edited By": {    "last_edited_by": {      "object": "user",      "id": "23345d4f-cf71-4a70-89a5-226c95a6eaae",      "name": "Test User",      "type": "person",      "person": {        "email": "[email protected]"      }    }  }}
{  "as12": {    "last_edited_by": {"object": "user","id": "71e95936-2737-4e11-b03d-f174f6f13087"  }  }}

[8]ページ先頭

©2009-2025 Movatter.jp