{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","properties":{"data":{"type":"object","required":["parent","properties"],"properties":{"parent":{"$ref":"#/$defs/parentOfDataSourceRequest"},"properties":{"type":"object","additionalProperties":{"$ref":"#/$defs/propertyConfigurationRequest"},"maxProperties":100},"title":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/richTextItemRequest"}},"icon":{"oneOf":[{"$ref":"#/$defs/pageIconRequest"},{"type":"null"}]}},"maxProperties":100}},"required":["data"],"additionalProperties":false,"$defs":{"parentOfDataSourceRequest":{"type":"object","required":["database_id"],"properties":{"type":{"type":"string","const":"database_id","maxLength":64000},"database_id":{"$ref":"#/$defs/idRequest"}},"maxProperties":100},"idRequest":{"type":"string","maxLength":64000},"propertyConfigurationRequest":{"allOf":[{"$ref":"#/$defs/propertyConfigurationRequestCommon"},{"oneOf":[{"$ref":"#/$defs/numberPropertyConfigurationRequest"},{"$ref":"#/$defs/formulaPropertyConfigurationRequest"},{"$ref":"#/$defs/selectPropertyConfigurationRequest"},{"$ref":"#/$defs/multiSelectPropertyConfigurationRequest"},{"$ref":"#/$defs/statusPropertyConfigurationRequest"},{"$ref":"#/$defs/relationPropertyConfigurationRequest"},{"$ref":"#/$defs/rollupPropertyConfigurationRequest"},{"$ref":"#/$defs/uniqueIdPropertyConfigurationRequest"},{"$ref":"#/$defs/titlePropertyConfigurationRequest"},{"$ref":"#/$defs/richTextPropertyConfigurationRequest"},{"$ref":"#/$defs/urlPropertyConfigurationRequest"},{"$ref":"#/$defs/peoplePropertyConfigurationRequest"},{"$ref":"#/$defs/filesPropertyConfigurationRequest"},{"$ref":"#/$defs/emailPropertyConfigurationRequest"},{"$ref":"#/$defs/phoneNumberPropertyConfigurationRequest"},{"$ref":"#/$defs/datePropertyConfigurationRequest"},{"$ref":"#/$defs/checkboxPropertyConfigurationRequest"},{"$ref":"#/$defs/createdByPropertyConfigurationRequest"},{"$ref":"#/$defs/createdTimePropertyConfigurationRequest"},{"$ref":"#/$defs/lastEditedByPropertyConfigurationRequest"},{"$ref":"#/$defs/lastEditedTimePropertyConfigurationRequest"},{"$ref":"#/$defs/buttonPropertyConfigurationRequest"},{"$ref":"#/$defs/locationPropertyConfigurationRequest"},{"$ref":"#/$defs/verificationPropertyConfigurationRequest"},{"$ref":"#/$defs/lastVisitedTimePropertyConfigurationRequest"},{"$ref":"#/$defs/placePropertyConfigurationRequest"}]}]},"propertyConfigurationRequestCommon":{"type":"object","properties":{"description":{"oneOf":[{"$ref":"#/$defs/propertyDescriptionRequest"},{"type":"null"}]}},"maxProperties":100},"propertyDescriptionRequest":{"type":"string","minLength":1,"maxLength":280},"numberPropertyConfigurationRequest":{"type":"object","required":["number"],"properties":{"type":{"type":"string","const":"number","maxLength":64000},"number":{"type":"object","properties":{"format":{"$ref":"#/$defs/numberFormat"}},"maxProperties":100}},"maxProperties":100},"numberFormat":{"type":"string","maxLength":64000},"formulaPropertyConfigurationRequest":{"type":"object","required":["formula"],"properties":{"type":{"type":"string","const":"formula","maxLength":64000},"formula":{"type":"object","properties":{"expression":{"type":"string","maxLength":64000}},"maxProperties":100}},"maxProperties":100},"selectPropertyConfigurationRequest":{"type":"object","required":["select"],"properties":{"type":{"type":"string","const":"select","maxLength":64000},"select":{"type":"object","properties":{"options":{"type":"array","maxItems":100,"items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":64000},"color":{"$ref":"#/$defs/selectColor"},"description":{"oneOf":[{"type":"string","maxLength":64000},{"type":"null"}]}},"maxProperties":100}}},"maxProperties":100}},"maxProperties":100},"selectColor":{"type":"string","enum":["default","gray","brown","orange","yellow","green","blue","purple","pink","red"],"maxLength":64000},"multiSelectPropertyConfigurationRequest":{"type":"object","required":["multi_select"],"properties":{"type":{"type":"string","const":"multi_select","maxLength":64000},"multi_select":{"type":"object","properties":{"options":{"type":"array","maxItems":100,"items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":64000},"color":{"$ref":"#/$defs/selectColor"},"description":{"oneOf":[{"type":"string","maxLength":64000},{"type":"null"}]}},"maxProperties":100}}},"maxProperties":100}},"maxProperties":100},"statusPropertyConfigurationRequest":{"type":"object","required":["status"],"properties":{"type":{"type":"string","const":"status","maxLength":64000},"status":{"$ref":"#/$defs/statusPropertyConfigRequest"}},"maxProperties":100},"statusPropertyConfigRequest":{"type":"object","properties":{"options":{"$ref":"#/$defs/statusOptionRequestArray"}},"maxProperties":100},"statusOptionRequestArray":{"type":"array","maxItems":100,"items":{"$ref":"#/$defs/statusOptionRequest"}},"statusOptionRequest":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":64000},"color":{"$ref":"#/$defs/selectColor"},"description":{"oneOf":[{"type":"string","maxLength":64000},{"type":"null"}]},"group":{"$ref":"#/$defs/statusOptionGroup"}},"maxProperties":100},"statusOptionGroup":{"type":"string","enum":["To-do","In progress","Complete"],"maxLength":64000},"relationPropertyConfigurationRequest":{"type":"object","required":["relation"],"properties":{"type":{"type":"string","const":"relation","maxLength":64000},"relation":{"allOf":[{"type":"object","required":["data_source_id"],"properties":{"data_source_id":{"$ref":"#/$defs/idRequest"}},"maxProperties":100},{"oneOf":[{"type":"object","required":["single_property"],"properties":{"type":{"type":"string","const":"single_property","maxLength":64000},"single_property":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},{"type":"object","required":["dual_property"],"properties":{"type":{"type":"string","const":"dual_property","maxLength":64000},"dual_property":{"type":"object","properties":{"synced_property_id":{"type":"string","maxLength":64000},"synced_property_name":{"type":"string","maxLength":64000}},"maxProperties":100}},"maxProperties":100}]}]}},"maxProperties":100},"emptyObject":{"type":"object","additionalProperties":false,"properties":{},"maxProperties":100},"rollupPropertyConfigurationRequest":{"type":"object","required":["rollup"],"properties":{"type":{"type":"string","const":"rollup","maxLength":64000},"rollup":{"allOf":[{"type":"object","required":["function"],"properties":{"function":{"$ref":"#/$defs/rollupFunction"}},"maxProperties":100},{"oneOf":[{"type":"object","required":["relation_property_name","rollup_property_name"],"properties":{"relation_property_name":{"type":"string","maxLength":64000},"rollup_property_name":{"type":"string","maxLength":64000}},"maxProperties":100},{"type":"object","required":["relation_property_id","rollup_property_name"],"properties":{"relation_property_id":{"type":"string","maxLength":64000},"rollup_property_name":{"type":"string","maxLength":64000}},"maxProperties":100},{"type":"object","required":["relation_property_name","rollup_property_id"],"properties":{"relation_property_name":{"type":"string","maxLength":64000},"rollup_property_id":{"type":"string","maxLength":64000}},"maxProperties":100},{"type":"object","required":["relation_property_id","rollup_property_id"],"properties":{"relation_property_id":{"type":"string","maxLength":64000},"rollup_property_id":{"type":"string","maxLength":64000}},"maxProperties":100}]}]}},"maxProperties":100},"rollupFunction":{"type":"string","enum":["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"],"maxLength":64000},"uniqueIdPropertyConfigurationRequest":{"type":"object","required":["unique_id"],"properties":{"type":{"type":"string","const":"unique_id","maxLength":64000},"unique_id":{"type":"object","properties":{"prefix":{"oneOf":[{"type":"string","maxLength":64000},{"type":"null"}]}},"maxProperties":100}},"maxProperties":100},"titlePropertyConfigurationRequest":{"type":"object","required":["title"],"properties":{"type":{"type":"string","const":"title","maxLength":64000},"title":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"richTextPropertyConfigurationRequest":{"type":"object","required":["rich_text"],"properties":{"type":{"type":"string","const":"rich_text","maxLength":64000},"rich_text":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"urlPropertyConfigurationRequest":{"type":"object","required":["url"],"properties":{"type":{"type":"string","const":"url","maxLength":64000},"url":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"peoplePropertyConfigurationRequest":{"type":"object","required":["people"],"properties":{"type":{"type":"string","const":"people","maxLength":64000},"people":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"filesPropertyConfigurationRequest":{"type":"object","required":["files"],"properties":{"type":{"type":"string","const":"files","maxLength":64000},"files":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"emailPropertyConfigurationRequest":{"type":"object","required":["email"],"properties":{"type":{"type":"string","const":"email","maxLength":64000},"email":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"phoneNumberPropertyConfigurationRequest":{"type":"object","required":["phone_number"],"properties":{"type":{"type":"string","const":"phone_number","maxLength":64000},"phone_number":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"datePropertyConfigurationRequest":{"type":"object","required":["date"],"properties":{"type":{"type":"string","const":"date","maxLength":64000},"date":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"checkboxPropertyConfigurationRequest":{"type":"object","required":["checkbox"],"properties":{"type":{"type":"string","const":"checkbox","maxLength":64000},"checkbox":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"createdByPropertyConfigurationRequest":{"type":"object","required":["created_by"],"properties":{"type":{"type":"string","const":"created_by","maxLength":64000},"created_by":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"createdTimePropertyConfigurationRequest":{"type":"object","required":["created_time"],"properties":{"type":{"type":"string","const":"created_time","maxLength":64000},"created_time":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"lastEditedByPropertyConfigurationRequest":{"type":"object","required":["last_edited_by"],"properties":{"type":{"type":"string","const":"last_edited_by","maxLength":64000},"last_edited_by":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"lastEditedTimePropertyConfigurationRequest":{"type":"object","required":["last_edited_time"],"properties":{"type":{"type":"string","const":"last_edited_time","maxLength":64000},"last_edited_time":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"buttonPropertyConfigurationRequest":{"type":"object","required":["button"],"properties":{"type":{"type":"string","const":"button","maxLength":64000},"button":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"locationPropertyConfigurationRequest":{"type":"object","required":["location"],"properties":{"type":{"type":"string","const":"location","maxLength":64000},"location":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"verificationPropertyConfigurationRequest":{"type":"object","required":["verification"],"properties":{"type":{"type":"string","const":"verification","maxLength":64000},"verification":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"lastVisitedTimePropertyConfigurationRequest":{"type":"object","required":["last_visited_time"],"properties":{"type":{"type":"string","const":"last_visited_time","maxLength":64000},"last_visited_time":{"$ref":"#/$defs/emptyObject"}},"maxProperties":100},"placePropertyConfigurationRequest":{"type":"object","required":["place"],"properties":{"type":{"type":"string","const":"place","maxLength":64000},"place":{"$ref":"#/$defs/emptyObject"}},"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},"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},"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}}},"name":"Create a data source","id":"notion.api.create-a-database","example":{"data":{"parent":{"database_id":"fixture"},"properties":{}}},"maxRequests":1,"summary":false}}