diff --git a/docs/examples/1.8.x/client-android/java/account/update-prefs.md b/docs/examples/1.8.x/client-android/java/account/update-prefs.md index f1a16c7de0..4bd6940c61 100644 --- a/docs/examples/1.8.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.8.x/client-android/java/account/update-prefs.md @@ -9,7 +9,11 @@ Client client = new Client(context) Account account = new Account(client); account.updatePrefs( - mapOf( "a" to "b" ), // prefs + mapOf( + "language" to "en", + "timezone" to "UTC", + "darkTheme" to true + ), // prefs new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/client-android/java/databases/create-document.md b/docs/examples/1.8.x/client-android/java/databases/create-document.md index 4804d751e3..bd0b57ac4c 100644 --- a/docs/examples/1.8.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.8.x/client-android/java/databases/create-document.md @@ -12,7 +12,13 @@ databases.createDocument( "", // databaseId "", // collectionId "", // documentId - mapOf( "a" to "b" ), // data + mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), // data listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/client-android/java/tablesdb/create-row.md b/docs/examples/1.8.x/client-android/java/tablesdb/create-row.md index 12d1680b0f..8273573ddd 100644 --- a/docs/examples/1.8.x/client-android/java/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-android/java/tablesdb/create-row.md @@ -12,7 +12,13 @@ tablesDB.createRow( "", // databaseId "", // tableId "", // rowId - mapOf( "a" to "b" ), // data + mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), // data listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.8.x/client-android/kotlin/account/update-prefs.md index fdfed577ac..ded80e9462 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/update-prefs.md @@ -9,5 +9,9 @@ val client = Client(context) val account = Account(client) val result = account.updatePrefs( - prefs = mapOf( "a" to "b" ), + prefs = mapOf( + "language" to "en", + "timezone" to "UTC", + "darkTheme" to true + ), ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md index 849a636afb..7f0aaf81f4 100644 --- a/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md @@ -12,6 +12,12 @@ val result = databases.createDocument( databaseId = "", collectionId = "", documentId = "", - data = mapOf( "a" to "b" ), + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), permissions = listOf("read("any")"), // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tablesdb/create-row.md b/docs/examples/1.8.x/client-android/kotlin/tablesdb/create-row.md index 1a9cbdb488..eb44cc48d6 100644 --- a/docs/examples/1.8.x/client-android/kotlin/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-android/kotlin/tablesdb/create-row.md @@ -12,6 +12,12 @@ val result = tablesDB.createRow( databaseId = "", tableId = "", rowId = "", - data = mapOf( "a" to "b" ), + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), permissions = listOf("read("any")"), // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.8.x/client-apple/examples/account/update-prefs.md index fea527337b..c81f481f61 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-apple/examples/account/update-prefs.md @@ -7,6 +7,10 @@ let client = Client() let account = Account(client) let user = try await account.updatePrefs( - prefs: [:] + prefs: [ + "language": "en", + "timezone": "UTC", + "darkTheme": true + ] ) diff --git a/docs/examples/1.8.x/client-apple/examples/databases/create-document.md b/docs/examples/1.8.x/client-apple/examples/databases/create-document.md index 51adb64bb3..c044eee17a 100644 --- a/docs/examples/1.8.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-apple/examples/databases/create-document.md @@ -10,7 +10,13 @@ let document = try await databases.createDocument( databaseId: "", collectionId: "", documentId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/client-apple/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-apple/examples/tablesdb/create-row.md index 0972892585..2ee601340f 100644 --- a/docs/examples/1.8.x/client-apple/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-apple/examples/tablesdb/create-row.md @@ -10,7 +10,13 @@ let row = try await tablesDB.createRow( databaseId: "", tableId: "", rowId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.8.x/client-flutter/examples/account/update-prefs.md index 81fa362f89..a084c13e89 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/update-prefs.md @@ -7,5 +7,9 @@ Client client = Client() Account account = Account(client); User result = await account.updatePrefs( - prefs: {}, + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + }, ); diff --git a/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md index 27efc34580..3becbcf1fc 100644 --- a/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md @@ -10,6 +10,12 @@ Document result = await databases.createDocument( databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"], // optional ); diff --git a/docs/examples/1.8.x/client-flutter/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-flutter/examples/tablesdb/create-row.md index f546133b87..038bb2bac6 100644 --- a/docs/examples/1.8.x/client-flutter/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-flutter/examples/tablesdb/create-row.md @@ -10,6 +10,12 @@ Row result = await tablesDB.createRow( databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"], // optional ); diff --git a/docs/examples/1.8.x/client-graphql/examples/account/update-prefs.md b/docs/examples/1.8.x/client-graphql/examples/account/update-prefs.md index 57280247e4..8138cf0227 100644 --- a/docs/examples/1.8.x/client-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-graphql/examples/account/update-prefs.md @@ -1,6 +1,6 @@ mutation { accountUpdatePrefs( - prefs: "{}" + prefs: "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" ) { _id _createdAt diff --git a/docs/examples/1.8.x/client-graphql/examples/databases/create-document.md b/docs/examples/1.8.x/client-graphql/examples/databases/create-document.md index 4f525d6b1f..39e4bba1cb 100644 --- a/docs/examples/1.8.x/client-graphql/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-graphql/examples/databases/create-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-graphql/examples/tablesdb/create-row.md index 621e46a64e..c7d2ec7d03 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-graphql/examples/tablesdb/create-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "", tableId: "", rowId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-react-native/examples/account/update-prefs.md b/docs/examples/1.8.x/client-react-native/examples/account/update-prefs.md index 43fa9fc776..b4a8e0ab2e 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/update-prefs.md @@ -7,7 +7,11 @@ const client = new Client() const account = new Account(client); const result = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md index d0d25bd87d..e7cffc13d4 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md @@ -10,7 +10,13 @@ const result = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md b/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md index 8eb4387cfa..ddf43c9758 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md @@ -11,8 +11,8 @@ const result = await databases.decrementDocumentAttribute({ collectionId: '', documentId: '', attribute: '', - value: null, // optional - min: null // optional + value: 0, // optional + min: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md b/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md index 8cb3d816cb..c129c38a25 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md @@ -11,8 +11,8 @@ const result = await databases.incrementDocumentAttribute({ collectionId: '', documentId: '', attribute: '', - value: null, // optional - max: null // optional + value: 0, // optional + max: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md b/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md index 4a44d3ca5e..965c8d42cf 100644 --- a/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = await storage.createFile({ bucketId: '', fileId: '', - file: await pickSingle(), + file: InputFile.fromPath('/path/to/file', 'filename'), permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md index 43018476f3..a02a8376d5 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md index 6b47c18cf9..e00eeb84bf 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.decrementRowColumn({ tableId: '', rowId: '', column: '', - value: null, // optional - min: null // optional + value: 0, // optional + min: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md index 62b7dd0c21..d4b2cf98ad 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.incrementRowColumn({ tableId: '', rowId: '', column: '', - value: null, // optional - max: null // optional + value: 0, // optional + max: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-rest/examples/account/create.md b/docs/examples/1.8.x/client-rest/examples/account/create.md index 15bb386f41..fa06bfcc1a 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create.md @@ -7,6 +7,6 @@ X-Appwrite-Project: { "userId": "", "email": "email@example.com", - "password": , + "password": "", "name": "" } diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-password.md b/docs/examples/1.8.x/client-rest/examples/account/update-password.md index e05a1c2b7f..c26f18a4f3 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-password.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-password.md @@ -7,6 +7,6 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "password": , + "password": "", "oldPassword": "password" } diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md b/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md index 24f2d3bcb6..0d7e4eab0c 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md @@ -7,5 +7,9 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "prefs": {} + "prefs": { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } } diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md b/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md index 7d40ee79fe..68919c29fb 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md @@ -9,5 +9,5 @@ X-Appwrite-JWT: { "userId": "", "secret": "", - "password": + "password": "" } diff --git a/docs/examples/1.8.x/client-rest/examples/databases/create-document.md b/docs/examples/1.8.x/client-rest/examples/databases/create-document.md index e9b165e2ac..12f2159402 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/create-document.md @@ -8,6 +8,12 @@ X-Appwrite-JWT: { "documentId": "", - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"] } diff --git a/docs/examples/1.8.x/client-rest/examples/storage/create-file.md b/docs/examples/1.8.x/client-rest/examples/storage/create-file.md index 0f83797b70..150801a22f 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/create-file.md @@ -15,8 +15,7 @@ Content-Disposition: form-data; name="fileId" --cec8e8123c05ba25 Content-Disposition: form-data; name="file" -cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc -e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... --cec8e8123c05ba25 Content-Disposition: form-data; name="permissions[]" diff --git a/docs/examples/1.8.x/client-rest/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-rest/examples/tablesdb/create-row.md index 1f7943f10c..34d8ab5152 100644 --- a/docs/examples/1.8.x/client-rest/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-rest/examples/tablesdb/create-row.md @@ -8,6 +8,12 @@ X-Appwrite-JWT: { "rowId": "", - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"] } diff --git a/docs/examples/1.8.x/client-web/examples/account/update-prefs.md b/docs/examples/1.8.x/client-web/examples/account/update-prefs.md index 98ea84181a..8ca2678a7a 100644 --- a/docs/examples/1.8.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-web/examples/account/update-prefs.md @@ -7,7 +7,11 @@ const client = new Client() const account = new Account(client); const result = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/databases/create-document.md b/docs/examples/1.8.x/client-web/examples/databases/create-document.md index 5c561ab799..08606c9b4f 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/create-document.md @@ -10,7 +10,13 @@ const result = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md index aafe71f4a5..1dd1fe4241 100644 --- a/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/account/update-prefs.md b/docs/examples/1.8.x/console-web/examples/account/update-prefs.md index 6f80801e52..cebe1da948 100644 --- a/docs/examples/1.8.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/console-web/examples/account/update-prefs.md @@ -7,7 +7,11 @@ const client = new Client() const account = new Account(client); const result = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-document.md b/docs/examples/1.8.x/console-web/examples/databases/create-document.md index b4c5200d74..40fbd4ad85 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-document.md @@ -10,7 +10,13 @@ const result = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..3f8ef6dd9d --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-line-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..2e4e46ae6f --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-point-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createPointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..d25177d846 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-polygon-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createPolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..bceac57b93 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-line-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..50799cb639 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-point-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updatePointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..51d6364e8c --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-polygon-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updatePolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..f2229a1782 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-line-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.createLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..7240a8632e --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-point-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.createPointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..2908a1e88e --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.createPolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md index 135d3e7070..6123b5fc31 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..12f31b9092 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-line-column.md @@ -0,0 +1,18 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.updateLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..d811cc13b6 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-point-column.md @@ -0,0 +1,18 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.updatePointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..5a7b41eff6 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,18 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.updatePolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.8.x/server-dart/examples/account/update-prefs.md index f4533cbea6..4334383546 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-dart/examples/account/update-prefs.md @@ -8,5 +8,9 @@ Client client = Client() Account account = Account(client); User result = await account.updatePrefs( - prefs: {}, + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + }, ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-document.md b/docs/examples/1.8.x/server-dart/examples/databases/create-document.md index 1d58fc586c..e3bae98162 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-document.md @@ -11,6 +11,12 @@ Document result = await databases.createDocument( databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..ddbe06ccd1 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-line-attribute.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributeLine result = await databases.createLineAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..cc1656264c --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-point-attribute.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributePoint result = await databases.createPointAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..42050cc078 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-polygon-attribute.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributePolygon result = await databases.createPolygonAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..30252b2cf7 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-line-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributeLine result = await databases.updateLineAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..879e007e12 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-point-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributePoint result = await databases.updatePointAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..043596445e --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-polygon-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributePolygon result = await databases.updatePolygonAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..f1786d5554 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-line-column.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnLine result = await tablesDB.createLineColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..e6ddf73747 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-point-column.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnPoint result = await tablesDB.createPointColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..525a98ff26 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnPolygon result = await tablesDB.createPolygonColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-row.md index 15e4f8ea8d..c2f5dd8293 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-row.md @@ -11,6 +11,12 @@ Row result = await tablesDB.createRow( databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..6d8ed43143 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-line-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnLine result = await tablesDB.updateLineColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..ba0415b858 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-point-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnPoint result = await tablesDB.updatePointColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..7a5792d033 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnPolygon result = await tablesDB.updatePolygonColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.8.x/server-deno/examples/account/update-prefs.md index f7bb254503..96bc4ac6be 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-deno/examples/account/update-prefs.md @@ -8,5 +8,9 @@ const client = new Client() const account = new Account(client); const response = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-document.md b/docs/examples/1.8.x/server-deno/examples/databases/create-document.md index 784b7dd530..35be696eb2 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-document.md @@ -11,6 +11,12 @@ const response = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..65b20a5518 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-line-attribute.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..6ca0bfc3ea --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-point-attribute.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createPointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..65086b3702 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-polygon-attribute.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createPolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..051688199a --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-line-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..41ae3e51ee --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-point-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updatePointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..91882ba6e3 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-polygon-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updatePolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..cef681035f --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-line-column.md @@ -0,0 +1,16 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.createLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..9b63b7a228 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-point-column.md @@ -0,0 +1,16 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.createPointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..d5a2eae95b --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,16 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.createPolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md index dadb5ecfb0..fdb59a6b70 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md @@ -11,6 +11,12 @@ const response = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..fad46a3e2b --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-line-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.updateLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..6461b96fce --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-point-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.updatePointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..aa26d7b52b --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.updatePolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md index 0b348a9c74..80f42aaaf8 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md @@ -10,5 +10,9 @@ Client client = new Client() Account account = new Account(client); User result = await account.UpdatePrefs( - prefs: [object] + prefs: new { + language = "en", + timezone = "UTC", + darkTheme = true + } ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md index 52254e0c25..4a7444db7a 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md @@ -13,6 +13,12 @@ Document result = await databases.CreateDocument( databaseId: "", collectionId: "", documentId: "", - data: [object], + data: new { + username = "walter.obrien", + email = "walter.obrien@example.com", + fullName = "Walter O'Brien", + age = 30, + isAdmin = false + }, permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..fc834cd6cd --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-line-attribute.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributeLine result = await databases.CreateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..3f8c7d56c0 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-point-attribute.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributePoint result = await databases.CreatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..61ce8a14d5 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-polygon-attribute.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributePolygon result = await databases.CreatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..51e85a4d77 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-line-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributeLine result = await databases.UpdateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..20822287de --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-point-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributePoint result = await databases.UpdatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..5d5cd108f2 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-polygon-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributePolygon result = await databases.UpdatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..13a2cde7cb --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-line-column.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnLine result = await tablesDB.CreateLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..9c3946144b --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-point-column.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnPoint result = await tablesDB.CreatePointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..2787f9b423 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnPolygon result = await tablesDB.CreatePolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md index ec6255a11a..01a21b0dcd 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md @@ -13,6 +13,12 @@ Row result = await tablesDB.CreateRow( databaseId: "", tableId: "", rowId: "", - data: [object], + data: new { + username = "walter.obrien", + email = "walter.obrien@example.com", + fullName = "Walter O'Brien", + age = 30, + isAdmin = false + }, permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..ce04ab266c --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-line-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnLine result = await tablesDB.UpdateLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..e17ebb3178 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-point-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnPoint result = await tablesDB.UpdatePointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..4137a21174 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnPolygon result = await tablesDB.UpdatePolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/account/update-prefs.md b/docs/examples/1.8.x/server-go/examples/account/update-prefs.md index 94c223ff31..2091395fb5 100644 --- a/docs/examples/1.8.x/server-go/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-go/examples/account/update-prefs.md @@ -15,5 +15,9 @@ client := client.New( service := account.New(client) response, error := service.UpdatePrefs( - map[string]interface{}{}, + map[string]interface{}{ + "language": "en", + "timezone": "UTC", + "darkTheme": true + }, ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-document.md b/docs/examples/1.8.x/server-go/examples/databases/create-document.md index 78f0eac32c..ea6305a06e 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-go/examples/databases/create-document.md @@ -18,6 +18,12 @@ response, error := service.CreateDocument( "", "", "", - map[string]interface{}{}, + map[string]interface{}{ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, databases.WithCreateDocumentPermissions(interface{}{"read("any")"}), ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..172a4dfbdb --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-line-attribute.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.CreateLineAttribute( + "", + "", + "", + false, + databases.WithCreateLineAttributeDefault(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..105021720a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-point-attribute.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.CreatePointAttribute( + "", + "", + "", + false, + databases.WithCreatePointAttributeDefault(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..f3b596b689 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-polygon-attribute.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.CreatePolygonAttribute( + "", + "", + "", + false, + databases.WithCreatePolygonAttributeDefault(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..d6ad02967d --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-line-attribute.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.UpdateLineAttribute( + "", + "", + "", + false, + databases.WithUpdateLineAttributeDefault(""), + databases.WithUpdateLineAttributeNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..d26f5a1006 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-point-attribute.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.UpdatePointAttribute( + "", + "", + "", + false, + databases.WithUpdatePointAttributeDefault(""), + databases.WithUpdatePointAttributeNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..af29422e13 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-polygon-attribute.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.UpdatePolygonAttribute( + "", + "", + "", + false, + databases.WithUpdatePolygonAttributeDefault(""), + databases.WithUpdatePolygonAttributeNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..adbdeb2b86 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-line-column.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.CreateLineColumn( + "", + "", + "", + false, + tablesdb.WithCreateLineColumnDefault(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..a0f2b59fae --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-point-column.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.CreatePointColumn( + "", + "", + "", + false, + tablesdb.WithCreatePointColumnDefault(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..03ae57e71f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.CreatePolygonColumn( + "", + "", + "", + false, + tablesdb.WithCreatePolygonColumnDefault(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-row.md index 2441fa3dd8..596f11cf75 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-row.md @@ -18,6 +18,12 @@ response, error := service.CreateRow( "", "", "", - map[string]interface{}{}, + map[string]interface{}{ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, tablesdb.WithCreateRowPermissions(interface{}{"read("any")"}), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..d2056c2403 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-line-column.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.UpdateLineColumn( + "", + "", + "", + false, + tablesdb.WithUpdateLineColumnDefault(""), + tablesdb.WithUpdateLineColumnNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..4b5d38174a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-point-column.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.UpdatePointColumn( + "", + "", + "", + false, + tablesdb.WithUpdatePointColumnDefault(""), + tablesdb.WithUpdatePointColumnNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..81cd394e9a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.UpdatePolygonColumn( + "", + "", + "", + false, + tablesdb.WithUpdatePolygonColumnDefault(""), + tablesdb.WithUpdatePolygonColumnNewKey(""), +) diff --git a/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md b/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md index 57280247e4..8138cf0227 100644 --- a/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md @@ -1,6 +1,6 @@ mutation { accountUpdatePrefs( - prefs: "{}" + prefs: "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" ) { _id _createdAt diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-document.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-document.md index 4f525d6b1f..39e4bba1cb 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..3cb90718cd --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-line-attribute.md @@ -0,0 +1,19 @@ +mutation { + databasesCreateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..719c49272a --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-point-attribute.md @@ -0,0 +1,19 @@ +mutation { + databasesCreatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..3686981f25 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-polygon-attribute.md @@ -0,0 +1,19 @@ +mutation { + databasesCreatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..d04da21175 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-line-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..03cc5456b3 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-point-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..de5150e2aa --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-polygon-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..322c48a191 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-line-column.md @@ -0,0 +1,19 @@ +mutation { + tablesDBCreateLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..9c5d7c85d2 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-point-column.md @@ -0,0 +1,19 @@ +mutation { + tablesDBCreatePointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..a930675ee6 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,19 @@ +mutation { + tablesDBCreatePolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md index 621e46a64e..c7d2ec7d03 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "", tableId: "", rowId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..973bc4740c --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-line-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBUpdateLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..8cfb389679 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-point-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBUpdatePointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..ef0d58be0c --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBUpdatePolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.8.x/server-kotlin/java/account/update-prefs.md index 0e900d0a66..0b6893916b 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/update-prefs.md @@ -10,7 +10,11 @@ Client client = new Client() Account account = new Account(client); account.updatePrefs( - mapOf( "a" to "b" ), // prefs + mapOf( + "language" to "en", + "timezone" to "UTC", + "darkTheme" to true + ), // prefs new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md index 5231be33d6..d5e777d157 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md @@ -13,7 +13,13 @@ databases.createDocument( "", // databaseId "", // collectionId "", // documentId - mapOf( "a" to "b" ), // data + mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), // data listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-line-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-line-attribute.md new file mode 100644 index 0000000000..36f79b946d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-line-attribute.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Databases databases = new Databases(client); + +databases.createLineAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-point-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-point-attribute.md new file mode 100644 index 0000000000..5a8a39b0cc --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-point-attribute.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Databases databases = new Databases(client); + +databases.createPointAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..22ee4d5cdf --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-polygon-attribute.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Databases databases = new Databases(client); + +databases.createPolygonAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update-line-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-line-attribute.md new file mode 100644 index 0000000000..7c83476148 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-line-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateLineAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update-point-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-point-attribute.md new file mode 100644 index 0000000000..b0a233f678 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-point-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Databases databases = new Databases(client); + +databases.updatePointAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..1d365896a2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-polygon-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Databases databases = new Databases(client); + +databases.updatePolygonAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-line-column.md new file mode 100644 index 0000000000..64952912c2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-line-column.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.createLineColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-point-column.md new file mode 100644 index 0000000000..d0ddef983c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-point-column.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.createPointColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..3aa5487cc2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-polygon-column.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.createPolygonColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-row.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-row.md index 4145022015..6c7d84702d 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-row.md @@ -13,7 +13,13 @@ tablesDB.createRow( "", // databaseId "", // tableId "", // rowId - mapOf( "a" to "b" ), // data + mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), // data listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-line-column.md new file mode 100644 index 0000000000..a1a0c67f5d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-line-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.updateLineColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-point-column.md new file mode 100644 index 0000000000..45565063a0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-point-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.updatePointColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..d7757bd580 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-polygon-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.updatePolygonColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-prefs.md index dafee7c0e5..63e66ca44a 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-prefs.md @@ -10,5 +10,9 @@ val client = Client() val account = Account(client) val response = account.updatePrefs( - prefs = mapOf( "a" to "b" ) + prefs = mapOf( + "language" to "en", + "timezone" to "UTC", + "darkTheme" to true + ) ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md index 695fdbdfaa..1c1d628729 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md @@ -13,6 +13,12 @@ val response = databases.createDocument( databaseId = "", collectionId = "", documentId = "", - data = mapOf( "a" to "b" ), + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), permissions = listOf("read("any")") // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-line-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-line-attribute.md new file mode 100644 index 0000000000..187f875c6b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-line-attribute.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val databases = Databases(client) + +val response = databases.createLineAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-point-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-point-attribute.md new file mode 100644 index 0000000000..d6915c1f5b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-point-attribute.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val databases = Databases(client) + +val response = databases.createPointAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..0a22962525 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-polygon-attribute.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val databases = Databases(client) + +val response = databases.createPolygonAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-line-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-line-attribute.md new file mode 100644 index 0000000000..c4b515ad47 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-line-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateLineAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "", // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-point-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-point-attribute.md new file mode 100644 index 0000000000..02bca873d7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-point-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val databases = Databases(client) + +val response = databases.updatePointAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "", // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..b8c0fc94a0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-polygon-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val databases = Databases(client) + +val response = databases.updatePolygonAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "", // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-line-column.md new file mode 100644 index 0000000000..0993eed919 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-line-column.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.createLineColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-point-column.md new file mode 100644 index 0000000000..e18bfc34ed --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-point-column.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.createPointColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..2f8ffd8125 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-polygon-column.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.createPolygonColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-row.md index 6a5b188166..774800d8f4 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-row.md @@ -13,6 +13,12 @@ val response = tablesDB.createRow( databaseId = "", tableId = "", rowId = "", - data = mapOf( "a" to "b" ), + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), permissions = listOf("read("any")") // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-line-column.md new file mode 100644 index 0000000000..05781dd6dd --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-line-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.updateLineColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-point-column.md new file mode 100644 index 0000000000..947b4410d6 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-point-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.updatePointColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..b9da6350f6 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-polygon-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.updatePolygonColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-prefs.md index 113f8678df..ba41cf807e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/update-prefs.md @@ -8,5 +8,9 @@ const client = new sdk.Client() const account = new sdk.Account(client); const result = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md index 39442d1cb7..175e06301e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md @@ -11,6 +11,12 @@ const result = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..36584b9ee2 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..9aba8c3eb7 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-point-attribute.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createPointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..34e1c84708 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-polygon-attribute.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createPolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..7d04a6eb1e --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-line-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..092f85cc5a --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-point-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updatePointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..04c1467cde --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-polygon-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updatePolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..c9d2782104 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-line-column.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.createLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..ec29e1dfae --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-point-column.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.createPointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..2adda2eaa2 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.createPolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md index aa9242301e..29ddab6652 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md @@ -11,6 +11,12 @@ const result = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..68b86dabdc --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.updateLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..c1484992a2 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-point-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.updatePointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..0805b4131e --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.updatePolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-php/examples/account/update-prefs.md b/docs/examples/1.8.x/server-php/examples/account/update-prefs.md index 698da0fd8a..f6a1003099 100644 --- a/docs/examples/1.8.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-php/examples/account/update-prefs.md @@ -11,5 +11,9 @@ $client = (new Client()) $account = new Account($client); $result = $account->updatePrefs( - prefs: [] + prefs: [ + 'language' => 'en', + 'timezone' => 'UTC', + 'darkTheme' => true + ] ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-document.md b/docs/examples/1.8.x/server-php/examples/databases/create-document.md index bf1ee3f62a..9f2e8f3643 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-php/examples/databases/create-document.md @@ -14,6 +14,12 @@ $result = $databases->createDocument( databaseId: '', collectionId: '', documentId: '', - data: [], + data: [ + 'username' => 'walter.obrien', + 'email' => 'walter.obrien@example.com', + 'fullName' => 'Walter O'Brien', + 'age' => 30, + 'isAdmin' => false + ], permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..5d4f968a4c --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-line-attribute.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createLineAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..1c8cdb508e --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-point-attribute.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createPointAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..0608d33f4f --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-polygon-attribute.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createPolygonAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..a5de5459ae --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-line-attribute.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateLineAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..0499663762 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-point-attribute.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updatePointAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..99c63f19a2 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-polygon-attribute.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updatePolygonAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..daab57e198 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-line-column.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->createLineColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..6b8cf1d0ae --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-point-column.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->createPointColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..11147466f9 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->createPolygonColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-row.md index 0002b79852..fa5137b99e 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-row.md @@ -14,6 +14,12 @@ $result = $tablesDB->createRow( databaseId: '', tableId: '', rowId: '', - data: [], + data: [ + 'username' => 'walter.obrien', + 'email' => 'walter.obrien@example.com', + 'fullName' => 'Walter O'Brien', + 'age' => 30, + 'isAdmin' => false + ], permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..ac2584d6e3 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-line-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->updateLineColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..159f893a52 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-point-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->updatePointColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..3f6f3e82fb --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->updatePolygonColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/account/update-prefs.md b/docs/examples/1.8.x/server-python/examples/account/update-prefs.md index e2ac7a28c1..8981af837a 100644 --- a/docs/examples/1.8.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-python/examples/account/update-prefs.md @@ -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 + } ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-document.md b/docs/examples/1.8.x/server-python/examples/databases/create-document.md index 1eaf0246f3..3d7dee1a4f 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/create-document.md @@ -12,6 +12,12 @@ result = databases.create_document( database_id = '', collection_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 ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..3521cc90b7 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-line-attribute.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +databases = Databases(client) + +result = databases.create_line_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..8a808c444a --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-point-attribute.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +databases = Databases(client) + +result = databases.create_point_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..478a369210 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-polygon-attribute.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +databases = Databases(client) + +result = databases.create_polygon_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..378e5a9bc6 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-line-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +databases = Databases(client) + +result = databases.update_line_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '', # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..a7d96d0b47 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-point-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +databases = Databases(client) + +result = databases.update_point_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '', # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..b6ac782d48 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-polygon-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +databases = Databases(client) + +result = databases.update_polygon_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '', # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..9c6a1b7615 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-line-column.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.create_line_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..4a9e92b504 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-point-column.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.create_point_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..6863fdd815 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.create_polygon_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-row.md index 69fee14914..d4c1cdad14 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-row.md @@ -12,6 +12,12 @@ result = tables_db.create_row( database_id = '', table_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 ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..b1a6475599 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-line-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.update_line_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..47c94395c7 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-point-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.update_point_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..a38acbaf04 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.update_polygon_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-rest/examples/account/create.md b/docs/examples/1.8.x/server-rest/examples/account/create.md index 15bb386f41..fa06bfcc1a 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create.md @@ -7,6 +7,6 @@ X-Appwrite-Project: { "userId": "", "email": "email@example.com", - "password": , + "password": "", "name": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-password.md b/docs/examples/1.8.x/server-rest/examples/account/update-password.md index e05a1c2b7f..c26f18a4f3 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-password.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-password.md @@ -7,6 +7,6 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "password": , + "password": "", "oldPassword": "password" } diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md b/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md index 24f2d3bcb6..0d7e4eab0c 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md @@ -7,5 +7,9 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "prefs": {} + "prefs": { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } } diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md b/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md index 7d40ee79fe..68919c29fb 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md @@ -9,5 +9,5 @@ X-Appwrite-JWT: { "userId": "", "secret": "", - "password": + "password": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md index fb11c03cbd..b394a1779e 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": false, "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md index 3d0e718634..18e2a718d0 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md @@ -6,8 +6,8 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": , + "default": "", "array": false } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-document.md b/docs/examples/1.8.x/server-rest/examples/databases/create-document.md index e4ba6ec1ff..57c38f0ba7 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-document.md @@ -9,6 +9,12 @@ X-Appwrite-JWT: { "documentId": "", - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"] } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md index 02b7095d64..1fdf1510cf 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": "email@example.com", "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md index a921e10c5f..8cfd0d1dde 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "elements": [], "required": false, "default": "", diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md index ea9dde56ce..238c079c09 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "min": 0, "max": 0, diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-index.md b/docs/examples/1.8.x/server-rest/examples/databases/create-index.md index c78bdc37f9..cf9f1a8dae 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-index.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "type": "key", "attributes": [], "orders": [], diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md index cce3a3f265..485af8eb4c 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "min": 0, "max": 0, diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md index 80afccb4c1..f9368e0f79 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md @@ -6,8 +6,8 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": , + "default": "", "array": false } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..429a219f20 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-line-attribute.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/line HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": "", + "required": false, + "default": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..e6ba1f791e --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-point-attribute.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/point HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": "", + "required": false, + "default": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..62299b9754 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-polygon-attribute.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/polygon HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": "", + "required": false, + "default": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md index d9e6c6441c..34b5afb865 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md @@ -9,7 +9,7 @@ X-Appwrite-Key: "relatedCollectionId": "", "type": "oneToOne", "twoWay": false, - "key": , - "twoWayKey": , + "key": "", + "twoWayKey": "", "onDelete": "cascade" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md index 5591ca8d8a..880fd04417 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "size": 1, "required": false, "default": "", diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md index 4ee9595717..d1f8629a4b 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": "https://example.com", "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md index 75f3d66b50..aeac097a06 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": false, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md index 59a477aca7..26f3c4e9f2 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": "", + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md index 08257e8906..3852754227 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": "email@example.com", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md index 8e69a703ea..003c0a2a21 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md @@ -9,5 +9,5 @@ X-Appwrite-Key: "elements": [], "required": false, "default": "", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md index 214567660d..8ceffcaa2d 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md @@ -10,5 +10,5 @@ X-Appwrite-Key: "min": 0, "max": 0, "default": 0, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md index 1f566c1369..0386cbd470 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md @@ -10,5 +10,5 @@ X-Appwrite-Key: "min": 0, "max": 0, "default": 0, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md index 31bc18c587..7909f960c0 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": "", + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..fe044fae0d --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-line-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/line/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "", + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..6f095e11ca --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-point-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/point/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "", + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..b5624b3800 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-polygon-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/polygon/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "", + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md index 3cb7d4f679..2461ff3053 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md @@ -7,5 +7,5 @@ X-Appwrite-Key: { "onDelete": "cascade", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md index 2026b854a9..e7debaa46f 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md @@ -9,5 +9,5 @@ X-Appwrite-Key: "required": false, "default": "", "size": 1, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md index 4f90c7ade3..4318ab4564 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": "https://example.com", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md index f68e54dedc..9366ab01d9 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md @@ -19,8 +19,7 @@ Content-Disposition: form-data; name="commands" --cec8e8123c05ba25 Content-Disposition: form-data; name="code" -cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc -e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... --cec8e8123c05ba25 Content-Disposition: form-data; name="activate" diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create.md b/docs/examples/1.8.x/server-rest/examples/functions/create.md index 1f034e60a4..2bccb0db4a 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create.md @@ -11,7 +11,7 @@ X-Appwrite-Key: "runtime": "node-14.5", "execute": ["any"], "events": [], - "schedule": , + "schedule": "", "timeout": 1, "enabled": false, "logging": false, @@ -23,5 +23,5 @@ X-Appwrite-Key: "providerBranch": "", "providerSilentMode": false, "providerRootDirectory": "", - "specification": + "specification": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/functions/update.md b/docs/examples/1.8.x/server-rest/examples/functions/update.md index 40329e5580..cbaa3d62f8 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/update.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/update.md @@ -10,7 +10,7 @@ X-Appwrite-Key: "runtime": "node-14.5", "execute": ["any"], "events": [], - "schedule": , + "schedule": "", "timeout": 1, "enabled": false, "logging": false, @@ -22,5 +22,5 @@ X-Appwrite-Key: "providerBranch": "", "providerSilentMode": false, "providerRootDirectory": "", - "specification": + "specification": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md index b6c1392bb2..01888007f4 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md @@ -17,5 +17,5 @@ X-Appwrite-Key: "attachments": [], "draft": false, "html": false, - "scheduledAt": + "scheduledAt": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md index 08ba0357fe..a70702c014 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md @@ -21,7 +21,7 @@ X-Appwrite-Key: "tag": "", "badge": 0, "draft": false, - "scheduledAt": , + "scheduledAt": "", "contentAvailable": false, "critical": false, "priority": "normal" diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md index 82926e2a82..51c4350c1c 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md @@ -12,5 +12,5 @@ X-Appwrite-Key: "users": [], "targets": [], "draft": false, - "scheduledAt": + "scheduledAt": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md index 97f3911ed1..0e1cd9b984 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md @@ -15,6 +15,6 @@ X-Appwrite-Key: "html": false, "cc": [], "bcc": [], - "scheduledAt": , + "scheduledAt": "", "attachments": [] } diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md index 438ef373e5..b3b953bc31 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md @@ -20,7 +20,7 @@ X-Appwrite-Key: "tag": "", "badge": 0, "draft": false, - "scheduledAt": , + "scheduledAt": "", "contentAvailable": false, "critical": false, "priority": "normal" diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md index a917e270f7..be246dfa41 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md @@ -11,5 +11,5 @@ X-Appwrite-Key: "targets": [], "content": "", "draft": false, - "scheduledAt": + "scheduledAt": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md index 669ac50a75..226642f091 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md @@ -24,8 +24,7 @@ Content-Disposition: form-data; name="outputDirectory" --cec8e8123c05ba25 Content-Disposition: form-data; name="code" -cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc -e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... --cec8e8123c05ba25 Content-Disposition: form-data; name="activate" diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create.md b/docs/examples/1.8.x/server-rest/examples/sites/create.md index 52b4d87219..23ac46eb67 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create.md @@ -23,5 +23,5 @@ X-Appwrite-Key: "providerBranch": "", "providerSilentMode": false, "providerRootDirectory": "", - "specification": + "specification": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update.md b/docs/examples/1.8.x/server-rest/examples/sites/update.md index 370984721f..08ebe17fb8 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update.md @@ -22,5 +22,5 @@ X-Appwrite-Key: "providerBranch": "", "providerSilentMode": false, "providerRootDirectory": "", - "specification": + "specification": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/storage/create-file.md b/docs/examples/1.8.x/server-rest/examples/storage/create-file.md index 086fd6dc72..055ed38ec0 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/create-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/create-file.md @@ -16,8 +16,7 @@ Content-Disposition: form-data; name="fileId" --cec8e8123c05ba25 Content-Disposition: form-data; name="file" -cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc -e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... --cec8e8123c05ba25 Content-Disposition: form-data; name="permissions[]" diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-boolean-column.md index 8450b65435..7e7fdbeb92 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-boolean-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-boolean-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": false, "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-datetime-column.md index 73d80272f9..c6fa72a1b1 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-datetime-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-datetime-column.md @@ -6,8 +6,8 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": , + "default": "", "array": false } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-email-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-email-column.md index 0d1d81c482..e65b46d1b7 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-email-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-email-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": "email@example.com", "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-enum-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-enum-column.md index 6b39abb92d..edcdd402f4 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-enum-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-enum-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "elements": [], "required": false, "default": "", diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-float-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-float-column.md index e890c595d0..14c0e61370 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-float-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-float-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "min": 0, "max": 0, diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-index.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-index.md index baa06e815f..63e8daa511 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-index.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "type": "key", "columns": [], "orders": [], diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-integer-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-integer-column.md index f34cf14965..2c0bef6b86 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-integer-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-integer-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "min": 0, "max": 0, diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-ip-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-ip-column.md index 10a849d073..d7b8c1f5ae 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-ip-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-ip-column.md @@ -6,8 +6,8 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": , + "default": "", "array": false } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..7c11cc2b6c --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-line-column.md @@ -0,0 +1,12 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/line HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": "", + "required": false, + "default": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..c199a421fb --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-point-column.md @@ -0,0 +1,12 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/point HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": "", + "required": false, + "default": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..76ddade7b5 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,12 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/polygon HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": "", + "required": false, + "default": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-relationship-column.md index 8dffdd30a2..3032dc051d 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-relationship-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-relationship-column.md @@ -9,7 +9,7 @@ X-Appwrite-Key: "relatedTableId": "", "type": "oneToOne", "twoWay": false, - "key": , - "twoWayKey": , + "key": "", + "twoWayKey": "", "onDelete": "cascade" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-row.md index d15cee6065..3c42d0f172 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-row.md @@ -9,6 +9,12 @@ X-Appwrite-JWT: { "rowId": "", - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"] } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-string-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-string-column.md index 6e3f7e21cd..919ad6a2e0 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-string-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-string-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "size": 1, "required": false, "default": "", diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-url-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-url-column.md index 55e9774e51..f5627e22cb 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-url-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-url-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": "https://example.com", "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-boolean-column.md index 7e1f55b6bb..a06d826ac1 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-boolean-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-boolean-column.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": false, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-datetime-column.md index 0063dc1b15..0feea207c1 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-datetime-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-datetime-column.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": "", + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-email-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-email-column.md index 8e7c1ad01f..9955db12bc 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-email-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-email-column.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": "email@example.com", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-enum-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-enum-column.md index 343026a9ef..346d320024 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-enum-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-enum-column.md @@ -9,5 +9,5 @@ X-Appwrite-Key: "elements": [], "required": false, "default": "", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-float-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-float-column.md index 0756262cfd..9dc14f3d0f 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-float-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-float-column.md @@ -10,5 +10,5 @@ X-Appwrite-Key: "min": 0, "max": 0, "default": 0, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-integer-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-integer-column.md index 252627eb02..763c74fda6 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-integer-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-integer-column.md @@ -10,5 +10,5 @@ X-Appwrite-Key: "min": 0, "max": 0, "default": 0, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-ip-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-ip-column.md index e43959f511..3336cfd7f5 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-ip-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-ip-column.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": "", + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..69ffb8db16 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-line-column.md @@ -0,0 +1,12 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "", + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..d93ad4a514 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-point-column.md @@ -0,0 +1,12 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/point/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "", + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..19a8a22fc8 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,12 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/polygon/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "", + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-relationship-column.md index fde5191383..04af7914cb 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-relationship-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-relationship-column.md @@ -7,5 +7,5 @@ X-Appwrite-Key: { "onDelete": "cascade", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-string-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-string-column.md index a21b5e7fd1..a9345aabed 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-string-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-string-column.md @@ -9,5 +9,5 @@ X-Appwrite-Key: "required": false, "default": "", "size": 1, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-url-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-url-column.md index c5d7001454..7a7149fafa 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-url-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-url-column.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": "https://example.com", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md b/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md index 3d884e2c5d..712e843fbf 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md @@ -6,5 +6,5 @@ X-Appwrite-Project: X-Appwrite-Key: { - "expire": + "expire": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/update.md b/docs/examples/1.8.x/server-rest/examples/tokens/update.md index ab58a4842a..a98ed5ef0b 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/update.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/update.md @@ -6,5 +6,5 @@ X-Appwrite-Project: X-Appwrite-Key: { - "expire": + "expire": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/users/create.md b/docs/examples/1.8.x/server-rest/examples/users/create.md index b638e6511e..d27b436580 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create.md @@ -9,6 +9,6 @@ X-Appwrite-Key: "userId": "", "email": "email@example.com", "phone": "+12065550100", - "password": , + "password": "", "name": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-password.md b/docs/examples/1.8.x/server-rest/examples/users/update-password.md index 40220f80d5..6f689670e5 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-password.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-password.md @@ -6,5 +6,5 @@ X-Appwrite-Project: X-Appwrite-Key: { - "password": + "password": "" } diff --git a/docs/examples/1.8.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.8.x/server-ruby/examples/account/update-prefs.md index ecfe4f4988..7e4311d9c6 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/update-prefs.md @@ -10,5 +10,9 @@ client = Client.new account = Account.new(client) result = account.update_prefs( - prefs: {} + prefs: { + "language" => "en", + "timezone" => "UTC", + "darkTheme" => true + } ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md index e6831084a1..22ce5745fd 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md @@ -13,6 +13,12 @@ result = databases.create_document( database_id: '', collection_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 ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..798097367b --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-line-attribute.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_line_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..1e852a7baf --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-point-attribute.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_point_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..a9399808c7 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-polygon-attribute.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_polygon_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..34bfd9a1e0 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-line-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_line_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '', # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..bc33d4daf6 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-point-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_point_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '', # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..04a3d9e824 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-polygon-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_polygon_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '', # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..e70b2111d8 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-line-column.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.create_line_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..5f2e046d31 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-point-column.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.create_point_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..86a18522b0 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.create_polygon_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md index 5b66bc4cf4..5e19136676 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md @@ -13,6 +13,12 @@ result = tables_db.create_row( database_id: '', table_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 ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..7f71e18231 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-line-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.update_line_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..ee32b54a1b --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-point-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.update_point_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..48c68a11ea --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.update_polygon_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.8.x/server-swift/examples/account/update-prefs.md index 53bf623469..cc7b5e6860 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-swift/examples/account/update-prefs.md @@ -8,6 +8,10 @@ let client = Client() let account = Account(client) let user = try await account.updatePrefs( - prefs: [:] + prefs: [ + "language": "en", + "timezone": "UTC", + "darkTheme": true + ] ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-document.md b/docs/examples/1.8.x/server-swift/examples/databases/create-document.md index daeaf144e1..cc25fd8df8 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-document.md @@ -11,7 +11,13 @@ let document = try await databases.createDocument( databaseId: "", collectionId: "", documentId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..38e7a7d13a --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-line-attribute.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let databases = Databases(client) + +let attributeLine = try await databases.createLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..bd204071ce --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-point-attribute.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let databases = Databases(client) + +let attributePoint = try await databases.createPointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..9799c08177 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-polygon-attribute.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let databases = Databases(client) + +let attributePolygon = try await databases.createPolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..d7e7612c51 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-line-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let databases = Databases(client) + +let attributeLine = try await databases.updateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..8907cd0cd8 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-point-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let databases = Databases(client) + +let attributePoint = try await databases.updatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..35da75bffb --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-polygon-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let databases = Databases(client) + +let attributePolygon = try await databases.updatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..6d776f9a22 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-line-column.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnLine = try await tablesDB.createLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..53ed8b45f9 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-point-column.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnPoint = try await tablesDB.createPointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..1c692be280 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnPolygon = try await tablesDB.createPolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-row.md index 31e0ea9bc1..0c59a65755 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-row.md @@ -11,7 +11,13 @@ let row = try await tablesDB.createRow( databaseId: "", tableId: "", rowId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..b04fd74c6e --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-line-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnLine = try await tablesDB.updateLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..b2885de919 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-point-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnPoint = try await tablesDB.updatePointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..8ce6d2077f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnPolygon = try await tablesDB.updatePolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +) + diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php index a7aa2607e5..cf38bac63b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php @@ -97,7 +97,7 @@ class Create extends DocumentCreate ->param('tableId', '', new UID(), 'Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). Make sure to define columns before creating rows.') ->param('data', [], new JSON(), 'Row data as JSON object.', true, example: '{"username":"walter.obrien","email":"walter.obrien@example.com","fullName":"Walter O\'Brien","age":30,"isAdmin":false}') ->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE, [Database::PERMISSION_READ, Database::PERMISSION_UPDATE, Database::PERMISSION_DELETE, Database::PERMISSION_WRITE]), 'An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).', true) - ->param('rows', [], fn (array $plan) => new ArrayList(new JSON(), $plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH), 'Array of documents data as JSON objects.', true, ['plan']) + ->param('rows', [], fn (array $plan) => new ArrayList(new JSON(), $plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH), 'Array of rows data as JSON objects.', true, ['plan']) ->inject('response') ->inject('dbForProject') ->inject('user')