Notion · Schema

Parent

A Parent object represents the parent of a page, database, or block. The parent can be a workspace, page, database, or block.

CollaborationDatabaseIdeasNotesProductivityProjectsT1TasksWikiWorkspace

Properties

Name Type Description
type string The type of parent.
database_id string The ID of the parent database. Present when type is "database_id".
page_id string The ID of the parent page. Present when type is "page_id".
block_id string The ID of the parent block. Present when type is "block_id".
workspace boolean Always true when the parent is the workspace. Present when type is "workspace".
View JSON Schema on GitHub

JSON Schema

notion-parent-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Parent",
  "title": "Parent",
  "type": "object",
  "description": "A Parent object represents the parent of a page, database, or block. The parent can be a workspace, page, database, or block.",
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of parent.",
      "enum": [
        "database_id",
        "page_id",
        "block_id",
        "workspace"
      ]
    },
    "database_id": {
      "type": "string",
      "format": "uuid",
      "description": "The ID of the parent database. Present when type is \"database_id\"."
    },
    "page_id": {
      "type": "string",
      "format": "uuid",
      "description": "The ID of the parent page. Present when type is \"page_id\"."
    },
    "block_id": {
      "type": "string",
      "format": "uuid",
      "description": "The ID of the parent block. Present when type is \"block_id\"."
    },
    "workspace": {
      "type": "boolean",
      "description": "Always true when the parent is the workspace. Present when type is \"workspace\"."
    }
  },
  "required": [
    "type"
  ]
}