mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update docs
This commit is contained in:
@@ -9,5 +9,9 @@ client.set_session('') # The user session to authenticate with
|
||||
account = Account(client)
|
||||
|
||||
result = account.update_prefs(
|
||||
prefs = {}
|
||||
prefs = {
|
||||
"language": "en",
|
||||
"timezone": "UTC",
|
||||
"darkTheme": True
|
||||
}
|
||||
)
|
||||
|
||||
@@ -12,6 +12,12 @@ result = databases.create_document(
|
||||
database_id = '<DATABASE_ID>',
|
||||
collection_id = '<COLLECTION_ID>',
|
||||
document_id = '<DOCUMENT_ID>',
|
||||
data = {},
|
||||
data = {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 30,
|
||||
"isAdmin": False
|
||||
},
|
||||
permissions = ["read("any")"] # optional
|
||||
)
|
||||
|
||||
@@ -13,5 +13,5 @@ result = databases.create_line_attribute(
|
||||
collection_id = '<COLLECTION_ID>',
|
||||
key = '',
|
||||
required = False,
|
||||
default = '' # optional
|
||||
default = [[1,2], [3, 4]] # optional
|
||||
)
|
||||
|
||||
@@ -13,5 +13,5 @@ result = databases.create_point_attribute(
|
||||
collection_id = '<COLLECTION_ID>',
|
||||
key = '',
|
||||
required = False,
|
||||
default = '' # optional
|
||||
default = [[1,2], [3, 4]] # optional
|
||||
)
|
||||
|
||||
@@ -13,5 +13,5 @@ result = databases.create_polygon_attribute(
|
||||
collection_id = '<COLLECTION_ID>',
|
||||
key = '',
|
||||
required = False,
|
||||
default = '' # optional
|
||||
default = [[1,2], [3, 4]] # optional
|
||||
)
|
||||
|
||||
@@ -13,6 +13,6 @@ result = databases.update_line_attribute(
|
||||
collection_id = '<COLLECTION_ID>',
|
||||
key = '',
|
||||
required = False,
|
||||
default = '', # optional
|
||||
default = [[1,2], [3, 4]], # optional
|
||||
new_key = '' # optional
|
||||
)
|
||||
|
||||
@@ -13,6 +13,6 @@ result = databases.update_point_attribute(
|
||||
collection_id = '<COLLECTION_ID>',
|
||||
key = '',
|
||||
required = False,
|
||||
default = '', # optional
|
||||
default = [[1,2], [3, 4]], # optional
|
||||
new_key = '' # optional
|
||||
)
|
||||
|
||||
@@ -13,6 +13,6 @@ result = databases.update_polygon_attribute(
|
||||
collection_id = '<COLLECTION_ID>',
|
||||
key = '',
|
||||
required = False,
|
||||
default = '', # optional
|
||||
default = [[1,2], [3, 4]], # optional
|
||||
new_key = '' # optional
|
||||
)
|
||||
|
||||
@@ -13,5 +13,5 @@ result = tables_db.create_line_column(
|
||||
table_id = '<TABLE_ID>',
|
||||
key = '',
|
||||
required = False,
|
||||
default = '' # optional
|
||||
default = [[1,2], [3, 4]] # optional
|
||||
)
|
||||
|
||||
@@ -13,5 +13,5 @@ result = tables_db.create_point_column(
|
||||
table_id = '<TABLE_ID>',
|
||||
key = '',
|
||||
required = False,
|
||||
default = '' # optional
|
||||
default = [[1,2], [3, 4]] # optional
|
||||
)
|
||||
|
||||
@@ -13,5 +13,5 @@ result = tables_db.create_polygon_column(
|
||||
table_id = '<TABLE_ID>',
|
||||
key = '',
|
||||
required = False,
|
||||
default = '' # optional
|
||||
default = [[1,2], [3, 4]] # optional
|
||||
)
|
||||
|
||||
@@ -12,6 +12,12 @@ result = tables_db.create_row(
|
||||
database_id = '<DATABASE_ID>',
|
||||
table_id = '<TABLE_ID>',
|
||||
row_id = '<ROW_ID>',
|
||||
data = {},
|
||||
data = {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 30,
|
||||
"isAdmin": False
|
||||
},
|
||||
permissions = ["read("any")"] # optional
|
||||
)
|
||||
|
||||
@@ -13,6 +13,6 @@ result = tables_db.update_line_column(
|
||||
table_id = '<TABLE_ID>',
|
||||
key = '',
|
||||
required = False,
|
||||
default = '', # optional
|
||||
default = [[1,2], [3, 4]], # optional
|
||||
new_key = '' # optional
|
||||
)
|
||||
|
||||
@@ -13,6 +13,6 @@ result = tables_db.update_point_column(
|
||||
table_id = '<TABLE_ID>',
|
||||
key = '',
|
||||
required = False,
|
||||
default = '', # optional
|
||||
default = [[1,2], [3, 4]], # optional
|
||||
new_key = '' # optional
|
||||
)
|
||||
|
||||
@@ -13,6 +13,6 @@ result = tables_db.update_polygon_column(
|
||||
table_id = '<TABLE_ID>',
|
||||
key = '',
|
||||
required = False,
|
||||
default = '', # optional
|
||||
default = [[1,2], [3, 4]], # optional
|
||||
new_key = '' # optional
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user