File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public static class BlocksApiUrls
2424 public static class PagesApiUrls
2525 {
2626 public static string Create ( ) => $ "/v1/pages";
27- public static string UpdatePageProperties ( string pageId ) => $ "/v1/pages/{ pageId } ";
27+ public static string UpdateProperties ( string pageId ) => $ "/v1/pages/{ pageId } ";
2828 }
2929 }
3030}
Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ namespace Notion.Client
66 public interface IPagesClient
77 {
88 Task < RetrievedPage > CreateAsync ( CreatedPage page ) ;
9- Task < RetrievedPage > UpdatePagePropertiesAsync (
9+ Task < RetrievedPage > UpdatePropertiesAsync (
1010 string pageId ,
1111 IDictionary < string , PropertyValue > updatedProperties
1212 ) ;
13-
1413 }
1514}
Original file line number Diff line number Diff line change @@ -18,17 +18,17 @@ public async Task<RetrievedPage> CreateAsync(CreatedPage page)
1818 return await _client . PostAsync < RetrievedPage > ( PagesApiUrls . Create ( ) , page ) ;
1919 }
2020
21- public async Task < RetrievedPage > UpdatePagePropertiesAsync (
21+ public async Task < RetrievedPage > UpdatePropertiesAsync (
2222 string pageId ,
2323 IDictionary < string , PropertyValue > updatedProperties )
2424 {
25- var url = PagesApiUrls . UpdatePageProperties ( pageId ) ;
26- var body = new PageUpdatePropertiesParameters { Properties = updatedProperties } ;
25+ var url = PagesApiUrls . UpdateProperties ( pageId ) ;
26+ var body = new UpdatePropertiesParameters { Properties = updatedProperties } ;
2727
2828 return await _client . PatchAsync < RetrievedPage > ( url , body ) ;
2929 }
3030
31- private class PageUpdatePropertiesParameters
31+ private class UpdatePropertiesParameters
3232 {
3333 public IDictionary < string , PropertyValue > Properties { get ; set ; }
3434 }
You can’t perform that action at this time.
0 commit comments