From ac0ebe0733a4509f8c090275d03efa595de7633b Mon Sep 17 00:00:00 2001 From: as Date: Sat, 21 Sep 2024 17:18:00 +0200 Subject: [PATCH] Add omitempty on Properties for PageUpdateRequest, legit for archiving a page --- page.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page.go b/page.go index d0be63b..f2bf6e6 100644 --- a/page.go +++ b/page.go @@ -133,7 +133,7 @@ type PageUpdateRequest struct { // The property values to update for the page. The keys are the names or IDs // of the property and the values are property values. If a page property ID // is not included, then it is not changed. - Properties Properties `json:"properties"` + Properties Properties `json:"properties,omitempty"` // Whether the page is archived (deleted). Set to true to archive a page. Set // to false to un-archive (restore) a page. Archived bool `json:"archived"`