diff --git a/bigbone-rx/src/main/kotlin/social/bigbone/rx/RxListMethods.kt b/bigbone-rx/src/main/kotlin/social/bigbone/rx/RxListMethods.kt
index f7516f9cb..048dca878 100644
--- a/bigbone-rx/src/main/kotlin/social/bigbone/rx/RxListMethods.kt
+++ b/bigbone-rx/src/main/kotlin/social/bigbone/rx/RxListMethods.kt
@@ -35,13 +35,15 @@ class RxListMethods(client: MastodonClient) {
* Create a new list.
* @param title The title of the list to be created.
* @param repliesPolicy One of [MastodonList.RepliesPolicy], defaults to [MastodonList.RepliesPolicy.List].
+ * @param exclusive Whether members of this list need to get removed from the “Home” feed.
* @see Mastodon API documentation: methods/lists/#create
*/
@JvmOverloads
fun createList(
title: String,
- repliesPolicy: MastodonList.RepliesPolicy = MastodonList.RepliesPolicy.LIST
- ): Single = Single.fromCallable { listMethods.createList(title, repliesPolicy).execute() }
+ repliesPolicy: MastodonList.RepliesPolicy? = null,
+ exclusive: Boolean? = null
+ ): Single = Single.fromCallable { listMethods.createList(title, repliesPolicy, exclusive).execute() }
/**
* Change the title of a list, or which replies to show.
diff --git a/bigbone/src/main/kotlin/social/bigbone/api/method/ListMethods.kt b/bigbone/src/main/kotlin/social/bigbone/api/method/ListMethods.kt
index b7b3cd29e..5f2cb85fb 100644
--- a/bigbone/src/main/kotlin/social/bigbone/api/method/ListMethods.kt
+++ b/bigbone/src/main/kotlin/social/bigbone/api/method/ListMethods.kt
@@ -41,19 +41,22 @@ class ListMethods(private val client: MastodonClient) {
* Create a new list.
* @param title The title of the list to be created.
* @param repliesPolicy One of [MastodonList.RepliesPolicy], defaults to [MastodonList.RepliesPolicy.List].
+ * @param exclusive Whether members of this list need to get removed from the “Home” feed.
* @see Mastodon API documentation: methods/lists/#create
*/
@JvmOverloads
fun createList(
title: String,
- repliesPolicy: MastodonList.RepliesPolicy = MastodonList.RepliesPolicy.LIST
+ repliesPolicy: MastodonList.RepliesPolicy? = null,
+ exclusive: Boolean? = null
): MastodonRequest {
return client.getMastodonRequest(
endpoint = "api/v1/lists",
method = MastodonClient.Method.POST,
parameters = Parameters().apply {
append("title", title)
- append("replies_policy", repliesPolicy.name.lowercase())
+ repliesPolicy?.let { append("replies_policy", repliesPolicy.name.lowercase()) }
+ exclusive?.let { append("exclusive", exclusive) }
}
)
}
diff --git a/docs/api-coverage/lists.md b/docs/api-coverage/lists.md
index d416bea7b..474bd1852 100644
--- a/docs/api-coverage/lists.md
+++ b/docs/api-coverage/lists.md
@@ -29,8 +29,8 @@ View and manage lists. See also: /api/v1/timelines/list/id for loading a list ti
POST /api/v1/lists Create a list
-
-
Property exclusive is missing which determines “whether members of this list need to get removed from the ‘Home’ feed”