Skip to content

Commit

Permalink
Add "after" param to AppendBlockChildrenRequest (#150)
Browse files Browse the repository at this point in the history
* Add "after" param to AppendBlockChildrenRequest

* Fix typo
  • Loading branch information
toancaro authored Jul 31, 2023
1 parent 2e9d97c commit 33625da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions block.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ func (bc *BlockClient) AppendChildren(ctx context.Context, id BlockID, requestBo
}

type AppendBlockChildrenRequest struct {
// Append new children after a specific block. If empty, new children with be appended to the bottom of the parent block.
After BlockID `json:"after,omitempty"`
// Child content to append to a container block as an array of block objects.
Children []Block `json:"children"`
}
Expand Down

0 comments on commit 33625da

Please sign in to comment.