@@ -450,6 +450,8 @@ open class Databases: Service {
450450 /// - permissions: [String] (optional)
451451 /// - documentSecurity: Bool (optional)
452452 /// - enabled: Bool (optional)
453+ /// - attributes: [Any] (optional)
454+ /// - indexes: [Any] (optional)
453455 /// - Throws: Exception if the request fails
454456 /// - Returns: AppwriteModels.Collection
455457 ///
@@ -460,7 +462,9 @@ open class Databases: Service {
460462 name: String ,
461463 permissions: [ String ] ? = nil ,
462464 documentSecurity: Bool ? = nil ,
463- enabled: Bool ? = nil
465+ enabled: Bool ? = nil ,
466+ attributes: [ Any ] ? = nil ,
467+ indexes: [ Any ] ? = nil
464468 ) async throws -> AppwriteModels . Collection {
465469 let apiPath : String = " /databases/{databaseId}/collections "
466470 . replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -470,7 +474,9 @@ open class Databases: Service {
470474 " name " : name,
471475 " permissions " : permissions,
472476 " documentSecurity " : documentSecurity,
473- " enabled " : enabled
477+ " enabled " : enabled,
478+ " attributes " : attributes,
479+ " indexes " : indexes
474480 ]
475481
476482 let apiHeaders : [ String : String ] = [
0 commit comments