1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-06-15 00:05:04 +02:00

Add "Update block" endpoint

This commit is contained in:
David Stotijn
2021-12-18 14:19:51 +01:00
parent 801d8f7cc9
commit 2ebac2e1b2
3 changed files with 229 additions and 1 deletions

View File

@ -10,10 +10,11 @@ import (
type Block struct {
Object string `json:"object"`
ID string `json:"id,omitempty"`
Type BlockType `json:"type"`
Type BlockType `json:"type,omitempty"`
CreatedTime *time.Time `json:"created_time,omitempty"`
LastEditedTime *time.Time `json:"last_edited_time,omitempty"`
HasChildren bool `json:"has_children,omitempty"`
Archived *bool `json:"archived,omitempty"`
Paragraph *RichTextBlock `json:"paragraph,omitempty"`
Heading1 *Heading `json:"heading_1,omitempty"`