{
  "$id": "https://intentschema.org/profiles/com.notion/productivity.notes.note.update.v1.json",
  "id": "org.intentschema.productivity.notes.note.update.v1@com.notion.v1",
  "pins": "https://intentschema.org/intents/productivity/notes/note/update/v1.json",
  "title": "Notion note update profile",
  "description": "Notion profile for note update.",
  "constraints": {
    "properties": {
      "target": {
        "properties": {
          "system": {
            "const": "notion"
          }
        },
        "required": [
          "system"
        ]
      },
      "notion": {
        "type": "object",
        "properties": {
          "archived": {
            "type": "boolean"
          },
          "icon": {
            "type": "object"
          },
          "cover": {
            "type": "object"
          },
          "properties": {
            "type": "object"
          }
        }
      }
    }
  },
  "api": {
    "method": "PATCH",
    "path": "/v1/pages/{id}",
    "scopes": [],
    "docs": "https://developers.notion.com/reference/patch-page",
    "params": {
      "target.external_id": "page_id path param",
      "object.title": "properties.title",
      "object.tags": "properties.<tag-property>.multi_select",
      "notion.archived": "archived (set true to soft-delete)",
      "notion.icon": "icon",
      "notion.cover": "cover",
      "notion.properties": "properties"
    },
    "base_url": "https://api.notion.com"
  }
}
