ksonbin / in.zeromod.ksonbin.api / Bin / create
create
suspend fun <reified JSON :
Any
> create(data: JSON, collectionId:
String
? = null, private:
Boolean
= true, name:
String
? = null):
BinCreate
<JSON>
Using the CREATE API, you can Create Public and Private bins.
Parameters
data
- JSON (Any class with @Serializable annotated)
collectionId
- String? (Required only if you want to add a record to one of the Collections you created)
private
- Boolean (Required only if you want to mark the bin as Public)
name
- String? (Required only if you want to add a Name to your Bin)