{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","properties":{"path":{"type":"object","properties":{"block_id":{"type":"string","minLength":1,"maxLength":2000}},"required":["block_id"],"additionalProperties":false},"data":{"anyOf":[{"anyOf":[{"type":"object","required":["embed"],"additionalProperties":false,"properties":{"embed":{"anyOf":[{"$ref":"#/$defs/updateMediaContentWithUrlAndCaptionRequest"},{"$ref":"#/$defs/updateEmbedFileUploadRequest"}]},"type":{"type":"string","const":"embed","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["bookmark"],"additionalProperties":false,"properties":{"bookmark":{"$ref":"#/$defs/updateMediaContentWithUrlAndCaptionRequest"},"type":{"type":"string","const":"bookmark","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["image"],"additionalProperties":false,"properties":{"image":{"$ref":"#/$defs/updateMediaContentWithFileAndCaptionRequest"},"type":{"type":"string","const":"image","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["video"],"additionalProperties":false,"properties":{"video":{"$ref":"#/$defs/updateMediaContentWithFileAndCaptionRequest"},"type":{"type":"string","const":"video","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["pdf"],"additionalProperties":false,"properties":{"pdf":{"$ref":"#/$defs/updateMediaContentWithFileAndCaptionRequest"},"type":{"type":"string","const":"pdf","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["file"],"additionalProperties":false,"properties":{"file":{"$ref":"#/$defs/updateMediaContentWithFileNameAndCaptionRequest"},"type":{"type":"string","const":"file","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["audio"],"additionalProperties":false,"properties":{"audio":{"$ref":"#/$defs/updateMediaContentWithFileAndCaptionRequest"},"type":{"type":"string","const":"audio","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["code"],"additionalProperties":false,"properties":{"code":{"type":"object","additionalProperties":false,"properties":{"rich_text":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}},"language":{"$ref":"#/$defs/languageRequest"},"caption":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}}},"maxProperties":100},"type":{"type":"string","const":"code","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["equation"],"additionalProperties":false,"properties":{"equation":{"$ref":"#/$defs/contentWithExpressionRequest"},"type":{"type":"string","const":"equation","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["divider"],"additionalProperties":false,"properties":{"divider":{"$ref":"#/$defs/emptyObject"},"type":{"type":"string","const":"divider","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["breadcrumb"],"additionalProperties":false,"properties":{"breadcrumb":{"$ref":"#/$defs/emptyObject"},"type":{"type":"string","const":"breadcrumb","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["tab"],"additionalProperties":false,"properties":{"tab":{"$ref":"#/$defs/emptyObject"},"type":{"type":"string","const":"tab","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["table_of_contents"],"additionalProperties":false,"properties":{"table_of_contents":{"type":"object","additionalProperties":false,"properties":{"color":{"$ref":"#/$defs/apiColor"}},"maxProperties":100},"type":{"type":"string","const":"table_of_contents","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["link_to_page"],"additionalProperties":false,"properties":{"link_to_page":{"anyOf":[{"type":"object","required":["page_id"],"additionalProperties":false,"properties":{"page_id":{"$ref":"#/$defs/idRequest"},"type":{"type":"string","const":"page_id","maxLength":64000}},"maxProperties":100},{"type":"object","required":["database_id"],"additionalProperties":false,"properties":{"database_id":{"$ref":"#/$defs/idRequest"},"type":{"type":"string","const":"database_id","maxLength":64000}},"maxProperties":100},{"type":"object","required":["comment_id"],"additionalProperties":false,"properties":{"comment_id":{"$ref":"#/$defs/idRequest"},"type":{"type":"string","const":"comment_id","maxLength":64000}},"maxProperties":100}]},"type":{"type":"string","const":"link_to_page","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["table_row"],"additionalProperties":false,"properties":{"table_row":{"$ref":"#/$defs/contentWithTableRowRequest"},"type":{"type":"string","const":"table_row","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["heading_1"],"additionalProperties":false,"properties":{"heading_1":{"$ref":"#/$defs/headerContentWithRichTextAndColorRequest"},"type":{"type":"string","const":"heading_1","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["heading_2"],"additionalProperties":false,"properties":{"heading_2":{"$ref":"#/$defs/headerContentWithRichTextAndColorRequest"},"type":{"type":"string","const":"heading_2","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["heading_3"],"additionalProperties":false,"properties":{"heading_3":{"$ref":"#/$defs/headerContentWithRichTextAndColorRequest"},"type":{"type":"string","const":"heading_3","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["heading_4"],"additionalProperties":false,"properties":{"heading_4":{"$ref":"#/$defs/headerContentWithRichTextAndColorRequest"},"type":{"type":"string","const":"heading_4","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["paragraph"],"additionalProperties":false,"properties":{"paragraph":{"$ref":"#/$defs/contentWithRichTextColorAndIconUpdateRequest"},"type":{"type":"string","const":"paragraph","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["bulleted_list_item"],"additionalProperties":false,"properties":{"bulleted_list_item":{"$ref":"#/$defs/contentWithRichTextAndColorRequest"},"type":{"type":"string","const":"bulleted_list_item","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["numbered_list_item"],"additionalProperties":false,"properties":{"numbered_list_item":{"$ref":"#/$defs/contentWithRichTextAndColorRequest"},"type":{"type":"string","const":"numbered_list_item","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["quote"],"additionalProperties":false,"properties":{"quote":{"$ref":"#/$defs/contentWithRichTextAndColorRequest"},"type":{"type":"string","const":"quote","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["to_do"],"additionalProperties":false,"properties":{"to_do":{"type":"object","properties":{"rich_text":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}},"checked":{"type":"boolean"},"color":{"$ref":"#/$defs/apiColor"}},"maxProperties":100},"type":{"type":"string","const":"to_do","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["toggle"],"additionalProperties":false,"properties":{"toggle":{"$ref":"#/$defs/contentWithRichTextAndColorRequest"},"type":{"type":"string","const":"toggle","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["template"],"additionalProperties":false,"properties":{"template":{"$ref":"#/$defs/contentWithRichTextRequest"},"type":{"type":"string","const":"template","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["callout"],"additionalProperties":false,"properties":{"callout":{"type":"object","properties":{"rich_text":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}},"icon":{"$ref":"#/$defs/pageIconRequest"},"color":{"$ref":"#/$defs/apiColor"}},"maxProperties":100},"type":{"type":"string","const":"callout","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["synced_block"],"additionalProperties":false,"properties":{"synced_block":{"type":"object","required":["synced_from"],"additionalProperties":false,"properties":{"synced_from":{"type":["object","null"],"required":["block_id"],"additionalProperties":false,"properties":{"block_id":{"$ref":"#/$defs/idRequest"},"type":{"type":"string","const":"block_id","maxLength":64000}}}},"maxProperties":100},"type":{"type":"string","const":"synced_block","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["table"],"additionalProperties":false,"properties":{"table":{"type":"object","additionalProperties":false,"properties":{"has_column_header":{"type":"boolean"},"has_row_header":{"type":"boolean"}},"maxProperties":100},"type":{"type":"string","const":"table","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100},{"type":"object","required":["column"],"additionalProperties":false,"properties":{"column":{"type":"object","additionalProperties":false,"properties":{"width_ratio":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1}},"maxProperties":100},"type":{"type":"string","const":"column","maxLength":64000},"in_trash":{"type":"boolean"}},"maxProperties":100}]},{"type":"object","additionalProperties":false,"properties":{"in_trash":{"type":"boolean"}},"maxProperties":100}]}},"required":["path","data"],"additionalProperties":false,"$defs":{"updateMediaContentWithUrlAndCaptionRequest":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","maxLength":64000},"caption":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}}},"maxProperties":100},"richTextItemRequest":{"allOf":[{"$ref":"#/$defs/richTextItemRequestCommon"},{"oneOf":[{"$ref":"#/$defs/textRichTextItemRequest"},{"$ref":"#/$defs/mentionRichTextItemRequest"},{"$ref":"#/$defs/equationRichTextItemRequest"}]}]},"richTextItemRequestCommon":{"type":"object","properties":{"annotations":{"$ref":"#/$defs/annotationRequest"}},"maxProperties":100},"annotationRequest":{"type":"object","properties":{"bold":{"type":"boolean"},"italic":{"type":"boolean"},"strikethrough":{"type":"boolean"},"underline":{"type":"boolean"},"code":{"type":"boolean"},"color":{"$ref":"#/$defs/apiColor"}},"maxProperties":100},"apiColor":{"type":"string","enum":["default","gray","brown","orange","yellow","green","blue","purple","pink","red","default_background","gray_background","brown_background","orange_background","yellow_background","green_background","blue_background","purple_background","pink_background","red_background"],"maxLength":64000},"textRichTextItemRequest":{"type":"object","required":["text"],"properties":{"type":{"type":"string","const":"text","maxLength":64000},"text":{"type":"object","required":["content"],"additionalProperties":false,"properties":{"content":{"type":"string","maxLength":2000},"link":{"oneOf":[{"type":"object","required":["url"],"properties":{"url":{"type":"string","maxLength":64000}},"maxProperties":100},{"type":"null"}]}},"maxProperties":100}},"maxProperties":100},"mentionRichTextItemRequest":{"type":"object","required":["mention"],"properties":{"type":{"type":"string","const":"mention","maxLength":64000},"mention":{"oneOf":[{"type":"object","required":["user"],"properties":{"type":{"type":"string","const":"user","maxLength":64000},"user":{"$ref":"#/$defs/partialUserObjectRequest"}},"maxProperties":100},{"type":"object","required":["date"],"properties":{"type":{"type":"string","const":"date","maxLength":64000},"date":{"$ref":"#/$defs/dateRequest"}},"maxProperties":100},{"type":"object","required":["page"],"properties":{"type":{"type":"string","const":"page","maxLength":64000},"page":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/$defs/idRequest"}},"maxProperties":100}},"maxProperties":100},{"type":"object","required":["database"],"properties":{"type":{"type":"string","const":"database","maxLength":64000},"database":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/$defs/idRequest"}},"maxProperties":100}},"maxProperties":100},{"type":"object","required":["template_mention"],"properties":{"type":{"type":"string","const":"template_mention","maxLength":64000},"template_mention":{"$ref":"#/$defs/templateMentionRequest"}},"maxProperties":100},{"type":"object","required":["custom_emoji"],"properties":{"type":{"type":"string","const":"custom_emoji","maxLength":64000},"custom_emoji":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/$defs/idRequest"},"name":{"type":"string","maxLength":64000},"url":{"type":"string","maxLength":64000}},"maxProperties":100}},"maxProperties":100}]}},"maxProperties":100},"partialUserObjectRequest":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/$defs/idRequest"},"object":{"type":"string","const":"user","maxLength":64000}},"maxProperties":100},"idRequest":{"type":"string","maxLength":64000},"dateRequest":{"type":"object","required":["start"],"additionalProperties":false,"properties":{"start":{"type":"string","maxLength":64000},"end":{"oneOf":[{"type":"string","maxLength":64000},{"type":"null"}]},"time_zone":{"oneOf":[{"$ref":"#/$defs/timeZoneRequest"},{"type":"null"}]}},"maxProperties":100},"timeZoneRequest":{"type":"string","maxLength":64000},"templateMentionRequest":{"oneOf":[{"$ref":"#/$defs/templateMentionDateTemplateMentionRequest"},{"$ref":"#/$defs/templateMentionUserTemplateMentionRequest"}]},"templateMentionDateTemplateMentionRequest":{"type":"object","required":["template_mention_date"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"template_mention_date","maxLength":64000},"template_mention_date":{"type":"string","enum":["today","now"],"maxLength":64000}},"maxProperties":100},"templateMentionUserTemplateMentionRequest":{"type":"object","required":["template_mention_user"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"template_mention_user","maxLength":64000},"template_mention_user":{"type":"string","const":"me","maxLength":64000}},"maxProperties":100},"equationRichTextItemRequest":{"type":"object","required":["equation"],"properties":{"type":{"type":"string","const":"equation","maxLength":64000},"equation":{"type":"object","required":["expression"],"properties":{"expression":{"type":"string","maxLength":64000}},"maxProperties":100}},"maxProperties":100},"updateEmbedFileUploadRequest":{"type":"object","required":["file_upload"],"additionalProperties":false,"properties":{"file_upload":{"$ref":"#/$defs/fileUploadIdRequest"},"caption":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}}},"maxProperties":100},"fileUploadIdRequest":{"type":"object","required":["id"],"additionalProperties":false,"properties":{"id":{"$ref":"#/$defs/idRequest"}},"maxProperties":100},"updateMediaContentWithFileAndCaptionRequest":{"type":"object","additionalProperties":false,"properties":{"caption":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}},"external":{"$ref":"#/$defs/externalFileRequest"},"file_upload":{"$ref":"#/$defs/fileUploadIdRequest"}},"maxProperties":100},"externalFileRequest":{"type":"object","required":["url"],"additionalProperties":false,"properties":{"url":{"$ref":"#/$defs/textRequest"}},"maxProperties":100},"textRequest":{"type":"string","minLength":1,"maxLength":2000},"updateMediaContentWithFileNameAndCaptionRequest":{"type":"object","additionalProperties":false,"properties":{"caption":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}},"external":{"$ref":"#/$defs/externalFileRequest"},"file_upload":{"$ref":"#/$defs/fileUploadIdRequest"},"name":{"$ref":"#/$defs/stringRequest"}},"maxProperties":100},"stringRequest":{"type":"string","minLength":1,"maxLength":100},"languageRequest":{"type":"string","enum":["abap","abc","agda","arduino","ascii art","assembly","bash","basic","bnf","c","c#","c++","clojure","coffeescript","coq","css","dart","dhall","diff","docker","ebnf","elixir","elm","erlang","f#","flow","fortran","gherkin","glsl","go","graphql","groovy","haskell","hcl","html","idris","java","javascript","json","julia","kotlin","latex","less","lisp","livescript","llvm ir","lua","makefile","markdown","markup","matlab","mathematica","mermaid","nix","notion formula","objective-c","ocaml","pascal","perl","php","plain text","powershell","prolog","protobuf","purescript","python","r","racket","reason","ruby","rust","sass","scala","scheme","scss","shell","smalltalk","solidity","sql","swift","toml","typescript","vb.net","verilog","vhdl","visual basic","webassembly","xml","yaml","java/c/c++/c#"],"maxLength":64000},"contentWithExpressionRequest":{"type":"object","required":["expression"],"additionalProperties":false,"properties":{"expression":{"type":"string","maxLength":64000}},"maxProperties":100},"emptyObject":{"type":"object","additionalProperties":false,"properties":{},"maxProperties":100},"contentWithTableRowRequest":{"type":"object","required":["cells"],"additionalProperties":false,"properties":{"cells":{"type":"array","maxItems":100,"items":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}}}},"maxProperties":100},"headerContentWithRichTextAndColorRequest":{"type":"object","required":["rich_text"],"additionalProperties":false,"properties":{"rich_text":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}},"color":{"$ref":"#/$defs/apiColor"},"is_toggleable":{"type":"boolean"}},"maxProperties":100},"contentWithRichTextColorAndIconUpdateRequest":{"type":"object","properties":{"rich_text":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}},"icon":{"$ref":"#/$defs/pageIconRequest"},"color":{"$ref":"#/$defs/apiColor"}},"maxProperties":100},"pageIconRequest":{"oneOf":[{"$ref":"#/$defs/fileUploadPageIconRequest"},{"$ref":"#/$defs/emojiPageIconRequest"},{"$ref":"#/$defs/externalPageIconRequest"},{"$ref":"#/$defs/customEmojiPageIconRequest"},{"$ref":"#/$defs/iconPageIconRequest"}]},"fileUploadPageIconRequest":{"type":"object","required":["file_upload"],"properties":{"type":{"type":"string","const":"file_upload","maxLength":64000},"file_upload":{"type":"object","required":["id"],"properties":{"id":{"type":"string","maxLength":64000}},"maxProperties":100}},"maxProperties":100},"emojiPageIconRequest":{"type":"object","required":["emoji"],"properties":{"type":{"type":"string","const":"emoji","maxLength":64000},"emoji":{"$ref":"#/$defs/emojiRequest"}},"maxProperties":100},"emojiRequest":{"type":"string","maxLength":64000},"externalPageIconRequest":{"type":"object","required":["external"],"properties":{"type":{"type":"string","const":"external","maxLength":64000},"external":{"type":"object","required":["url"],"properties":{"url":{"type":"string","maxLength":64000}},"maxProperties":100}},"maxProperties":100},"customEmojiPageIconRequest":{"type":"object","required":["custom_emoji"],"properties":{"type":{"type":"string","const":"custom_emoji","maxLength":64000},"custom_emoji":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/$defs/idRequest"},"name":{"type":"string","maxLength":64000},"url":{"type":"string","maxLength":64000}},"maxProperties":100}},"maxProperties":100},"iconPageIconRequest":{"type":"object","required":["icon"],"properties":{"type":{"type":"string","const":"icon","maxLength":64000},"icon":{"type":"object","required":["name"],"properties":{"name":{"$ref":"#/$defs/noticonName"},"color":{"$ref":"#/$defs/noticonColor"}},"maxProperties":100}},"maxProperties":100},"noticonName":{"type":"string","maxLength":64000},"noticonColor":{"type":"string","enum":["gray","lightgray","brown","yellow","orange","green","blue","purple","pink","red"],"maxLength":64000},"contentWithRichTextAndColorRequest":{"type":"object","required":["rich_text"],"additionalProperties":false,"properties":{"rich_text":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}},"color":{"$ref":"#/$defs/apiColor"}},"maxProperties":100},"contentWithRichTextRequest":{"type":"object","required":["rich_text"],"additionalProperties":false,"properties":{"rich_text":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}}},"maxProperties":100}}},"name":"Update a block","id":"notion.api.update-a-block","example":{"path":{"block_id":"00000000-0000-0000-0000-000000000001"},"data":{"embed":{}}},"maxRequests":1,"summary":false}}