Skip to content

Commit fd23264

Browse files
Add support to create, update inline databases
1 parent 9d6052a commit fd23264

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

Src/Notion.Client/Api/Databases/RequestParams/DatabasesCreateParameters/DatabasesCreateParameters.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ public class DatabasesCreateParameters : IDatabasesCreateBodyParameters, IDataba
1919

2020
[JsonProperty("cover")]
2121
public FileObject Cover { get; set; }
22+
23+
public bool? IsInline { get; set; }
2224
}
2325
}

Src/Notion.Client/Api/Databases/RequestParams/DatabasesCreateParameters/IDatabasesCreateBodyParameters.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ public interface IDatabasesCreateBodyParameters
1313

1414
[JsonProperty("title")]
1515
List<RichTextBaseInput> Title { get; set; }
16+
17+
[JsonProperty("is_inline")]
18+
bool? IsInline { get; set; }
1619
}
1720
}

Src/Notion.Client/Api/Databases/RequestParams/DatabasesUpdateParameters/DatabasesUpdateParameters.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ public interface IDatabasesUpdateBodyParameters
1616

1717
[JsonProperty("cover")]
1818
FileObject Cover { get; set; }
19+
20+
[JsonProperty("is_inline")]
21+
bool? IsInline { get; set; }
1922
}
2023

2124
public class DatabasesUpdateParameters : IDatabasesUpdateBodyParameters
@@ -24,5 +27,6 @@ public class DatabasesUpdateParameters : IDatabasesUpdateBodyParameters
2427
public List<RichTextBaseInput> Title { get; set; }
2528
public IPageIcon Icon { get; set; }
2629
public FileObject Cover { get; set; }
30+
public bool? IsInline { get; set; }
2731
}
2832
}

Src/Notion.Client/Models/Database/Database.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@ public class Database : IObject
3636
/// </summary>
3737
[JsonProperty("url")]
3838
public string Url { get; set; }
39+
40+
[JsonProperty("is_inline")]
41+
public bool IsInline { get; set; }
3942
}
4043
}

0 commit comments

Comments
 (0)