ksonbin / in.zeromod.ksonbin.api / Collection / update
update
suspend fun update(collectionID:
String
, name:
String
, schemaDocId:
String
? = null, removeSchemaDoc:
Boolean
= false):
CollectionUpdate
Using the COLLECTIONS UPDATE API, you can UPDATE Collections name for now. We might add more meta data to the Collections which you can use the Update API for.
Parameters
collectionID
- String
name
- String
schemaDocId
- String? (Required only if you want to attach a Schema Doc to the Collection)
removeSchemaDoc
- Boolean (Required only if you want to detach a Schema Doc from the Collection)
Return CollectionUpdate