mirror of
https://github.com/dstotijn/go-notion.git
synced 2025-06-15 00:05:04 +02:00
Rename UpdatePageProps
to UpdatePage
This commit is contained in:
@ -262,9 +262,9 @@ func (c *Client) CreatePage(ctx context.Context, params CreatePageParams) (page
|
||||
return page, nil
|
||||
}
|
||||
|
||||
// UpdatePageProps updates page property values for a page.
|
||||
// UpdatePage updates a page.
|
||||
// See: https://developers.notion.com/reference/patch-page
|
||||
func (c *Client) UpdatePageProps(ctx context.Context, pageID string, params UpdatePageParams) (page Page, err error) {
|
||||
func (c *Client) UpdatePage(ctx context.Context, pageID string, params UpdatePageParams) (page Page, err error) {
|
||||
if err := params.Validate(); err != nil {
|
||||
return Page{}, fmt.Errorf("notion: invalid page params: %w", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user