From 9ee318de3c0472dbcd38bd95e4c345be352c5767 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 2 Feb 2026 15:34:32 +0530 Subject: [PATCH 1/6] feat: release array param enums support to all sdks --- app/config/sdks.php | 32 ++++++++++++++--------------- docs/sdks/android/CHANGELOG.md | 4 ++++ docs/sdks/apple/CHANGELOG.md | 4 ++++ docs/sdks/dart/CHANGELOG.md | 4 ++++ docs/sdks/deno/CHANGELOG.md | 4 ++++ docs/sdks/dotnet/CHANGELOG.md | 4 ++++ docs/sdks/flutter/CHANGELOG.md | 4 ++++ docs/sdks/kotlin/CHANGELOG.md | 4 ++++ docs/sdks/markdown/CHANGELOG.md | 4 ++++ docs/sdks/nodejs/CHANGELOG.md | 6 +++++- docs/sdks/php/CHANGELOG.md | 4 ++++ docs/sdks/python/CHANGELOG.md | 4 ++++ docs/sdks/react-native/CHANGELOG.md | 4 ++++ docs/sdks/ruby/CHANGELOG.md | 4 ++++ docs/sdks/swift/CHANGELOG.md | 4 ++++ docs/sdks/web/CHANGELOG.md | 4 ++++ 16 files changed, 77 insertions(+), 17 deletions(-) diff --git a/app/config/sdks.php b/app/config/sdks.php index bada949903..5fad9466a2 100644 --- a/app/config/sdks.php +++ b/app/config/sdks.php @@ -11,7 +11,7 @@ return [ [ 'key' => 'web', 'name' => 'Web', - 'version' => '21.5.0', + 'version' => '22.0.0', 'url' => 'https://github.com/appwrite/sdk-for-web', 'package' => 'https://www.npmjs.com/package/appwrite', 'enabled' => true, @@ -60,7 +60,7 @@ return [ [ 'key' => 'flutter', 'name' => 'Flutter', - 'version' => '20.3.3', + 'version' => '21.0.0', 'url' => 'https://github.com/appwrite/sdk-for-flutter', 'package' => 'https://pub.dev/packages/appwrite', 'enabled' => true, @@ -79,7 +79,7 @@ return [ [ 'key' => 'apple', 'name' => 'Apple', - 'version' => '13.5.0', + 'version' => '14.0.0', 'url' => 'https://github.com/appwrite/sdk-for-apple', 'package' => 'https://github.com/appwrite/sdk-for-apple', 'enabled' => true, @@ -117,7 +117,7 @@ return [ 'key' => 'android', 'name' => 'Android', 'namespace' => 'io.appwrite', - 'version' => '11.4.0', + 'version' => '12.0.0', 'url' => 'https://github.com/appwrite/sdk-for-android', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android', 'enabled' => true, @@ -140,7 +140,7 @@ return [ [ 'key' => 'react-native', 'name' => 'React Native', - 'version' => '0.19.0', + 'version' => '0.20.0', 'url' => 'https://github.com/appwrite/sdk-for-react-native', 'package' => 'https://npmjs.com/package/react-native-appwrite', 'enabled' => true, @@ -208,7 +208,7 @@ return [ [ 'key' => 'web', 'name' => 'Console', - 'version' => '0.2.0', + 'version' => '0.3.0', 'url' => '', 'package' => '', 'enabled' => true, @@ -227,7 +227,7 @@ return [ [ 'key' => 'cli', 'name' => 'Command Line', - 'version' => '13.1.0', + 'version' => '14.0.0', 'url' => 'https://github.com/appwrite/sdk-for-cli', 'package' => 'https://www.npmjs.com/package/appwrite-cli', 'enabled' => true, @@ -253,7 +253,7 @@ return [ [ 'key' => 'markdown', 'name' => 'Markdown', - 'version' => '0.1.0', + 'version' => '0.2.0', 'url' => 'https://github.com/appwrite/sdk-for-md.git', 'package' => 'https://www.npmjs.com/package/@appwrite.io/docs', 'enabled' => true, @@ -283,7 +283,7 @@ return [ [ 'key' => 'nodejs', 'name' => 'Node.js', - 'version' => '21.1.0', + 'version' => '22.0.0', 'url' => 'https://github.com/appwrite/sdk-for-node', 'package' => 'https://www.npmjs.com/package/node-appwrite', 'enabled' => true, @@ -302,7 +302,7 @@ return [ [ 'key' => 'php', 'name' => 'PHP', - 'version' => '19.1.0', + 'version' => '20.0.0', 'url' => 'https://github.com/appwrite/sdk-for-php', 'package' => 'https://packagist.org/packages/appwrite/appwrite', 'enabled' => true, @@ -321,7 +321,7 @@ return [ [ 'key' => 'python', 'name' => 'Python', - 'version' => '14.1.0', + 'version' => '15.0.0', 'url' => 'https://github.com/appwrite/sdk-for-python', 'package' => 'https://pypi.org/project/appwrite/', 'enabled' => true, @@ -340,7 +340,7 @@ return [ [ 'key' => 'ruby', 'name' => 'Ruby', - 'version' => '20.1.0', + 'version' => '21.0.0', 'url' => 'https://github.com/appwrite/sdk-for-ruby', 'package' => 'https://rubygems.org/gems/appwrite', 'enabled' => true, @@ -378,7 +378,7 @@ return [ [ 'key' => 'dotnet', 'name' => '.NET', - 'version' => '0.24.0', + 'version' => '0.25.0', 'url' => 'https://github.com/appwrite/sdk-for-dotnet', 'package' => 'https://www.nuget.org/packages/Appwrite', 'enabled' => true, @@ -397,7 +397,7 @@ return [ [ 'key' => 'dart', 'name' => 'Dart', - 'version' => '20.1.1', + 'version' => '21.0.0', 'url' => 'https://github.com/appwrite/sdk-for-dart', 'package' => 'https://pub.dev/packages/dart_appwrite', 'enabled' => true, @@ -417,7 +417,7 @@ return [ 'key' => 'kotlin', 'name' => 'Kotlin', 'namespace' => 'io.appwrite', - 'version' => '13.1.0', + 'version' => '14.0.0', 'url' => 'https://github.com/appwrite/sdk-for-kotlin', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin', 'enabled' => true, @@ -440,7 +440,7 @@ return [ [ 'key' => 'swift', 'name' => 'Swift', - 'version' => '14.1.0', + 'version' => '15.0.0', 'url' => 'https://github.com/appwrite/sdk-for-swift', 'package' => 'https://github.com/appwrite/sdk-for-swift', 'enabled' => true, diff --git a/docs/sdks/android/CHANGELOG.md b/docs/sdks/android/CHANGELOG.md index 870ba79bfe..a74d0d034d 100644 --- a/docs/sdks/android/CHANGELOG.md +++ b/docs/sdks/android/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 12.0.0 + +* Add array-based enum parameters (e.g., `permissions: List`). + ## 11.4.0 * Add `getScreenshot` method to `Avatars` service diff --git a/docs/sdks/apple/CHANGELOG.md b/docs/sdks/apple/CHANGELOG.md index 7f4141cc34..22a55196d3 100644 --- a/docs/sdks/apple/CHANGELOG.md +++ b/docs/sdks/apple/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 14.0.0 + +* Add array-based enum parameters (e.g., `permissions: [BrowserPermission]`). + ## 13.5.0 * Add `getScreenshot` method to `Avatars` service diff --git a/docs/sdks/dart/CHANGELOG.md b/docs/sdks/dart/CHANGELOG.md index 9f5ade774a..732001ecd7 100644 --- a/docs/sdks/dart/CHANGELOG.md +++ b/docs/sdks/dart/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 21.0.0 + +* Add array-based enum parameters (e.g., `permissions: List`). + ## 20.1.1 * Fix boolean parameter not handled correctly in Client requests diff --git a/docs/sdks/deno/CHANGELOG.md b/docs/sdks/deno/CHANGELOG.md index 893f49d511..882fe3af76 100644 --- a/docs/sdks/deno/CHANGELOG.md +++ b/docs/sdks/deno/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 16.0.0 + +* Add array-based enum parameters (e.g., `permissions: BrowserPermission[]`). + ## 15.1.0 * Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service diff --git a/docs/sdks/dotnet/CHANGELOG.md b/docs/sdks/dotnet/CHANGELOG.md index 092bfc1ec3..2940390df0 100644 --- a/docs/sdks/dotnet/CHANGELOG.md +++ b/docs/sdks/dotnet/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 0.25.0 + +* Add array-based enum parameters (e.g., `permissions: IReadOnlyList`). + ## 0.24.0 * Added ability to create columns and indexes synchronously while creating a table diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index 3be014dfc5..84adfbff11 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 21.0.0 + +* Add array-based enum parameters (e.g., `permissions: List`). + ## 20.3.3 * Fix boolean parameter not handled correctly in Client requests diff --git a/docs/sdks/kotlin/CHANGELOG.md b/docs/sdks/kotlin/CHANGELOG.md index a850801431..9713daba23 100644 --- a/docs/sdks/kotlin/CHANGELOG.md +++ b/docs/sdks/kotlin/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 14.0.0 + +* Add array-based enum parameters (e.g., `permissions: List`). + ## 13.1.0 * Added ability to create columns and indexes synchronously while creating a table diff --git a/docs/sdks/markdown/CHANGELOG.md b/docs/sdks/markdown/CHANGELOG.md index bbfc68354e..f657f583b6 100644 --- a/docs/sdks/markdown/CHANGELOG.md +++ b/docs/sdks/markdown/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 0.2.0 + +* Document array-based enum parameters in Markdown examples (e.g., `permissions: BrowserPermission[]`). + ## 0.1.0 * Initial release diff --git a/docs/sdks/nodejs/CHANGELOG.md b/docs/sdks/nodejs/CHANGELOG.md index da425adfc5..864ca38025 100644 --- a/docs/sdks/nodejs/CHANGELOG.md +++ b/docs/sdks/nodejs/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 22.0.0 + +* Add array-based enum parameters (e.g., `permissions: BrowserPermission[]`). + ## 21.1.0 * Added ability to create columns and indexes synchronously while creating a table @@ -96,4 +100,4 @@ * Rename `templateBranch` to `templateVersion` in `createFunction()`. * Rename `downloadDeployment()` to `getDeploymentDownload()` -> You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`. \ No newline at end of file +> You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`. diff --git a/docs/sdks/php/CHANGELOG.md b/docs/sdks/php/CHANGELOG.md index b94ebcc753..14cf753df8 100644 --- a/docs/sdks/php/CHANGELOG.md +++ b/docs/sdks/php/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 20.0.0 + +* Add array-based enum parameters (e.g., `permissions: array`). + ## 19.1.0 * Added ability to create columns and indexes synchronously while creating a table diff --git a/docs/sdks/python/CHANGELOG.md b/docs/sdks/python/CHANGELOG.md index 160d5aa86c..27567bb78f 100644 --- a/docs/sdks/python/CHANGELOG.md +++ b/docs/sdks/python/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 15.0.0 + +* Add array-based enum parameters (e.g., `permissions: list[BrowserPermission]`). + ## 14.1.0 * Added ability to create columns and indexes synchronously while creating a table diff --git a/docs/sdks/react-native/CHANGELOG.md b/docs/sdks/react-native/CHANGELOG.md index 8ab9bcca43..02d4efe0ca 100644 --- a/docs/sdks/react-native/CHANGELOG.md +++ b/docs/sdks/react-native/CHANGELOG.md @@ -1,5 +1,9 @@ # Change log +## 0.20.0 + +* Add array-based enum parameters (e.g., `permissions: BrowserPermission[]`). + ## 0.19.0 * Add `getScreenshot` method to `Avatars` service diff --git a/docs/sdks/ruby/CHANGELOG.md b/docs/sdks/ruby/CHANGELOG.md index 61856a150b..3c19c0f119 100644 --- a/docs/sdks/ruby/CHANGELOG.md +++ b/docs/sdks/ruby/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 21.0.0 + +* Add array-based enum parameters (e.g., `permissions: Array`). + ## 20.1.0 * Added ability to create columns and indexes synchronously while creating a table diff --git a/docs/sdks/swift/CHANGELOG.md b/docs/sdks/swift/CHANGELOG.md index 4be643592d..e0fbda9f87 100644 --- a/docs/sdks/swift/CHANGELOG.md +++ b/docs/sdks/swift/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 15.0.0 + +* Add array-based enum parameters (e.g., `permissions: [BrowserPermission]`). + ## 14.1.0 * Added ability to create columns and indexes synchronously while creating a table diff --git a/docs/sdks/web/CHANGELOG.md b/docs/sdks/web/CHANGELOG.md index b600d67e1b..b14198fe06 100644 --- a/docs/sdks/web/CHANGELOG.md +++ b/docs/sdks/web/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 22.0.0 + +* Add array-based enum parameters (e.g., `permissions: BrowserPermission[]`). + ## 21.5.0 * Add `getScreenshot` method to `Avatars` service From 4d062b818d1ab3b038f7f1b1c819d56988ca8e90 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 2 Feb 2026 17:26:20 +0530 Subject: [PATCH 2/6] update examples --- composer.json | 2 +- composer.lock | 68 ++++++++++--------- .../client-android/java/account/create-jwt.md | 18 +++-- .../java/avatars/get-screenshot.md | 7 +- .../java/teams/create-membership.md | 3 +- .../java/teams/update-membership.md | 3 +- .../kotlin/account/create-jwt.md | 4 +- .../kotlin/avatars/get-screenshot.md | 7 +- .../kotlin/teams/create-membership.md | 3 +- .../kotlin/teams/update-membership.md | 3 +- .../examples/account/create-jwt.md | 4 +- .../examples/avatars/get-screenshot.md | 8 +-- .../examples/teams/create-membership.md | 3 +- .../examples/teams/update-membership.md | 3 +- .../examples/account/create-jwt.md | 4 +- .../account/create-mfa-authenticator.md | 2 +- .../examples/account/create-mfa-challenge.md | 2 +- .../account/create-o-auth-2-session.md | 2 +- .../examples/account/create-o-auth-2-token.md | 2 +- .../account/delete-mfa-authenticator.md | 2 +- .../account/update-mfa-authenticator.md | 2 +- .../examples/avatars/get-browser.md | 4 +- .../examples/avatars/get-credit-card.md | 4 +- .../examples/avatars/get-flag.md | 4 +- .../examples/avatars/get-screenshot.md | 16 ++--- .../examples/functions/create-execution.md | 2 +- .../examples/storage/get-file-preview.md | 8 +-- .../examples/teams/create-membership.md | 2 +- .../examples/teams/update-membership.md | 2 +- .../examples/account/create-jwt.md | 4 +- .../examples/storage/update-file.md | 2 + .../examples/account/create-jwt.md | 4 +- .../examples/avatars/get-screenshot.md | 10 +-- .../examples/teams/create-membership.md | 4 +- .../examples/teams/update-membership.md | 4 +- .../examples/account/create-jwt.md | 3 + .../client-web/examples/account/create-jwt.md | 4 +- .../examples/avatars/get-screenshot.md | 10 +-- .../examples/teams/create-membership.md | 4 +- .../examples/teams/update-membership.md | 4 +- .../examples/databases/update-collection.md | 3 +- .../console-cli/examples/databases/update.md | 3 +- .../examples/tablesdb/update-table.md | 3 +- .../console-cli/examples/tablesdb/update.md | 3 +- .../examples/account/create-jwt.md | 4 +- .../examples/avatars/get-screenshot.md | 10 +-- .../examples/databases/create-index.md | 4 +- .../examples/databases/update-collection.md | 2 +- .../console-web/examples/databases/update.md | 2 +- .../console-web/examples/functions/create.md | 4 +- .../examples/functions/list-templates.md | 6 +- .../console-web/examples/functions/update.md | 4 +- .../examples/health/get-queue-audits.md | 13 ++++ .../migrations/create-appwrite-migration.md | 4 +- .../migrations/create-firebase-migration.md | 4 +- .../migrations/create-n-host-migration.md | 4 +- .../migrations/create-supabase-migration.md | 4 +- .../migrations/get-appwrite-report.md | 4 +- .../migrations/get-firebase-report.md | 4 +- .../examples/migrations/get-n-host-report.md | 4 +- .../migrations/get-supabase-report.md | 4 +- .../examples/projects/create-jwt.md | 4 +- .../examples/projects/create-key.md | 4 +- .../examples/projects/update-key.md | 4 +- .../examples/projects/update-labels.md | 14 ++++ .../examples/sites/list-templates.md | 6 +- .../examples/tablesdb/create-index.md | 4 +- .../examples/tablesdb/update-table.md | 2 +- .../console-web/examples/tablesdb/update.md | 2 +- .../examples/teams/create-membership.md | 4 +- .../examples/teams/update-membership.md | 4 +- .../examples/account/create-jwt.md | 4 +- .../account/create-mfa-authenticator.md | 2 +- .../examples/account/create-mfa-challenge.md | 2 +- .../examples/account/create-o-auth-2-token.md | 2 +- .../account/delete-mfa-authenticator.md | 2 +- .../account/update-mfa-authenticator.md | 2 +- .../examples/avatars/get-browser.md | 2 +- .../examples/avatars/get-credit-card.md | 2 +- .../server-dart/examples/avatars/get-flag.md | 2 +- .../examples/avatars/get-screenshot.md | 8 +-- .../examples/databases/create-index.md | 4 +- .../create-relationship-attribute.md | 4 +- .../examples/databases/get-attribute.md | 2 +- .../examples/databases/update-collection.md | 2 +- .../update-relationship-attribute.md | 2 +- .../server-dart/examples/databases/update.md | 2 +- .../examples/functions/create-execution.md | 2 +- .../functions/create-template-deployment.md | 2 +- .../functions/create-vcs-deployment.md | 2 +- .../server-dart/examples/functions/create.md | 4 +- .../functions/get-deployment-download.md | 2 +- .../server-dart/examples/functions/update.md | 4 +- .../server-dart/examples/health/get-cache.md | 2 +- .../server-dart/examples/health/get-db.md | 2 +- .../examples/health/get-failed-jobs.md | 2 +- .../examples/health/get-pub-sub.md | 2 +- .../examples/health/get-queue-audits.md | 12 ++++ .../examples/messaging/create-push.md | 2 +- .../messaging/create-smtp-provider.md | 2 +- .../examples/messaging/update-push.md | 2 +- .../messaging/update-smtp-provider.md | 2 +- .../sites/create-template-deployment.md | 2 +- .../examples/sites/create-vcs-deployment.md | 2 +- .../server-dart/examples/sites/create.md | 6 +- .../examples/sites/get-deployment-download.md | 2 +- .../server-dart/examples/sites/update.md | 6 +- .../examples/storage/create-bucket.md | 2 +- .../examples/storage/get-file-preview.md | 4 +- .../examples/storage/update-bucket.md | 2 +- .../examples/tablesdb/create-index.md | 4 +- .../tablesdb/create-relationship-column.md | 4 +- .../examples/tablesdb/get-column.md | 2 +- .../tablesdb/update-relationship-column.md | 2 +- .../examples/tablesdb/update-table.md | 2 +- .../server-dart/examples/tablesdb/update.md | 2 +- .../examples/teams/create-membership.md | 2 +- .../examples/teams/update-membership.md | 2 +- .../examples/users/create-sha-user.md | 2 +- .../examples/users/create-target.md | 2 +- .../users/delete-mfa-authenticator.md | 2 +- .../examples/account/create-jwt.md | 4 +- .../examples/avatars/get-screenshot.md | 8 +-- .../examples/databases/create-index.md | 2 +- .../examples/databases/get-attribute.md | 2 +- .../examples/databases/update-collection.md | 2 +- .../examples/databases/update.md | 2 +- .../examples/functions/create.md | 2 +- .../examples/functions/update.md | 2 +- .../examples/health/get-cache.md | 2 +- .../server-dotnet/examples/health/get-db.md | 2 +- .../examples/health/get-pub-sub.md | 2 +- .../examples/health/get-queue-audits.md | 14 ++++ .../examples/tablesdb/create-index.md | 2 +- .../examples/tablesdb/get-column.md | 2 +- .../examples/tablesdb/update-table.md | 2 +- .../server-dotnet/examples/tablesdb/update.md | 2 +- .../examples/teams/create-membership.md | 3 +- .../examples/teams/update-membership.md | 3 +- .../server-go/examples/account/create-jwt.md | 4 +- .../examples/databases/update-collection.md | 2 +- .../server-go/examples/databases/update.md | 2 +- .../examples/health/get-queue-audits.md | 19 ++++++ .../examples/tablesdb/update-table.md | 2 +- .../server-go/examples/tablesdb/update.md | 2 +- .../examples/account/create-jwt.md | 4 +- .../examples/health/get-queue-audits.md | 0 .../examples/storage/create-bucket.md | 1 + .../examples/storage/update-bucket.md | 1 + .../examples/storage/update-file.md | 2 + .../server-kotlin/java/account/create-jwt.md | 18 +++-- .../java/avatars/get-screenshot.md | 11 +-- .../java/databases/create-index.md | 3 +- .../java/databases/update-collection.md | 2 +- .../server-kotlin/java/databases/update.md | 2 +- .../server-kotlin/java/functions/create.md | 3 +- .../server-kotlin/java/functions/update.md | 3 +- .../java/health/get-queue-audits.md | 23 +++++++ .../java/tablesdb/create-index.md | 3 +- .../java/tablesdb/update-table.md | 2 +- .../server-kotlin/java/tablesdb/update.md | 2 +- .../java/teams/create-membership.md | 3 +- .../java/teams/update-membership.md | 3 +- .../kotlin/account/create-jwt.md | 4 +- .../account/create-mfa-authenticator.md | 2 +- .../kotlin/account/create-mfa-challenge.md | 2 +- .../kotlin/account/create-o-auth-2-token.md | 2 +- .../account/delete-mfa-authenticator.md | 2 +- .../account/update-mfa-authenticator.md | 2 +- .../kotlin/avatars/get-browser.md | 2 +- .../kotlin/avatars/get-credit-card.md | 2 +- .../server-kotlin/kotlin/avatars/get-flag.md | 2 +- .../kotlin/avatars/get-screenshot.md | 11 +-- .../kotlin/databases/create-index.md | 5 +- .../create-relationship-attribute.md | 4 +- .../kotlin/databases/update-collection.md | 2 +- .../update-relationship-attribute.md | 2 +- .../server-kotlin/kotlin/databases/update.md | 2 +- .../kotlin/functions/create-execution.md | 2 +- .../functions/create-template-deployment.md | 2 +- .../kotlin/functions/create-vcs-deployment.md | 2 +- .../server-kotlin/kotlin/functions/create.md | 5 +- .../functions/get-deployment-download.md | 2 +- .../server-kotlin/kotlin/functions/update.md | 5 +- .../kotlin/health/get-failed-jobs.md | 2 +- .../kotlin/health/get-queue-audits.md | 14 ++++ .../kotlin/messaging/create-push.md | 2 +- .../kotlin/messaging/create-smtp-provider.md | 2 +- .../kotlin/messaging/update-push.md | 2 +- .../kotlin/messaging/update-smtp-provider.md | 2 +- .../sites/create-template-deployment.md | 2 +- .../kotlin/sites/create-vcs-deployment.md | 2 +- .../server-kotlin/kotlin/sites/create.md | 6 +- .../kotlin/sites/get-deployment-download.md | 2 +- .../server-kotlin/kotlin/sites/update.md | 6 +- .../kotlin/storage/create-bucket.md | 2 +- .../kotlin/storage/get-file-preview.md | 4 +- .../kotlin/storage/update-bucket.md | 2 +- .../kotlin/tablesdb/create-index.md | 5 +- .../tablesdb/create-relationship-column.md | 4 +- .../tablesdb/update-relationship-column.md | 2 +- .../kotlin/tablesdb/update-table.md | 2 +- .../server-kotlin/kotlin/tablesdb/update.md | 2 +- .../kotlin/teams/create-membership.md | 3 +- .../kotlin/teams/update-membership.md | 3 +- .../kotlin/users/create-sha-user.md | 2 +- .../kotlin/users/create-target.md | 2 +- .../kotlin/users/delete-mfa-authenticator.md | 2 +- .../examples/account/create-jwt.md | 4 +- .../examples/avatars/get-screenshot.md | 8 +-- .../examples/databases/create-index.md | 2 +- .../examples/databases/update-collection.md | 2 +- .../examples/databases/update.md | 2 +- .../examples/functions/create.md | 2 +- .../examples/functions/update.md | 2 +- .../examples/health/get-queue-audits.md | 12 ++++ .../examples/tablesdb/create-index.md | 2 +- .../examples/tablesdb/update-table.md | 2 +- .../server-nodejs/examples/tablesdb/update.md | 2 +- .../examples/teams/create-membership.md | 2 +- .../examples/teams/update-membership.md | 2 +- .../server-php/examples/account/create-jwt.md | 4 +- .../examples/avatars/get-screenshot.md | 11 +-- .../examples/databases/create-index.md | 3 +- .../examples/databases/update-collection.md | 2 +- .../server-php/examples/databases/update.md | 2 +- .../server-php/examples/functions/create.md | 3 +- .../server-php/examples/functions/update.md | 3 +- .../examples/health/get-queue-audits.md | 15 ++++ .../examples/tablesdb/create-index.md | 3 +- .../examples/tablesdb/update-table.md | 2 +- .../server-php/examples/tablesdb/update.md | 2 +- .../examples/teams/create-membership.md | 3 +- .../examples/teams/update-membership.md | 3 +- .../examples/account/create-jwt.md | 4 +- .../examples/avatars/get-screenshot.md | 11 +-- .../examples/databases/create-index.md | 3 +- .../examples/databases/update-collection.md | 2 +- .../examples/databases/update.md | 2 +- .../examples/functions/create.md | 3 +- .../examples/functions/update.md | 3 +- .../examples/health/get-queue-audits.md | 13 ++++ .../examples/tablesdb/create-index.md | 3 +- .../examples/tablesdb/update-table.md | 2 +- .../server-python/examples/tablesdb/update.md | 2 +- .../examples/teams/create-membership.md | 3 +- .../examples/teams/update-membership.md | 3 +- .../examples/account/create-jwt.md | 3 + .../examples/health/get-queue-audits.md | 5 ++ .../examples/account/create-jwt.md | 4 +- .../examples/avatars/get-screenshot.md | 8 +-- .../examples/databases/create-index.md | 2 +- .../examples/databases/update-collection.md | 2 +- .../server-ruby/examples/databases/update.md | 2 +- .../server-ruby/examples/functions/create.md | 2 +- .../server-ruby/examples/functions/update.md | 2 +- .../examples/health/get-queue-audits.md | 14 ++++ .../examples/tablesdb/create-index.md | 2 +- .../examples/tablesdb/update-table.md | 2 +- .../server-ruby/examples/tablesdb/update.md | 2 +- .../examples/teams/create-membership.md | 3 +- .../examples/teams/update-membership.md | 3 +- .../examples/account/create-jwt.md | 4 +- .../examples/avatars/get-screenshot.md | 8 +-- .../examples/databases/create-index.md | 2 +- .../examples/databases/get-attribute.md | 2 +- .../examples/databases/update-collection.md | 2 +- .../server-swift/examples/databases/update.md | 2 +- .../server-swift/examples/functions/create.md | 2 +- .../server-swift/examples/functions/update.md | 2 +- .../server-swift/examples/health/get-cache.md | 2 +- .../server-swift/examples/health/get-db.md | 2 +- .../examples/health/get-pub-sub.md | 2 +- .../examples/health/get-queue-audits.md | 13 ++++ .../examples/tablesdb/create-index.md | 2 +- .../examples/tablesdb/get-column.md | 2 +- .../examples/tablesdb/update-table.md | 2 +- .../server-swift/examples/tablesdb/update.md | 2 +- .../examples/teams/create-membership.md | 3 +- .../examples/teams/update-membership.md | 3 +- 280 files changed, 693 insertions(+), 418 deletions(-) create mode 100644 docs/examples/1.8.x/console-web/examples/health/get-queue-audits.md create mode 100644 docs/examples/1.8.x/console-web/examples/projects/update-labels.md create mode 100644 docs/examples/1.8.x/server-dart/examples/health/get-queue-audits.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/health/get-queue-audits.md create mode 100644 docs/examples/1.8.x/server-go/examples/health/get-queue-audits.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/health/get-queue-audits.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/health/get-queue-audits.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/health/get-queue-audits.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/health/get-queue-audits.md create mode 100644 docs/examples/1.8.x/server-php/examples/health/get-queue-audits.md create mode 100644 docs/examples/1.8.x/server-python/examples/health/get-queue-audits.md create mode 100644 docs/examples/1.8.x/server-rest/examples/health/get-queue-audits.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/health/get-queue-audits.md create mode 100644 docs/examples/1.8.x/server-swift/examples/health/get-queue-audits.md diff --git a/composer.json b/composer.json index 4d9e779c94..ef6928df2e 100644 --- a/composer.json +++ b/composer.json @@ -89,7 +89,7 @@ }, "require-dev": { "ext-fileinfo": "*", - "appwrite/sdk-generator": "*", + "appwrite/sdk-generator": "dev-fix/enum-example-from-x-example", "phpunit/phpunit": "9.*", "swoole/ide-helper": "6.*", "phpstan/phpstan": "1.8.*", diff --git a/composer.lock b/composer.lock index c29c66e759..5edcc2e8eb 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2aca1c8eeaa9fa338e389e3527cb6bd6", + "content-hash": "3ffe6e9557a18c7f96b3cfc1faa55399", "packages": [ { "name": "adhocore/jwt", @@ -283,16 +283,16 @@ }, { "name": "brick/math", - "version": "0.14.1", + "version": "0.14.3", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "f05858549e5f9d7bb45875a75583240a38a281d0" + "reference": "6af96b11de3f7d99730c118c200418c48274edb4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/f05858549e5f9d7bb45875a75583240a38a281d0", - "reference": "f05858549e5f9d7bb45875a75583240a38a281d0", + "url": "https://api.github.com/repos/brick/math/zipball/6af96b11de3f7d99730c118c200418c48274edb4", + "reference": "6af96b11de3f7d99730c118c200418c48274edb4", "shasum": "" }, "require": { @@ -331,7 +331,7 @@ ], "support": { "issues": "https://github.com/brick/math/issues", - "source": "https://github.com/brick/math/tree/0.14.1" + "source": "https://github.com/brick/math/tree/0.14.3" }, "funding": [ { @@ -339,7 +339,7 @@ "type": "github" } ], - "time": "2025-11-24T14:40:29+00:00" + "time": "2026-02-01T15:18:05+00:00" }, { "name": "chillerlan/php-qrcode", @@ -756,16 +756,16 @@ }, { "name": "google/protobuf", - "version": "v4.33.4", + "version": "v4.33.5", "source": { "type": "git", "url": "https://github.com/protocolbuffers/protobuf-php.git", - "reference": "22d28025cda0d223a2e48c2e16c5284ecc9f5402" + "reference": "ebe8010a61b2ae0cff0d246fe1c4d44e9f7dfa6d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/22d28025cda0d223a2e48c2e16c5284ecc9f5402", - "reference": "22d28025cda0d223a2e48c2e16c5284ecc9f5402", + "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/ebe8010a61b2ae0cff0d246fe1c4d44e9f7dfa6d", + "reference": "ebe8010a61b2ae0cff0d246fe1c4d44e9f7dfa6d", "shasum": "" }, "require": { @@ -794,9 +794,9 @@ "proto" ], "support": { - "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.33.4" + "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.33.5" }, - "time": "2026-01-12T17:58:43+00:00" + "time": "2026-01-29T20:49:00+00:00" }, { "name": "halaxa/json-machine", @@ -3615,16 +3615,16 @@ }, { "name": "utopia-php/audit", - "version": "2.1.0", + "version": "2.2.0", "source": { "type": "git", "url": "https://github.com/utopia-php/audit.git", - "reference": "8e0540aa939968418ee3ad2b2c305992a771e142" + "reference": "1865d055d38b71f41e68561cf0c474b5bf6143e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/audit/zipball/8e0540aa939968418ee3ad2b2c305992a771e142", - "reference": "8e0540aa939968418ee3ad2b2c305992a771e142", + "url": "https://api.github.com/repos/utopia-php/audit/zipball/1865d055d38b71f41e68561cf0c474b5bf6143e5", + "reference": "1865d055d38b71f41e68561cf0c474b5bf6143e5", "shasum": "" }, "require": { @@ -3658,9 +3658,9 @@ ], "support": { "issues": "https://github.com/utopia-php/audit/issues", - "source": "https://github.com/utopia-php/audit/tree/2.1.0" + "source": "https://github.com/utopia-php/audit/tree/2.2.0" }, - "time": "2026-01-22T12:40:48+00:00" + "time": "2026-02-02T09:49:02+00:00" }, { "name": "utopia-php/auth", @@ -3961,16 +3961,16 @@ }, { "name": "utopia-php/database", - "version": "4.6.1", + "version": "4.6.4", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "8795a7f5bf8828955299ae44e5946f93a2b1bde5" + "reference": "4dfffd4d528f89b3b3fc09180d4c965ef9bdae30" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/8795a7f5bf8828955299ae44e5946f93a2b1bde5", - "reference": "8795a7f5bf8828955299ae44e5946f93a2b1bde5", + "url": "https://api.github.com/repos/utopia-php/database/zipball/4dfffd4d528f89b3b3fc09180d4c965ef9bdae30", + "reference": "4dfffd4d528f89b3b3fc09180d4c965ef9bdae30", "shasum": "" }, "require": { @@ -4013,9 +4013,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/4.6.1" + "source": "https://github.com/utopia-php/database/tree/4.6.4" }, - "time": "2026-01-21T09:37:22+00:00" + "time": "2026-01-30T08:19:14+00:00" }, { "name": "utopia-php/detector", @@ -5546,16 +5546,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "1.8.21", + "version": "dev-fix/enum-example-from-x-example", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "1b47b2c794811c565f8b5e7eeaa19f749bcbeb6b" + "reference": "b1a44e2bb35fb74ad0f5b5bb6ad945d98cd15315" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/1b47b2c794811c565f8b5e7eeaa19f749bcbeb6b", - "reference": "1b47b2c794811c565f8b5e7eeaa19f749bcbeb6b", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/b1a44e2bb35fb74ad0f5b5bb6ad945d98cd15315", + "reference": "b1a44e2bb35fb74ad0f5b5bb6ad945d98cd15315", "shasum": "" }, "require": { @@ -5591,9 +5591,9 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/1.8.21" + "source": "https://github.com/appwrite/sdk-generator/tree/fix/enum-example-from-x-example" }, - "time": "2026-01-26T04:42:33+00:00" + "time": "2026-02-02T11:47:45+00:00" }, { "name": "doctrine/annotations", @@ -9052,7 +9052,9 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": {}, + "stability-flags": { + "appwrite/sdk-generator": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": { @@ -9076,5 +9078,5 @@ "platform-overrides": { "php": "8.3" }, - "plugin-api-version": "2.9.0" + "plugin-api-version": "2.6.0" } diff --git a/docs/examples/1.8.x/client-android/java/account/create-jwt.md b/docs/examples/1.8.x/client-android/java/account/create-jwt.md index 9e3bd287f3..56c31eeee2 100644 --- a/docs/examples/1.8.x/client-android/java/account/create-jwt.md +++ b/docs/examples/1.8.x/client-android/java/account/create-jwt.md @@ -8,11 +8,15 @@ Client client = new Client(context) Account account = new Account(client); -account.createJWT(new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } +account.createJWT( + 0, // duration (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); - Log.d("Appwrite", result.toString()); -})); diff --git a/docs/examples/1.8.x/client-android/java/avatars/get-screenshot.md b/docs/examples/1.8.x/client-android/java/avatars/get-screenshot.md index ce8372dd37..24c4998e14 100644 --- a/docs/examples/1.8.x/client-android/java/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/client-android/java/avatars/get-screenshot.md @@ -3,7 +3,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; import io.appwrite.enums.Theme; import io.appwrite.enums.Timezone; -import io.appwrite.enums.Output; +import io.appwrite.enums.BrowserPermission; +import io.appwrite.enums.ImageFormat; Client client = new Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -29,12 +30,12 @@ avatars.getScreenshot( -122.4194, // longitude (optional) 100, // accuracy (optional) true, // touch (optional) - List.of("geolocation", "notifications"), // permissions (optional) + BrowserPermission.GEOLOCATION, // permissions (optional) 3, // sleep (optional) 800, // width (optional) 600, // height (optional) 85, // quality (optional) - Output.JPG, // output (optional) + ImageFormat.JPG, // output (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/client-android/java/teams/create-membership.md b/docs/examples/1.8.x/client-android/java/teams/create-membership.md index e5eee207dc..161e65eb11 100644 --- a/docs/examples/1.8.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.8.x/client-android/java/teams/create-membership.md @@ -1,6 +1,7 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; +import io.appwrite.enums.Roles; Client client = new Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -10,7 +11,7 @@ Teams teams = new Teams(client); teams.createMembership( "", // teamId - List.of(), // roles + Roles.ADMIN, // roles "email@example.com", // email (optional) "", // userId (optional) "+12065550100", // phone (optional) diff --git a/docs/examples/1.8.x/client-android/java/teams/update-membership.md b/docs/examples/1.8.x/client-android/java/teams/update-membership.md index f8adcf1fb8..83675d7a34 100644 --- a/docs/examples/1.8.x/client-android/java/teams/update-membership.md +++ b/docs/examples/1.8.x/client-android/java/teams/update-membership.md @@ -1,6 +1,7 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; +import io.appwrite.enums.Roles; Client client = new Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -11,7 +12,7 @@ Teams teams = new Teams(client); teams.updateMembership( "", // teamId "", // membershipId - List.of(), // roles + Roles.ADMIN, // roles new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/client-android/kotlin/account/create-jwt.md b/docs/examples/1.8.x/client-android/kotlin/account/create-jwt.md index c87eaf3128..1c72fa8e1d 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/create-jwt.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/create-jwt.md @@ -8,4 +8,6 @@ val client = Client(context) val account = Account(client) -val result = account.createJWT() +val result = account.createJWT( + duration = 0, // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/avatars/get-screenshot.md b/docs/examples/1.8.x/client-android/kotlin/avatars/get-screenshot.md index d7cd6cda24..4ac6717ae7 100644 --- a/docs/examples/1.8.x/client-android/kotlin/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/client-android/kotlin/avatars/get-screenshot.md @@ -3,7 +3,8 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars import io.appwrite.enums.Theme import io.appwrite.enums.Timezone -import io.appwrite.enums.Output +import io.appwrite.enums.BrowserPermission +import io.appwrite.enums.ImageFormat val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -29,10 +30,10 @@ val result = avatars.getScreenshot( longitude = -122.4194, // (optional) accuracy = 100, // (optional) touch = true, // (optional) - permissions = listOf("geolocation", "notifications"), // (optional) + permissions = BrowserPermission.GEOLOCATION, // (optional) sleep = 3, // (optional) width = 800, // (optional) height = 600, // (optional) quality = 85, // (optional) - output = output.JPG, // (optional) + output = ImageFormat.JPG, // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.8.x/client-android/kotlin/teams/create-membership.md index 70eb7ddd19..f85002894d 100644 --- a/docs/examples/1.8.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.8.x/client-android/kotlin/teams/create-membership.md @@ -1,6 +1,7 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams +import io.appwrite.enums.Roles val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -10,7 +11,7 @@ val teams = Teams(client) val result = teams.createMembership( teamId = "", - roles = listOf(), + roles = roles.ADMIN, email = "email@example.com", // (optional) userId = "", // (optional) phone = "+12065550100", // (optional) diff --git a/docs/examples/1.8.x/client-android/kotlin/teams/update-membership.md b/docs/examples/1.8.x/client-android/kotlin/teams/update-membership.md index 86216a8692..8375c77bee 100644 --- a/docs/examples/1.8.x/client-android/kotlin/teams/update-membership.md +++ b/docs/examples/1.8.x/client-android/kotlin/teams/update-membership.md @@ -1,6 +1,7 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams +import io.appwrite.enums.Roles val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -11,5 +12,5 @@ val teams = Teams(client) val result = teams.updateMembership( teamId = "", membershipId = "", - roles = listOf(), + roles = roles.ADMIN, ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-apple/examples/account/create-jwt.md b/docs/examples/1.8.x/client-apple/examples/account/create-jwt.md index fbcd50401c..34b29f48a7 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/client-apple/examples/account/create-jwt.md @@ -6,5 +6,7 @@ let client = Client() let account = Account(client) -let jwt = try await account.createJWT() +let jwt = try await account.createJWT( + duration: 0 // optional +) diff --git a/docs/examples/1.8.x/client-apple/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/client-apple/examples/avatars/get-screenshot.md index 20d635a8fa..b8f6a480bc 100644 --- a/docs/examples/1.8.x/client-apple/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/client-apple/examples/avatars/get-screenshot.md @@ -16,20 +16,20 @@ let bytes = try await avatars.getScreenshot( viewportWidth: 1920, // optional viewportHeight: 1080, // optional scale: 2, // optional - theme: .light, // optional + theme: .dark, // optional userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15", // optional fullpage: true, // optional locale: "en-US", // optional - timezone: .africaAbidjan, // optional + timezone: .americaNewYork, // optional latitude: 37.7749, // optional longitude: -122.4194, // optional accuracy: 100, // optional touch: true, // optional - permissions: ["geolocation","notifications"], // optional + permissions: [.geolocation, .notifications], // optional sleep: 3, // optional width: 800, // optional height: 600, // optional quality: 85, // optional - output: .jpg // optional + output: .jpeg // optional ) diff --git a/docs/examples/1.8.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.8.x/client-apple/examples/teams/create-membership.md index 3c6d093c64..6b0eaafe6f 100644 --- a/docs/examples/1.8.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/client-apple/examples/teams/create-membership.md @@ -1,4 +1,5 @@ import Appwrite +import AppwriteEnums let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -8,7 +9,7 @@ let teams = Teams(client) let membership = try await teams.createMembership( teamId: "", - roles: [], + roles: [.admin], email: "email@example.com", // optional userId: "", // optional phone: "+12065550100", // optional diff --git a/docs/examples/1.8.x/client-apple/examples/teams/update-membership.md b/docs/examples/1.8.x/client-apple/examples/teams/update-membership.md index eaa61799c2..a61f7921bd 100644 --- a/docs/examples/1.8.x/client-apple/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/client-apple/examples/teams/update-membership.md @@ -1,4 +1,5 @@ import Appwrite +import AppwriteEnums let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -9,6 +10,6 @@ let teams = Teams(client) let membership = try await teams.updateMembership( teamId: "", membershipId: "", - roles: [] + roles: [.admin] ) diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-jwt.md b/docs/examples/1.8.x/client-flutter/examples/account/create-jwt.md index b9cbc8f5a5..58dbdffb47 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/create-jwt.md @@ -6,4 +6,6 @@ Client client = Client() Account account = Account(client); -Jwt result = await account.createJWT(); +Jwt result = await account.createJWT( + duration: 0, // optional +); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-authenticator.md index b9d7e967b2..2cb96dff15 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-authenticator.md @@ -7,5 +7,5 @@ Client client = Client() Account account = Account(client); MfaType result = await account.createMFAAuthenticator( - type: AuthenticatorType.totp, + type: enums.AuthenticatorType.totp, ); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-challenge.md index 09ce17b27c..8e7d1668bb 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-challenge.md @@ -7,5 +7,5 @@ Client client = Client() Account account = Account(client); MfaChallenge result = await account.createMFAChallenge( - factor: AuthenticationFactor.email, + factor: enums.AuthenticationFactor.email, ); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-o-auth-2-session.md b/docs/examples/1.8.x/client-flutter/examples/account/create-o-auth-2-session.md index ab53f4a777..c013d90b33 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/create-o-auth-2-session.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/create-o-auth-2-session.md @@ -7,7 +7,7 @@ Client client = Client() Account account = Account(client); await account.createOAuth2Session( - provider: OAuthProvider.amazon, + provider: enums.OAuthProvider.amazon, success: 'https://example.com', // optional failure: 'https://example.com', // optional scopes: [], // optional diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/client-flutter/examples/account/create-o-auth-2-token.md index d6b6c72c7e..2b2d246e44 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/create-o-auth-2-token.md @@ -7,7 +7,7 @@ Client client = Client() Account account = Account(client); await account.createOAuth2Token( - provider: OAuthProvider.amazon, + provider: enums.OAuthProvider.amazon, success: 'https://example.com', // optional failure: 'https://example.com', // optional scopes: [], // optional diff --git a/docs/examples/1.8.x/client-flutter/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/client-flutter/examples/account/delete-mfa-authenticator.md index b938ca68e9..0ed6d5bc06 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/delete-mfa-authenticator.md @@ -7,5 +7,5 @@ Client client = Client() Account account = Account(client); await account.deleteMFAAuthenticator( - type: AuthenticatorType.totp, + type: enums.AuthenticatorType.totp, ); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-authenticator.md index 96bdcc1bc3..641ae8fba0 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-authenticator.md @@ -7,6 +7,6 @@ Client client = Client() Account account = Account(client); User result = await account.updateMFAAuthenticator( - type: AuthenticatorType.totp, + type: enums.AuthenticatorType.totp, otp: '', ); diff --git a/docs/examples/1.8.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.8.x/client-flutter/examples/avatars/get-browser.md index 50c28ff378..7528a6225b 100644 --- a/docs/examples/1.8.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.8.x/client-flutter/examples/avatars/get-browser.md @@ -8,7 +8,7 @@ Avatars avatars = Avatars(client); // Downloading file Uint8List bytes = await avatars.getBrowser( - code: Browser.avantBrowser, + code: enums.Browser.avantBrowser, width: 0, // optional height: 0, // optional quality: -1, // optional @@ -20,7 +20,7 @@ file.writeAsBytesSync(bytes); // Displaying image preview FutureBuilder( future: avatars.getBrowser( - code: Browser.avantBrowser, + code: enums.Browser.avantBrowser, width:0 , // optional height:0 , // optional quality:-1 , // optional diff --git a/docs/examples/1.8.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.8.x/client-flutter/examples/avatars/get-credit-card.md index c3471fc2e8..2586613c2a 100644 --- a/docs/examples/1.8.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/client-flutter/examples/avatars/get-credit-card.md @@ -8,7 +8,7 @@ Avatars avatars = Avatars(client); // Downloading file Uint8List bytes = await avatars.getCreditCard( - code: CreditCard.americanExpress, + code: enums.CreditCard.americanExpress, width: 0, // optional height: 0, // optional quality: -1, // optional @@ -20,7 +20,7 @@ file.writeAsBytesSync(bytes); // Displaying image preview FutureBuilder( future: avatars.getCreditCard( - code: CreditCard.americanExpress, + code: enums.CreditCard.americanExpress, width:0 , // optional height:0 , // optional quality:-1 , // optional diff --git a/docs/examples/1.8.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.8.x/client-flutter/examples/avatars/get-flag.md index e5a4c60ba9..8d2649b3f9 100644 --- a/docs/examples/1.8.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.8.x/client-flutter/examples/avatars/get-flag.md @@ -8,7 +8,7 @@ Avatars avatars = Avatars(client); // Downloading file Uint8List bytes = await avatars.getFlag( - code: Flag.afghanistan, + code: enums.Flag.afghanistan, width: 0, // optional height: 0, // optional quality: -1, // optional @@ -20,7 +20,7 @@ file.writeAsBytesSync(bytes); // Displaying image preview FutureBuilder( future: avatars.getFlag( - code: Flag.afghanistan, + code: enums.Flag.afghanistan, width:0 , // optional height:0 , // optional quality:-1 , // optional diff --git a/docs/examples/1.8.x/client-flutter/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/client-flutter/examples/avatars/get-screenshot.md index 0dc9b76e96..43c77ca2c3 100644 --- a/docs/examples/1.8.x/client-flutter/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/client-flutter/examples/avatars/get-screenshot.md @@ -16,21 +16,21 @@ Uint8List bytes = await avatars.getScreenshot( viewportWidth: 1920, // optional viewportHeight: 1080, // optional scale: 2, // optional - theme: Theme.light, // optional + theme: enums.Theme.dark, // optional userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', // optional fullpage: true, // optional locale: 'en-US', // optional - timezone: Timezone.africaAbidjan, // optional + timezone: enums.Timezone.americaNewYork, // optional latitude: 37.7749, // optional longitude: -122.4194, // optional accuracy: 100, // optional touch: true, // optional - permissions: ["geolocation","notifications"], // optional + permissions: [enums.BrowserPermission.geolocation, enums.BrowserPermission.notifications], // optional sleep: 3, // optional width: 800, // optional height: 600, // optional quality: 85, // optional - output: Output.jpg, // optional + output: enums.ImageFormat.jpeg, // optional ) final file = File('path_to_file/filename.ext'); @@ -47,21 +47,21 @@ FutureBuilder( viewportWidth:1920 , // optional viewportHeight:1080 , // optional scale:2 , // optional - theme: Theme.light, // optional + theme: enums.Theme.dark, // optional userAgent:'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15' , // optional fullpage:true , // optional locale:'en-US' , // optional - timezone: Timezone.africaAbidjan, // optional + timezone: enums.Timezone.americaNewYork, // optional latitude:37.7749 , // optional longitude:-122.4194 , // optional accuracy:100 , // optional touch:true , // optional - permissions:["geolocation","notifications"] , // optional + permissions: [enums.BrowserPermission.geolocation, enums.BrowserPermission.notifications], // optional sleep:3 , // optional width:800 , // optional height:600 , // optional quality:85 , // optional - output: Output.jpg, // optional + output: enums.ImageFormat.jpeg, // optional ), // Works for both public file and private file, for private files you need to be logged in builder: (context, snapshot) { return snapshot.hasData && snapshot.data != null diff --git a/docs/examples/1.8.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.8.x/client-flutter/examples/functions/create-execution.md index bbd7cd37a6..fa9780ff45 100644 --- a/docs/examples/1.8.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-flutter/examples/functions/create-execution.md @@ -11,7 +11,7 @@ Execution result = await functions.createExecution( body: '', // optional xasync: false, // optional path: '', // optional - method: ExecutionMethod.gET, // optional + method: enums.ExecutionMethod.gET, // optional headers: {}, // optional scheduledAt: '', // optional ); diff --git a/docs/examples/1.8.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.8.x/client-flutter/examples/storage/get-file-preview.md index 6fd148e935..92bee14e91 100644 --- a/docs/examples/1.8.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/client-flutter/examples/storage/get-file-preview.md @@ -12,7 +12,7 @@ Uint8List bytes = await storage.getFilePreview( fileId: '', width: 0, // optional height: 0, // optional - gravity: ImageGravity.center, // optional + gravity: enums.ImageGravity.center, // optional quality: -1, // optional borderWidth: 0, // optional borderColor: '', // optional @@ -20,7 +20,7 @@ Uint8List bytes = await storage.getFilePreview( opacity: 0, // optional rotation: -360, // optional background: '', // optional - output: ImageFormat.jpg, // optional + output: enums.ImageFormat.jpg, // optional token: '', // optional ) @@ -34,7 +34,7 @@ FutureBuilder( fileId:'' , width:0 , // optional height:0 , // optional - gravity: ImageGravity.center, // optional + gravity: enums.ImageGravity.center, // optional quality:-1 , // optional borderWidth:0 , // optional borderColor:'' , // optional @@ -42,7 +42,7 @@ FutureBuilder( opacity:0 , // optional rotation:-360 , // optional background:'' , // optional - output: ImageFormat.jpg, // optional + output: enums.ImageFormat.jpg, // optional token:'' , // optional ), // Works for both public file and private file, for private files you need to be logged in builder: (context, snapshot) { diff --git a/docs/examples/1.8.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.8.x/client-flutter/examples/teams/create-membership.md index 8026521408..2491fba7a3 100644 --- a/docs/examples/1.8.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/client-flutter/examples/teams/create-membership.md @@ -8,7 +8,7 @@ Teams teams = Teams(client); Membership result = await teams.createMembership( teamId: '', - roles: [], + roles: [enums.Roles.admin], email: 'email@example.com', // optional userId: '', // optional phone: '+12065550100', // optional diff --git a/docs/examples/1.8.x/client-flutter/examples/teams/update-membership.md b/docs/examples/1.8.x/client-flutter/examples/teams/update-membership.md index bc2bbae75c..2b9f9b3e61 100644 --- a/docs/examples/1.8.x/client-flutter/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/client-flutter/examples/teams/update-membership.md @@ -9,5 +9,5 @@ Teams teams = Teams(client); Membership result = await teams.updateMembership( teamId: '', membershipId: '', - roles: [], + roles: [enums.Roles.admin], ); diff --git a/docs/examples/1.8.x/client-graphql/examples/account/create-jwt.md b/docs/examples/1.8.x/client-graphql/examples/account/create-jwt.md index a5204f1256..364b6c309a 100644 --- a/docs/examples/1.8.x/client-graphql/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/client-graphql/examples/account/create-jwt.md @@ -1,5 +1,7 @@ mutation { - accountCreateJWT { + accountCreateJWT( + duration: 0 + ) { jwt } } diff --git a/docs/examples/1.8.x/client-graphql/examples/storage/update-file.md b/docs/examples/1.8.x/client-graphql/examples/storage/update-file.md index b7832048c7..492f1e979a 100644 --- a/docs/examples/1.8.x/client-graphql/examples/storage/update-file.md +++ b/docs/examples/1.8.x/client-graphql/examples/storage/update-file.md @@ -16,5 +16,7 @@ mutation { sizeOriginal chunksTotal chunksUploaded + encryption + compression } } diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-jwt.md b/docs/examples/1.8.x/client-react-native/examples/account/create-jwt.md index 217dc78785..fbb3f362e5 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/create-jwt.md @@ -6,6 +6,8 @@ const client = new Client() const account = new Account(client); -const result = await account.createJWT(); +const result = await account.createJWT({ + duration: 0 // optional +}); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/client-react-native/examples/avatars/get-screenshot.md index 2e4b84dec8..8e2168031e 100644 --- a/docs/examples/1.8.x/client-react-native/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/client-react-native/examples/avatars/get-screenshot.md @@ -1,4 +1,4 @@ -import { Client, Avatars, Theme, Timezone, Output } from "react-native-appwrite"; +import { Client, Avatars, Theme, Timezone, BrowserPermission, ImageFormat } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -15,21 +15,21 @@ const result = avatars.getScreenshot({ viewportWidth: 1920, // optional viewportHeight: 1080, // optional scale: 2, // optional - theme: Theme.Light, // optional + theme: Theme.Dark, // optional userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', // optional fullpage: true, // optional locale: 'en-US', // optional - timezone: Timezone.AfricaAbidjan, // optional + timezone: Timezone.AmericaNewYork, // optional latitude: 37.7749, // optional longitude: -122.4194, // optional accuracy: 100, // optional touch: true, // optional - permissions: ["geolocation","notifications"], // optional + permissions: [BrowserPermission.Geolocation, BrowserPermission.Notifications], // optional sleep: 3, // optional width: 800, // optional height: 600, // optional quality: 85, // optional - output: Output.Jpg // optional + output: ImageFormat.Jpeg // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/teams/create-membership.md b/docs/examples/1.8.x/client-react-native/examples/teams/create-membership.md index e89d2deddb..665fffabba 100644 --- a/docs/examples/1.8.x/client-react-native/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/client-react-native/examples/teams/create-membership.md @@ -1,4 +1,4 @@ -import { Client, Teams } from "react-native-appwrite"; +import { Client, Teams, Roles } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -8,7 +8,7 @@ const teams = new Teams(client); const result = await teams.createMembership({ teamId: '', - roles: [], + roles: [Roles.Admin], email: 'email@example.com', // optional userId: '', // optional phone: '+12065550100', // optional diff --git a/docs/examples/1.8.x/client-react-native/examples/teams/update-membership.md b/docs/examples/1.8.x/client-react-native/examples/teams/update-membership.md index ada2863419..4e35261654 100644 --- a/docs/examples/1.8.x/client-react-native/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/client-react-native/examples/teams/update-membership.md @@ -1,4 +1,4 @@ -import { Client, Teams } from "react-native-appwrite"; +import { Client, Teams, Roles } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -9,7 +9,7 @@ const teams = new Teams(client); const result = await teams.updateMembership({ teamId: '', membershipId: '', - roles: [] + roles: [Roles.Admin] }); console.log(result); diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-jwt.md b/docs/examples/1.8.x/client-rest/examples/account/create-jwt.md index 52901d67a2..c1bd9cc6df 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-jwt.md @@ -6,3 +6,6 @@ X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: +{ + "duration": 0 +} diff --git a/docs/examples/1.8.x/client-web/examples/account/create-jwt.md b/docs/examples/1.8.x/client-web/examples/account/create-jwt.md index ff17d60661..80d6baea8e 100644 --- a/docs/examples/1.8.x/client-web/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/client-web/examples/account/create-jwt.md @@ -6,6 +6,8 @@ const client = new Client() const account = new Account(client); -const result = await account.createJWT(); +const result = await account.createJWT({ + duration: 0 // optional +}); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/client-web/examples/avatars/get-screenshot.md index 033458f43a..f1154413b1 100644 --- a/docs/examples/1.8.x/client-web/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/client-web/examples/avatars/get-screenshot.md @@ -1,4 +1,4 @@ -import { Client, Avatars, Theme, Timezone, Output } from "appwrite"; +import { Client, Avatars, Theme, Timezone, BrowserPermission, ImageFormat } from "appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -15,21 +15,21 @@ const result = avatars.getScreenshot({ viewportWidth: 1920, // optional viewportHeight: 1080, // optional scale: 2, // optional - theme: Theme.Light, // optional + theme: Theme.Dark, // optional userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', // optional fullpage: true, // optional locale: 'en-US', // optional - timezone: Timezone.AfricaAbidjan, // optional + timezone: Timezone.AmericaNewYork, // optional latitude: 37.7749, // optional longitude: -122.4194, // optional accuracy: 100, // optional touch: true, // optional - permissions: ["geolocation","notifications"], // optional + permissions: [BrowserPermission.Geolocation, BrowserPermission.Notifications], // optional sleep: 3, // optional width: 800, // optional height: 600, // optional quality: 85, // optional - output: Output.Jpg // optional + output: ImageFormat.Jpeg // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/teams/create-membership.md b/docs/examples/1.8.x/client-web/examples/teams/create-membership.md index c72da99abe..f4b5c61b18 100644 --- a/docs/examples/1.8.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/client-web/examples/teams/create-membership.md @@ -1,4 +1,4 @@ -import { Client, Teams } from "appwrite"; +import { Client, Teams, Roles } from "appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -8,7 +8,7 @@ const teams = new Teams(client); const result = await teams.createMembership({ teamId: '', - roles: [], + roles: [Roles.Admin], email: 'email@example.com', // optional userId: '', // optional phone: '+12065550100', // optional diff --git a/docs/examples/1.8.x/client-web/examples/teams/update-membership.md b/docs/examples/1.8.x/client-web/examples/teams/update-membership.md index 5db27e064d..efb0cfc306 100644 --- a/docs/examples/1.8.x/client-web/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/client-web/examples/teams/update-membership.md @@ -1,4 +1,4 @@ -import { Client, Teams } from "appwrite"; +import { Client, Teams, Roles } from "appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -9,7 +9,7 @@ const teams = new Teams(client); const result = await teams.updateMembership({ teamId: '', membershipId: '', - roles: [] + roles: [Roles.Admin] }); console.log(result); diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-collection.md b/docs/examples/1.8.x/console-cli/examples/databases/update-collection.md index 0bad4850e4..c740eb7faa 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-collection.md @@ -1,4 +1,3 @@ appwrite databases update-collection \ --database-id \ - --collection-id \ - --name + --collection-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update.md b/docs/examples/1.8.x/console-cli/examples/databases/update.md index e3e1de755c..7458dd8311 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update.md @@ -1,3 +1,2 @@ appwrite databases update \ - --database-id \ - --name + --database-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-table.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-table.md index 92884dfb3e..d438c885cd 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-table.md @@ -1,4 +1,3 @@ appwrite tables-db update-table \ --database-id \ - --table-id \ - --name + --table-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update.md index b8dbec193c..4fc7bbc928 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update.md @@ -1,3 +1,2 @@ appwrite tables-db update \ - --database-id \ - --name + --database-id diff --git a/docs/examples/1.8.x/console-web/examples/account/create-jwt.md b/docs/examples/1.8.x/console-web/examples/account/create-jwt.md index 9fc0e6da5e..2507a651b9 100644 --- a/docs/examples/1.8.x/console-web/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/console-web/examples/account/create-jwt.md @@ -6,6 +6,8 @@ const client = new Client() const account = new Account(client); -const result = await account.createJWT(); +const result = await account.createJWT({ + duration: 0 // optional +}); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/console-web/examples/avatars/get-screenshot.md index 821f60e2ee..f08516b370 100644 --- a/docs/examples/1.8.x/console-web/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/console-web/examples/avatars/get-screenshot.md @@ -1,4 +1,4 @@ -import { Client, Avatars, Theme, Timezone, Output } from "@appwrite.io/console"; +import { Client, Avatars, Theme, Timezone, BrowserPermission, ImageFormat } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -15,21 +15,21 @@ const result = avatars.getScreenshot({ viewportWidth: 1920, // optional viewportHeight: 1080, // optional scale: 2, // optional - theme: Theme.Light, // optional + theme: Theme.Dark, // optional userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', // optional fullpage: true, // optional locale: 'en-US', // optional - timezone: Timezone.AfricaAbidjan, // optional + timezone: Timezone.AmericaNewYork, // optional latitude: 37.7749, // optional longitude: -122.4194, // optional accuracy: 100, // optional touch: true, // optional - permissions: ["geolocation","notifications"], // optional + permissions: [BrowserPermission.Geolocation, BrowserPermission.Notifications], // optional sleep: 3, // optional width: 800, // optional height: 600, // optional quality: 85, // optional - output: Output.Jpg // optional + output: ImageFormat.Jpeg // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-index.md b/docs/examples/1.8.x/console-web/examples/databases/create-index.md index 82af4171f6..b2dc7dd018 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-index.md @@ -1,4 +1,4 @@ -import { Client, Databases, IndexType } from "@appwrite.io/console"; +import { Client, Databases, IndexType, OrderBy } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -12,7 +12,7 @@ const result = await databases.createIndex({ key: '', type: IndexType.Key, attributes: [], - orders: [], // optional + orders: [OrderBy.Asc], // optional lengths: [] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-collection.md b/docs/examples/1.8.x/console-web/examples/databases/update-collection.md index 23b55658e1..8e67807bee 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-collection.md @@ -9,7 +9,7 @@ const databases = new Databases(client); const result = await databases.updateCollection({ databaseId: '', collectionId: '', - name: '', + name: '', // optional permissions: [Permission.read(Role.any())], // optional documentSecurity: false, // optional enabled: false // optional diff --git a/docs/examples/1.8.x/console-web/examples/databases/update.md b/docs/examples/1.8.x/console-web/examples/databases/update.md index 40cea93299..ec614fc133 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update.md @@ -8,7 +8,7 @@ const databases = new Databases(client); const result = await databases.update({ databaseId: '', - name: '', + name: '', // optional enabled: false // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/functions/create.md b/docs/examples/1.8.x/console-web/examples/functions/create.md index 695d929daf..4eb019183f 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/create.md +++ b/docs/examples/1.8.x/console-web/examples/functions/create.md @@ -1,4 +1,4 @@ -import { Client, Functions, Runtime } from "@appwrite.io/console"; +import { Client, Functions, Runtime, Scopes } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -18,7 +18,7 @@ const result = await functions.create({ logging: false, // optional entrypoint: '', // optional commands: '', // optional - scopes: [], // optional + scopes: [Scopes.SessionsWrite], // optional installationId: '', // optional providerRepositoryId: '', // optional providerBranch: '', // optional diff --git a/docs/examples/1.8.x/console-web/examples/functions/list-templates.md b/docs/examples/1.8.x/console-web/examples/functions/list-templates.md index ab6600c44f..1bd4306c4f 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/list-templates.md +++ b/docs/examples/1.8.x/console-web/examples/functions/list-templates.md @@ -1,4 +1,4 @@ -import { Client, Functions } from "@appwrite.io/console"; +import { Client, Functions, Runtimes, UseCases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -7,8 +7,8 @@ const client = new Client() const functions = new Functions(client); const result = await functions.listTemplates({ - runtimes: [], // optional - useCases: [], // optional + runtimes: [Runtimes.Node145], // optional + useCases: [UseCases.DevTools], // optional limit: 1, // optional offset: 0, // optional total: false // optional diff --git a/docs/examples/1.8.x/console-web/examples/functions/update.md b/docs/examples/1.8.x/console-web/examples/functions/update.md index 53fe85bf80..9e239785b1 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/update.md +++ b/docs/examples/1.8.x/console-web/examples/functions/update.md @@ -1,4 +1,4 @@ -import { Client, Functions, Runtime } from "@appwrite.io/console"; +import { Client, Functions, Runtime, Scopes } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -18,7 +18,7 @@ const result = await functions.update({ logging: false, // optional entrypoint: '', // optional commands: '', // optional - scopes: [], // optional + scopes: [Scopes.SessionsWrite], // optional installationId: '', // optional providerRepositoryId: '', // optional providerBranch: '', // optional diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-audits.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-audits.md new file mode 100644 index 0000000000..eed50dcc96 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-audits.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueAudits({ + threshold: null // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/migrations/create-appwrite-migration.md b/docs/examples/1.8.x/console-web/examples/migrations/create-appwrite-migration.md index f53ab4aa3c..64e074c5b7 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/create-appwrite-migration.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/create-appwrite-migration.md @@ -1,4 +1,4 @@ -import { Client, Migrations } from "@appwrite.io/console"; +import { Client, Migrations, Resources } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -7,7 +7,7 @@ const client = new Client() const migrations = new Migrations(client); const result = await migrations.createAppwriteMigration({ - resources: [], + resources: [Resources.User], endpoint: 'https://example.com', projectId: '', apiKey: '' diff --git a/docs/examples/1.8.x/console-web/examples/migrations/create-firebase-migration.md b/docs/examples/1.8.x/console-web/examples/migrations/create-firebase-migration.md index a3722c3839..89e5cd4124 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/create-firebase-migration.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/create-firebase-migration.md @@ -1,4 +1,4 @@ -import { Client, Migrations } from "@appwrite.io/console"; +import { Client, Migrations, Resources } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -7,7 +7,7 @@ const client = new Client() const migrations = new Migrations(client); const result = await migrations.createFirebaseMigration({ - resources: [], + resources: [Resources.User], serviceAccount: '' }); diff --git a/docs/examples/1.8.x/console-web/examples/migrations/create-n-host-migration.md b/docs/examples/1.8.x/console-web/examples/migrations/create-n-host-migration.md index cada06e2ed..565ae61c71 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/create-n-host-migration.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/create-n-host-migration.md @@ -1,4 +1,4 @@ -import { Client, Migrations } from "@appwrite.io/console"; +import { Client, Migrations, Resources } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -7,7 +7,7 @@ const client = new Client() const migrations = new Migrations(client); const result = await migrations.createNHostMigration({ - resources: [], + resources: [Resources.User], subdomain: '', region: '', adminSecret: '', diff --git a/docs/examples/1.8.x/console-web/examples/migrations/create-supabase-migration.md b/docs/examples/1.8.x/console-web/examples/migrations/create-supabase-migration.md index 13e3da08ca..a946b813b4 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/create-supabase-migration.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/create-supabase-migration.md @@ -1,4 +1,4 @@ -import { Client, Migrations } from "@appwrite.io/console"; +import { Client, Migrations, Resources } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -7,7 +7,7 @@ const client = new Client() const migrations = new Migrations(client); const result = await migrations.createSupabaseMigration({ - resources: [], + resources: [Resources.User], endpoint: 'https://example.com', apiKey: '', databaseHost: '', diff --git a/docs/examples/1.8.x/console-web/examples/migrations/get-appwrite-report.md b/docs/examples/1.8.x/console-web/examples/migrations/get-appwrite-report.md index cdd5892a39..bb97e9aea3 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/get-appwrite-report.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/get-appwrite-report.md @@ -1,4 +1,4 @@ -import { Client, Migrations } from "@appwrite.io/console"; +import { Client, Migrations, Resources } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -7,7 +7,7 @@ const client = new Client() const migrations = new Migrations(client); const result = await migrations.getAppwriteReport({ - resources: [], + resources: [Resources.User], endpoint: 'https://example.com', projectID: '', key: '' diff --git a/docs/examples/1.8.x/console-web/examples/migrations/get-firebase-report.md b/docs/examples/1.8.x/console-web/examples/migrations/get-firebase-report.md index 4b8ea2118b..34361a77c1 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/get-firebase-report.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/get-firebase-report.md @@ -1,4 +1,4 @@ -import { Client, Migrations } from "@appwrite.io/console"; +import { Client, Migrations, Resources } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -7,7 +7,7 @@ const client = new Client() const migrations = new Migrations(client); const result = await migrations.getFirebaseReport({ - resources: [], + resources: [Resources.User], serviceAccount: '' }); diff --git a/docs/examples/1.8.x/console-web/examples/migrations/get-n-host-report.md b/docs/examples/1.8.x/console-web/examples/migrations/get-n-host-report.md index bc88499b85..63ff62e148 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/get-n-host-report.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/get-n-host-report.md @@ -1,4 +1,4 @@ -import { Client, Migrations } from "@appwrite.io/console"; +import { Client, Migrations, Resources } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -7,7 +7,7 @@ const client = new Client() const migrations = new Migrations(client); const result = await migrations.getNHostReport({ - resources: [], + resources: [Resources.User], subdomain: '', region: '', adminSecret: '', diff --git a/docs/examples/1.8.x/console-web/examples/migrations/get-supabase-report.md b/docs/examples/1.8.x/console-web/examples/migrations/get-supabase-report.md index d054124e8e..18e92446c1 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/get-supabase-report.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/get-supabase-report.md @@ -1,4 +1,4 @@ -import { Client, Migrations } from "@appwrite.io/console"; +import { Client, Migrations, Resources } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -7,7 +7,7 @@ const client = new Client() const migrations = new Migrations(client); const result = await migrations.getSupabaseReport({ - resources: [], + resources: [Resources.User], endpoint: 'https://example.com', apiKey: '', databaseHost: '', diff --git a/docs/examples/1.8.x/console-web/examples/projects/create-jwt.md b/docs/examples/1.8.x/console-web/examples/projects/create-jwt.md index c880996399..ceaa2f24bc 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/create-jwt.md +++ b/docs/examples/1.8.x/console-web/examples/projects/create-jwt.md @@ -1,4 +1,4 @@ -import { Client, Projects } from "@appwrite.io/console"; +import { Client, Projects, Scopes } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -8,7 +8,7 @@ const projects = new Projects(client); const result = await projects.createJWT({ projectId: '', - scopes: [], + scopes: [Scopes.SessionsWrite], duration: 0 // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/projects/create-key.md b/docs/examples/1.8.x/console-web/examples/projects/create-key.md index a1e53e5f78..e155b3e424 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.8.x/console-web/examples/projects/create-key.md @@ -1,4 +1,4 @@ -import { Client, Projects } from "@appwrite.io/console"; +import { Client, Projects, Scopes } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -9,7 +9,7 @@ const projects = new Projects(client); const result = await projects.createKey({ projectId: '', name: '', - scopes: [], + scopes: [Scopes.SessionsWrite], expire: '' // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-key.md b/docs/examples/1.8.x/console-web/examples/projects/update-key.md index 8e32cbd990..6dfef7c406 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.8.x/console-web/examples/projects/update-key.md @@ -1,4 +1,4 @@ -import { Client, Projects } from "@appwrite.io/console"; +import { Client, Projects, Scopes } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -10,7 +10,7 @@ const result = await projects.updateKey({ projectId: '', keyId: '', name: '', - scopes: [], + scopes: [Scopes.SessionsWrite], expire: '' // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-labels.md b/docs/examples/1.8.x/console-web/examples/projects/update-labels.md new file mode 100644 index 0000000000..22b2068b15 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/projects/update-labels.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateLabels({ + projectId: '', + labels: [] +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/list-templates.md b/docs/examples/1.8.x/console-web/examples/sites/list-templates.md index 82266bfde7..3043031b6c 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/list-templates.md +++ b/docs/examples/1.8.x/console-web/examples/sites/list-templates.md @@ -1,4 +1,4 @@ -import { Client, Sites } from "@appwrite.io/console"; +import { Client, Sites, Frameworks, UseCases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -7,8 +7,8 @@ const client = new Client() const sites = new Sites(client); const result = await sites.listTemplates({ - frameworks: [], // optional - useCases: [], // optional + frameworks: [Frameworks.Analog], // optional + useCases: [UseCases.DevTools], // optional limit: 1, // optional offset: 0 // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-index.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-index.md index 7c11aa67b7..f319fa20fe 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-index.md @@ -1,4 +1,4 @@ -import { Client, TablesDB, IndexType } from "@appwrite.io/console"; +import { Client, TablesDB, IndexType, OrderBy } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -12,7 +12,7 @@ const result = await tablesDB.createIndex({ key: '', type: IndexType.Key, columns: [], - orders: [], // optional + orders: [OrderBy.Asc], // optional lengths: [] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-table.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-table.md index ee6b193be9..5ef9bedb82 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-table.md @@ -9,7 +9,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.updateTable({ databaseId: '', tableId: '', - name: '', + name: '', // optional permissions: [Permission.read(Role.any())], // optional rowSecurity: false, // optional enabled: false // optional diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update.md index 55809cb070..e3f1600e1d 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update.md @@ -8,7 +8,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.update({ databaseId: '', - name: '', + name: '', // optional enabled: false // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/teams/create-membership.md b/docs/examples/1.8.x/console-web/examples/teams/create-membership.md index 50c4d06b6d..6243375a04 100644 --- a/docs/examples/1.8.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/console-web/examples/teams/create-membership.md @@ -1,4 +1,4 @@ -import { Client, Teams } from "@appwrite.io/console"; +import { Client, Teams, Roles } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -8,7 +8,7 @@ const teams = new Teams(client); const result = await teams.createMembership({ teamId: '', - roles: [], + roles: [Roles.Admin], email: 'email@example.com', // optional userId: '', // optional phone: '+12065550100', // optional diff --git a/docs/examples/1.8.x/console-web/examples/teams/update-membership.md b/docs/examples/1.8.x/console-web/examples/teams/update-membership.md index 9a94f51a96..2e9edf5275 100644 --- a/docs/examples/1.8.x/console-web/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/console-web/examples/teams/update-membership.md @@ -1,4 +1,4 @@ -import { Client, Teams } from "@appwrite.io/console"; +import { Client, Teams, Roles } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -9,7 +9,7 @@ const teams = new Teams(client); const result = await teams.updateMembership({ teamId: '', membershipId: '', - roles: [] + roles: [Roles.Admin] }); console.log(result); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-jwt.md b/docs/examples/1.8.x/server-dart/examples/account/create-jwt.md index 5b2945e8ba..43df06e2f6 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-jwt.md @@ -7,4 +7,6 @@ Client client = Client() Account account = Account(client); -Jwt result = await account.createJWT(); +Jwt result = await account.createJWT( + duration: 0, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-dart/examples/account/create-mfa-authenticator.md index 4dd2191ff2..afd036347a 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-mfa-authenticator.md @@ -8,5 +8,5 @@ Client client = Client() Account account = Account(client); MfaType result = await account.createMFAAuthenticator( - type: AuthenticatorType.totp, + type: enums.AuthenticatorType.totp, ); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-dart/examples/account/create-mfa-challenge.md index 7696794b35..97b17f62da 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-mfa-challenge.md @@ -8,5 +8,5 @@ Client client = Client() Account account = Account(client); MfaChallenge result = await account.createMFAChallenge( - factor: AuthenticationFactor.email, + factor: enums.AuthenticationFactor.email, ); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-dart/examples/account/create-o-auth-2-token.md index 42c4ed85fa..329c3b14d7 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-o-auth-2-token.md @@ -8,7 +8,7 @@ Client client = Client() Account account = Account(client); await account.createOAuth2Token( - provider: OAuthProvider.amazon, + provider: enums.OAuthProvider.amazon, success: 'https://example.com', // (optional) failure: 'https://example.com', // (optional) scopes: [], // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-dart/examples/account/delete-mfa-authenticator.md index 7f3f4ab1c8..910e2f34c3 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-dart/examples/account/delete-mfa-authenticator.md @@ -8,5 +8,5 @@ Client client = Client() Account account = Account(client); await account.deleteMFAAuthenticator( - type: AuthenticatorType.totp, + type: enums.AuthenticatorType.totp, ); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-dart/examples/account/update-mfa-authenticator.md index c475d30e19..938652fa8d 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-dart/examples/account/update-mfa-authenticator.md @@ -8,6 +8,6 @@ Client client = Client() Account account = Account(client); User result = await account.updateMFAAuthenticator( - type: AuthenticatorType.totp, + type: enums.AuthenticatorType.totp, otp: '', ); diff --git a/docs/examples/1.8.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.8.x/server-dart/examples/avatars/get-browser.md index 1f326e8066..2808587493 100644 --- a/docs/examples/1.8.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.8.x/server-dart/examples/avatars/get-browser.md @@ -8,7 +8,7 @@ Client client = Client() Avatars avatars = Avatars(client); Uint8List result = await avatars.getBrowser( - code: Browser.avantBrowser, + code: enums.Browser.avantBrowser, width: 0, // (optional) height: 0, // (optional) quality: -1, // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.8.x/server-dart/examples/avatars/get-credit-card.md index 8232d7b2b9..32036da12b 100644 --- a/docs/examples/1.8.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/server-dart/examples/avatars/get-credit-card.md @@ -8,7 +8,7 @@ Client client = Client() Avatars avatars = Avatars(client); Uint8List result = await avatars.getCreditCard( - code: CreditCard.americanExpress, + code: enums.CreditCard.americanExpress, width: 0, // (optional) height: 0, // (optional) quality: -1, // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.8.x/server-dart/examples/avatars/get-flag.md index 0aea028e5b..e3e5d6e080 100644 --- a/docs/examples/1.8.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.8.x/server-dart/examples/avatars/get-flag.md @@ -8,7 +8,7 @@ Client client = Client() Avatars avatars = Avatars(client); Uint8List result = await avatars.getFlag( - code: Flag.afghanistan, + code: enums.Flag.afghanistan, width: 0, // (optional) height: 0, // (optional) quality: -1, // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/server-dart/examples/avatars/get-screenshot.md index da80f30bee..9cb912f921 100644 --- a/docs/examples/1.8.x/server-dart/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/server-dart/examples/avatars/get-screenshot.md @@ -16,19 +16,19 @@ Uint8List result = await avatars.getScreenshot( viewportWidth: 1920, // (optional) viewportHeight: 1080, // (optional) scale: 2, // (optional) - theme: Theme.light, // (optional) + theme: enums.Theme.dark, // (optional) userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', // (optional) fullpage: true, // (optional) locale: 'en-US', // (optional) - timezone: Timezone.africaAbidjan, // (optional) + timezone: enums.Timezone.americaNewYork, // (optional) latitude: 37.7749, // (optional) longitude: -122.4194, // (optional) accuracy: 100, // (optional) touch: true, // (optional) - permissions: ["geolocation","notifications"], // (optional) + permissions: [enums.BrowserPermission.geolocation, enums.BrowserPermission.notifications], // (optional) sleep: 3, // (optional) width: 800, // (optional) height: 600, // (optional) quality: 85, // (optional) - output: Output.jpg, // (optional) + output: enums.ImageFormat.jpeg, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-index.md b/docs/examples/1.8.x/server-dart/examples/databases/create-index.md index c3fa1abd60..de5e0e23e3 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-index.md @@ -11,8 +11,8 @@ Index result = await databases.createIndex( databaseId: '', collectionId: '', key: '', - type: IndexType.key, + type: enums.IndexType.key, attributes: [], - orders: [], // (optional) + orders: [enums.OrderBy.asc], // (optional) lengths: [], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-relationship-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-relationship-attribute.md index dcdf34fcb8..b8ad5e0c87 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-relationship-attribute.md @@ -11,9 +11,9 @@ AttributeRelationship result = await databases.createRelationshipAttribute( databaseId: '', collectionId: '', relatedCollectionId: '', - type: RelationshipType.oneToOne, + type: enums.RelationshipType.oneToOne, twoWay: false, // (optional) key: '', // (optional) twoWayKey: '', // (optional) - onDelete: RelationMutate.cascade, // (optional) + onDelete: enums.RelationMutate.cascade, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/get-attribute.md index 8329f8db05..91a3646121 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/get-attribute.md @@ -7,7 +7,7 @@ Client client = Client() Databases databases = Databases(client); - result = await databases.getAttribute( +AttributeBoolean result = await databases.getAttribute( databaseId: '', collectionId: '', key: '', diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.8.x/server-dart/examples/databases/update-collection.md index ff9b7eb4ee..ba84d6c832 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-collection.md @@ -12,7 +12,7 @@ Databases databases = Databases(client); Collection result = await databases.updateCollection( databaseId: '', collectionId: '', - name: '', + name: '', // (optional) permissions: [Permission.read(Role.any())], // (optional) documentSecurity: false, // (optional) enabled: false, // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-relationship-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-relationship-attribute.md index 28aac9643f..3d7a966c7a 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-relationship-attribute.md @@ -11,6 +11,6 @@ AttributeRelationship result = await databases.updateRelationshipAttribute( databaseId: '', collectionId: '', key: '', - onDelete: RelationMutate.cascade, // (optional) + onDelete: enums.RelationMutate.cascade, // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update.md b/docs/examples/1.8.x/server-dart/examples/databases/update.md index a46f116389..54efc0b8c6 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/update.md @@ -9,6 +9,6 @@ Databases databases = Databases(client); Database result = await databases.update( databaseId: '', - name: '', + name: '', // (optional) enabled: false, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.8.x/server-dart/examples/functions/create-execution.md index 64b28d5f0c..4105034801 100644 --- a/docs/examples/1.8.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-dart/examples/functions/create-execution.md @@ -12,7 +12,7 @@ Execution result = await functions.createExecution( body: '', // (optional) xasync: false, // (optional) path: '', // (optional) - method: ExecutionMethod.gET, // (optional) + method: enums.ExecutionMethod.gET, // (optional) headers: {}, // (optional) scheduledAt: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/functions/create-template-deployment.md b/docs/examples/1.8.x/server-dart/examples/functions/create-template-deployment.md index f5b6cdeb1f..fec6e111ab 100644 --- a/docs/examples/1.8.x/server-dart/examples/functions/create-template-deployment.md +++ b/docs/examples/1.8.x/server-dart/examples/functions/create-template-deployment.md @@ -12,7 +12,7 @@ Deployment result = await functions.createTemplateDeployment( repository: '', owner: '', rootDirectory: '', - type: TemplateReferenceType.commit, + type: enums.TemplateReferenceType.commit, reference: '', activate: false, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/functions/create-vcs-deployment.md b/docs/examples/1.8.x/server-dart/examples/functions/create-vcs-deployment.md index 0c12315ffc..375b30a005 100644 --- a/docs/examples/1.8.x/server-dart/examples/functions/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-dart/examples/functions/create-vcs-deployment.md @@ -9,7 +9,7 @@ Functions functions = Functions(client); Deployment result = await functions.createVcsDeployment( functionId: '', - type: VCSReferenceType.branch, + type: enums.VCSReferenceType.branch, reference: '', activate: false, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/functions/create.md b/docs/examples/1.8.x/server-dart/examples/functions/create.md index 2276872e91..a9d439775e 100644 --- a/docs/examples/1.8.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.8.x/server-dart/examples/functions/create.md @@ -10,7 +10,7 @@ Functions functions = Functions(client); Func result = await functions.create( functionId: '', name: '', - runtime: Runtime.node145, + runtime: enums.Runtime.node145, execute: ["any"], // (optional) events: [], // (optional) schedule: '', // (optional) @@ -19,7 +19,7 @@ Func result = await functions.create( logging: false, // (optional) entrypoint: '', // (optional) commands: '', // (optional) - scopes: [], // (optional) + scopes: [enums.Scopes.sessionsWrite], // (optional) installationId: '', // (optional) providerRepositoryId: '', // (optional) providerBranch: '', // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/functions/get-deployment-download.md b/docs/examples/1.8.x/server-dart/examples/functions/get-deployment-download.md index 1b93e3bad9..29352dca29 100644 --- a/docs/examples/1.8.x/server-dart/examples/functions/get-deployment-download.md +++ b/docs/examples/1.8.x/server-dart/examples/functions/get-deployment-download.md @@ -10,5 +10,5 @@ Functions functions = Functions(client); Uint8List result = await functions.getDeploymentDownload( functionId: '', deploymentId: '', - type: DeploymentDownloadType.source, // (optional) + type: enums.DeploymentDownloadType.source, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/functions/update.md b/docs/examples/1.8.x/server-dart/examples/functions/update.md index bf3e39cc56..19fc73778f 100644 --- a/docs/examples/1.8.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.8.x/server-dart/examples/functions/update.md @@ -10,7 +10,7 @@ Functions functions = Functions(client); Func result = await functions.update( functionId: '', name: '', - runtime: Runtime.node145, // (optional) + runtime: enums.Runtime.node145, // (optional) execute: ["any"], // (optional) events: [], // (optional) schedule: '', // (optional) @@ -19,7 +19,7 @@ Func result = await functions.update( logging: false, // (optional) entrypoint: '', // (optional) commands: '', // (optional) - scopes: [], // (optional) + scopes: [enums.Scopes.sessionsWrite], // (optional) installationId: '', // (optional) providerRepositoryId: '', // (optional) providerBranch: '', // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/health/get-cache.md b/docs/examples/1.8.x/server-dart/examples/health/get-cache.md index 6312e3cbe6..e3c3043151 100644 --- a/docs/examples/1.8.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.8.x/server-dart/examples/health/get-cache.md @@ -7,4 +7,4 @@ Client client = Client() Health health = Health(client); -HealthStatus result = await health.getCache(); +HealthStatusList result = await health.getCache(); diff --git a/docs/examples/1.8.x/server-dart/examples/health/get-db.md b/docs/examples/1.8.x/server-dart/examples/health/get-db.md index 25ad9607f5..ef88004fb0 100644 --- a/docs/examples/1.8.x/server-dart/examples/health/get-db.md +++ b/docs/examples/1.8.x/server-dart/examples/health/get-db.md @@ -7,4 +7,4 @@ Client client = Client() Health health = Health(client); -HealthStatus result = await health.getDB(); +HealthStatusList result = await health.getDB(); diff --git a/docs/examples/1.8.x/server-dart/examples/health/get-failed-jobs.md b/docs/examples/1.8.x/server-dart/examples/health/get-failed-jobs.md index b375c5793c..4ed7bac9c0 100644 --- a/docs/examples/1.8.x/server-dart/examples/health/get-failed-jobs.md +++ b/docs/examples/1.8.x/server-dart/examples/health/get-failed-jobs.md @@ -8,6 +8,6 @@ Client client = Client() Health health = Health(client); HealthQueue result = await health.getFailedJobs( - name: Name.v1Database, + name: enums.Name.v1Database, threshold: 0, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/health/get-pub-sub.md b/docs/examples/1.8.x/server-dart/examples/health/get-pub-sub.md index d544fbfc40..69c4465957 100644 --- a/docs/examples/1.8.x/server-dart/examples/health/get-pub-sub.md +++ b/docs/examples/1.8.x/server-dart/examples/health/get-pub-sub.md @@ -7,4 +7,4 @@ Client client = Client() Health health = Health(client); -HealthStatus result = await health.getPubSub(); +HealthStatusList result = await health.getPubSub(); diff --git a/docs/examples/1.8.x/server-dart/examples/health/get-queue-audits.md b/docs/examples/1.8.x/server-dart/examples/health/get-queue-audits.md new file mode 100644 index 0000000000..093c77e140 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/health/get-queue-audits.md @@ -0,0 +1,12 @@ +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 + +Health health = Health(client); + +HealthQueue result = await health.getQueueAudits( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/create-push.md b/docs/examples/1.8.x/server-dart/examples/messaging/create-push.md index 4b9f7d3c52..14f95e1855 100644 --- a/docs/examples/1.8.x/server-dart/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-dart/examples/messaging/create-push.md @@ -26,5 +26,5 @@ Message result = await messaging.createPush( scheduledAt: '', // (optional) contentAvailable: false, // (optional) critical: false, // (optional) - priority: MessagePriority.normal, // (optional) + priority: enums.MessagePriority.normal, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/create-smtp-provider.md index 644d30faa7..b808690602 100644 --- a/docs/examples/1.8.x/server-dart/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-dart/examples/messaging/create-smtp-provider.md @@ -14,7 +14,7 @@ Provider result = await messaging.createSMTPProvider( port: 1, // (optional) username: '', // (optional) password: '', // (optional) - encryption: SmtpEncryption.none, // (optional) + encryption: enums.SmtpEncryption.none, // (optional) autoTLS: false, // (optional) mailer: '', // (optional) fromName: '', // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/update-push.md b/docs/examples/1.8.x/server-dart/examples/messaging/update-push.md index cbae5dfabb..eaaa40e00d 100644 --- a/docs/examples/1.8.x/server-dart/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-dart/examples/messaging/update-push.md @@ -26,5 +26,5 @@ Message result = await messaging.updatePush( scheduledAt: '', // (optional) contentAvailable: false, // (optional) critical: false, // (optional) - priority: MessagePriority.normal, // (optional) + priority: enums.MessagePriority.normal, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/update-smtp-provider.md index 911fa14485..9e362c1d4a 100644 --- a/docs/examples/1.8.x/server-dart/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-dart/examples/messaging/update-smtp-provider.md @@ -14,7 +14,7 @@ Provider result = await messaging.updateSMTPProvider( port: 1, // (optional) username: '', // (optional) password: '', // (optional) - encryption: SmtpEncryption.none, // (optional) + encryption: enums.SmtpEncryption.none, // (optional) autoTLS: false, // (optional) mailer: '', // (optional) fromName: '', // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/sites/create-template-deployment.md b/docs/examples/1.8.x/server-dart/examples/sites/create-template-deployment.md index 8826b1f462..4a9e005634 100644 --- a/docs/examples/1.8.x/server-dart/examples/sites/create-template-deployment.md +++ b/docs/examples/1.8.x/server-dart/examples/sites/create-template-deployment.md @@ -12,7 +12,7 @@ Deployment result = await sites.createTemplateDeployment( repository: '', owner: '', rootDirectory: '', - type: TemplateReferenceType.branch, + type: enums.TemplateReferenceType.branch, reference: '', activate: false, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/sites/create-vcs-deployment.md b/docs/examples/1.8.x/server-dart/examples/sites/create-vcs-deployment.md index 52133a535e..e0683ab818 100644 --- a/docs/examples/1.8.x/server-dart/examples/sites/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-dart/examples/sites/create-vcs-deployment.md @@ -9,7 +9,7 @@ Sites sites = Sites(client); Deployment result = await sites.createVcsDeployment( siteId: '', - type: VCSReferenceType.branch, + type: enums.VCSReferenceType.branch, reference: '', activate: false, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/sites/create.md b/docs/examples/1.8.x/server-dart/examples/sites/create.md index e6ec4a6da8..db044c3803 100644 --- a/docs/examples/1.8.x/server-dart/examples/sites/create.md +++ b/docs/examples/1.8.x/server-dart/examples/sites/create.md @@ -10,15 +10,15 @@ Sites sites = Sites(client); Site result = await sites.create( siteId: '', name: '', - framework: Framework.analog, - buildRuntime: BuildRuntime.node145, + framework: enums.Framework.analog, + buildRuntime: enums.BuildRuntime.node145, enabled: false, // (optional) logging: false, // (optional) timeout: 1, // (optional) installCommand: '', // (optional) buildCommand: '', // (optional) outputDirectory: '', // (optional) - adapter: Adapter.static, // (optional) + adapter: enums.Adapter.static, // (optional) installationId: '', // (optional) fallbackFile: '', // (optional) providerRepositoryId: '', // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/sites/get-deployment-download.md b/docs/examples/1.8.x/server-dart/examples/sites/get-deployment-download.md index f6bbb3c35d..0bcf94618e 100644 --- a/docs/examples/1.8.x/server-dart/examples/sites/get-deployment-download.md +++ b/docs/examples/1.8.x/server-dart/examples/sites/get-deployment-download.md @@ -10,5 +10,5 @@ Sites sites = Sites(client); Uint8List result = await sites.getDeploymentDownload( siteId: '', deploymentId: '', - type: DeploymentDownloadType.source, // (optional) + type: enums.DeploymentDownloadType.source, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/sites/update.md b/docs/examples/1.8.x/server-dart/examples/sites/update.md index 2cfd68633b..4c05413ccd 100644 --- a/docs/examples/1.8.x/server-dart/examples/sites/update.md +++ b/docs/examples/1.8.x/server-dart/examples/sites/update.md @@ -10,15 +10,15 @@ Sites sites = Sites(client); Site result = await sites.update( siteId: '', name: '', - framework: Framework.analog, + framework: enums.Framework.analog, enabled: false, // (optional) logging: false, // (optional) timeout: 1, // (optional) installCommand: '', // (optional) buildCommand: '', // (optional) outputDirectory: '', // (optional) - buildRuntime: BuildRuntime.node145, // (optional) - adapter: Adapter.static, // (optional) + buildRuntime: enums.BuildRuntime.node145, // (optional) + adapter: enums.Adapter.static, // (optional) fallbackFile: '', // (optional) installationId: '', // (optional) providerRepositoryId: '', // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.8.x/server-dart/examples/storage/create-bucket.md index 3d306bd403..157ea524f5 100644 --- a/docs/examples/1.8.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.8.x/server-dart/examples/storage/create-bucket.md @@ -17,7 +17,7 @@ Bucket result = await storage.createBucket( enabled: false, // (optional) maximumFileSize: 1, // (optional) allowedFileExtensions: [], // (optional) - compression: Compression.none, // (optional) + compression: enums.Compression.none, // (optional) encryption: false, // (optional) antivirus: false, // (optional) transformations: false, // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.8.x/server-dart/examples/storage/get-file-preview.md index a14e12c630..b4a273d2cb 100644 --- a/docs/examples/1.8.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/server-dart/examples/storage/get-file-preview.md @@ -12,7 +12,7 @@ Uint8List result = await storage.getFilePreview( fileId: '', width: 0, // (optional) height: 0, // (optional) - gravity: ImageGravity.center, // (optional) + gravity: enums.ImageGravity.center, // (optional) quality: -1, // (optional) borderWidth: 0, // (optional) borderColor: '', // (optional) @@ -20,6 +20,6 @@ Uint8List result = await storage.getFilePreview( opacity: 0, // (optional) rotation: -360, // (optional) background: '', // (optional) - output: ImageFormat.jpg, // (optional) + output: enums.ImageFormat.jpg, // (optional) token: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.8.x/server-dart/examples/storage/update-bucket.md index e81b458600..65126d9687 100644 --- a/docs/examples/1.8.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.8.x/server-dart/examples/storage/update-bucket.md @@ -17,7 +17,7 @@ Bucket result = await storage.updateBucket( enabled: false, // (optional) maximumFileSize: 1, // (optional) allowedFileExtensions: [], // (optional) - compression: Compression.none, // (optional) + compression: enums.Compression.none, // (optional) encryption: false, // (optional) antivirus: false, // (optional) transformations: false, // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-index.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-index.md index 64fea75726..1b2b3d7a7f 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-index.md @@ -11,8 +11,8 @@ ColumnIndex result = await tablesDB.createIndex( databaseId: '', tableId: '', key: '', - type: IndexType.key, + type: enums.IndexType.key, columns: [], - orders: [], // (optional) + orders: [enums.OrderBy.asc], // (optional) lengths: [], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-relationship-column.md index 3b2ea3d141..85995f5dee 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-relationship-column.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-relationship-column.md @@ -11,9 +11,9 @@ ColumnRelationship result = await tablesDB.createRelationshipColumn( databaseId: '', tableId: '', relatedTableId: '', - type: RelationshipType.oneToOne, + type: enums.RelationshipType.oneToOne, twoWay: false, // (optional) key: '', // (optional) twoWayKey: '', // (optional) - onDelete: RelationMutate.cascade, // (optional) + onDelete: enums.RelationMutate.cascade, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/get-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/get-column.md index 437d72e621..715ba189e0 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/get-column.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/get-column.md @@ -7,7 +7,7 @@ Client client = Client() TablesDB tablesDB = TablesDB(client); - result = await tablesDB.getColumn( +ColumnBoolean result = await tablesDB.getColumn( databaseId: '', tableId: '', key: '', diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-relationship-column.md index 95e09d38b2..52134861be 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-relationship-column.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-relationship-column.md @@ -11,6 +11,6 @@ ColumnRelationship result = await tablesDB.updateRelationshipColumn( databaseId: '', tableId: '', key: '', - onDelete: RelationMutate.cascade, // (optional) + onDelete: enums.RelationMutate.cascade, // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-table.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-table.md index bdaffe9c68..eb23c90ca7 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-table.md @@ -12,7 +12,7 @@ TablesDB tablesDB = TablesDB(client); Table result = await tablesDB.updateTable( databaseId: '', tableId: '', - name: '', + name: '', // (optional) permissions: [Permission.read(Role.any())], // (optional) rowSecurity: false, // (optional) enabled: false, // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update.md index 81d3379911..0eb441c19d 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update.md @@ -9,6 +9,6 @@ TablesDB tablesDB = TablesDB(client); Database result = await tablesDB.update( databaseId: '', - name: '', + name: '', // (optional) enabled: false, // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.8.x/server-dart/examples/teams/create-membership.md index f13a6e69bb..e8dfcdc833 100644 --- a/docs/examples/1.8.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/server-dart/examples/teams/create-membership.md @@ -9,7 +9,7 @@ Teams teams = Teams(client); Membership result = await teams.createMembership( teamId: '', - roles: [], + roles: [enums.Roles.admin], email: 'email@example.com', // (optional) userId: '', // (optional) phone: '+12065550100', // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/teams/update-membership.md b/docs/examples/1.8.x/server-dart/examples/teams/update-membership.md index 87a4325857..ebb6587b96 100644 --- a/docs/examples/1.8.x/server-dart/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/server-dart/examples/teams/update-membership.md @@ -10,5 +10,5 @@ Teams teams = Teams(client); Membership result = await teams.updateMembership( teamId: '', membershipId: '', - roles: [], + roles: [enums.Roles.admin], ); diff --git a/docs/examples/1.8.x/server-dart/examples/users/create-sha-user.md b/docs/examples/1.8.x/server-dart/examples/users/create-sha-user.md index 628cf3297e..92a7aab10a 100644 --- a/docs/examples/1.8.x/server-dart/examples/users/create-sha-user.md +++ b/docs/examples/1.8.x/server-dart/examples/users/create-sha-user.md @@ -11,6 +11,6 @@ User result = await users.createSHAUser( userId: '', email: 'email@example.com', password: 'password', - passwordVersion: PasswordHash.sha1, // (optional) + passwordVersion: enums.PasswordHash.sha1, // (optional) name: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/users/create-target.md b/docs/examples/1.8.x/server-dart/examples/users/create-target.md index 354a8dbb48..8803f82d56 100644 --- a/docs/examples/1.8.x/server-dart/examples/users/create-target.md +++ b/docs/examples/1.8.x/server-dart/examples/users/create-target.md @@ -10,7 +10,7 @@ Users users = Users(client); Target result = await users.createTarget( userId: '', targetId: '', - providerType: MessagingProviderType.email, + providerType: enums.MessagingProviderType.email, identifier: '', providerId: '', // (optional) name: '', // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-dart/examples/users/delete-mfa-authenticator.md index b5dcc6af55..65e9b84e72 100644 --- a/docs/examples/1.8.x/server-dart/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-dart/examples/users/delete-mfa-authenticator.md @@ -9,5 +9,5 @@ Users users = Users(client); await users.deleteMFAAuthenticator( userId: '', - type: AuthenticatorType.totp, + type: enums.AuthenticatorType.totp, ); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-jwt.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-jwt.md index 9572d69014..d3e1348f86 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-jwt.md @@ -9,4 +9,6 @@ Client client = new Client() Account account = new Account(client); -JWT result = await account.CreateJWT(); +JWT result = await account.CreateJWT( + duration: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/server-dotnet/examples/avatars/get-screenshot.md index 58e6e4267a..eb827d5162 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/server-dotnet/examples/avatars/get-screenshot.md @@ -19,19 +19,19 @@ byte[] result = await avatars.GetScreenshot( viewportWidth: 1920, // optional viewportHeight: 1080, // optional scale: 2, // optional - theme: Theme.Light, // optional + theme: Theme.Dark, // optional userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15", // optional fullpage: true, // optional locale: "en-US", // optional - timezone: Timezone.AfricaAbidjan, // optional + timezone: Timezone.AmericaNewYork, // optional latitude: 37.7749, // optional longitude: -122.4194, // optional accuracy: 100, // optional touch: true, // optional - permissions: ["geolocation","notifications"], // optional + permissions: new List<BrowserPermission> { BrowserPermission.Geolocation, BrowserPermission.Notifications }, // optional sleep: 3, // optional width: 800, // optional height: 600, // optional quality: 85, // optional - output: Output.Jpg // optional + output: ImageFormat.Jpeg // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-index.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-index.md index ae5583c68d..c1867ce6bb 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-index.md @@ -16,6 +16,6 @@ Index result = await databases.CreateIndex( key: "", type: IndexType.Key, attributes: new List(), - orders: new List(), // optional + orders: new List<OrderBy> { OrderBy.Asc }, // optional lengths: new List() // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/get-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/get-attribute.md index d9e02e36b6..024f14fb59 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/get-attribute.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/get-attribute.md @@ -9,7 +9,7 @@ Client client = new Client() Databases databases = new Databases(client); - result = await databases.GetAttribute( +AttributeBoolean result = await databases.GetAttribute( databaseId: "", collectionId: "", key: "" diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-collection.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-collection.md index 5448723b30..05648d9aab 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-collection.md @@ -12,7 +12,7 @@ Databases databases = new Databases(client); Collection result = await databases.UpdateCollection( databaseId: "", collectionId: "", - name: "", + name: "", // optional permissions: new List { Permission.Read(Role.Any()) }, // optional documentSecurity: false, // optional enabled: false // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update.md index d4dd28aa2b..75db2a55ff 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/update.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update.md @@ -11,6 +11,6 @@ Databases databases = new Databases(client); Database result = await databases.Update( databaseId: "", - name: "", + name: "", // optional enabled: false // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/functions/create.md b/docs/examples/1.8.x/server-dotnet/examples/functions/create.md index 7d26480d68..447ad5ced6 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/functions/create.md +++ b/docs/examples/1.8.x/server-dotnet/examples/functions/create.md @@ -22,7 +22,7 @@ Function result = await functions.Create( logging: false, // optional entrypoint: "", // optional commands: "", // optional - scopes: new List(), // optional + scopes: new List<Scopes> { Scopes.SessionsWrite }, // optional installationId: "", // optional providerRepositoryId: "", // optional providerBranch: "", // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/functions/update.md b/docs/examples/1.8.x/server-dotnet/examples/functions/update.md index a41a0fd331..cb1a251c46 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/functions/update.md +++ b/docs/examples/1.8.x/server-dotnet/examples/functions/update.md @@ -22,7 +22,7 @@ Function result = await functions.Update( logging: false, // optional entrypoint: "", // optional commands: "", // optional - scopes: new List(), // optional + scopes: new List<Scopes> { Scopes.SessionsWrite }, // optional installationId: "", // optional providerRepositoryId: "", // optional providerBranch: "", // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/health/get-cache.md b/docs/examples/1.8.x/server-dotnet/examples/health/get-cache.md index 0c5ec37c2b..bf66405c42 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/health/get-cache.md +++ b/docs/examples/1.8.x/server-dotnet/examples/health/get-cache.md @@ -9,4 +9,4 @@ Client client = new Client() Health health = new Health(client); -HealthStatus result = await health.GetCache(); +HealthStatusList result = await health.GetCache(); diff --git a/docs/examples/1.8.x/server-dotnet/examples/health/get-db.md b/docs/examples/1.8.x/server-dotnet/examples/health/get-db.md index 7ae8b14854..ab7a8ff6a8 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/health/get-db.md +++ b/docs/examples/1.8.x/server-dotnet/examples/health/get-db.md @@ -9,4 +9,4 @@ Client client = new Client() Health health = new Health(client); -HealthStatus result = await health.GetDB(); +HealthStatusList result = await health.GetDB(); diff --git a/docs/examples/1.8.x/server-dotnet/examples/health/get-pub-sub.md b/docs/examples/1.8.x/server-dotnet/examples/health/get-pub-sub.md index 4ffdd7e531..2ddf3963b7 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/health/get-pub-sub.md +++ b/docs/examples/1.8.x/server-dotnet/examples/health/get-pub-sub.md @@ -9,4 +9,4 @@ Client client = new Client() Health health = new Health(client); -HealthStatus result = await health.GetPubSub(); +HealthStatusList result = await health.GetPubSub(); diff --git a/docs/examples/1.8.x/server-dotnet/examples/health/get-queue-audits.md b/docs/examples/1.8.x/server-dotnet/examples/health/get-queue-audits.md new file mode 100644 index 0000000000..24ff6ad0a0 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/health/get-queue-audits.md @@ -0,0 +1,14 @@ +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 + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueAudits( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-index.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-index.md index 3b19981ec6..65a9973b41 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-index.md @@ -16,6 +16,6 @@ ColumnIndex result = await tablesDB.CreateIndex( key: "", type: IndexType.Key, columns: new List(), - orders: new List(), // optional + orders: new List<OrderBy> { OrderBy.Asc }, // optional lengths: new List() // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/get-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/get-column.md index 70089aa019..e4c17807e8 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/get-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/get-column.md @@ -9,7 +9,7 @@ Client client = new Client() TablesDB tablesDB = new TablesDB(client); - result = await tablesDB.GetColumn( +ColumnBoolean result = await tablesDB.GetColumn( databaseId: "", tableId: "", key: "" diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-table.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-table.md index 24948fd8cf..9e2e56722f 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-table.md @@ -12,7 +12,7 @@ TablesDB tablesDB = new TablesDB(client); Table result = await tablesDB.UpdateTable( databaseId: "", tableId: "", - name: "", + name: "", // optional permissions: new List { Permission.Read(Role.Any()) }, // optional rowSecurity: false, // optional enabled: false // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update.md index 920866bad4..e254acb491 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update.md @@ -11,6 +11,6 @@ TablesDB tablesDB = new TablesDB(client); Database result = await tablesDB.Update( databaseId: "", - name: "", + name: "", // optional enabled: false // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/teams/create-membership.md b/docs/examples/1.8.x/server-dotnet/examples/teams/create-membership.md index f3f5682cbf..787d595e99 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/server-dotnet/examples/teams/create-membership.md @@ -1,4 +1,5 @@ using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; @@ -11,7 +12,7 @@ Teams teams = new Teams(client); Membership result = await teams.CreateMembership( teamId: "", - roles: new List(), + roles: new List<Roles> { Roles.Admin }, email: "email@example.com", // optional userId: "", // optional phone: "+12065550100", // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/teams/update-membership.md b/docs/examples/1.8.x/server-dotnet/examples/teams/update-membership.md index 3583b4d0a9..dd942cc8b9 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/server-dotnet/examples/teams/update-membership.md @@ -1,4 +1,5 @@ using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; @@ -12,5 +13,5 @@ Teams teams = new Teams(client); Membership result = await teams.UpdateMembership( teamId: "", membershipId: "", - roles: new List() + roles: new List<Roles> { Roles.Admin } ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/account/create-jwt.md b/docs/examples/1.8.x/server-go/examples/account/create-jwt.md index b3adb79574..a5952d8cf7 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-jwt.md @@ -14,4 +14,6 @@ client := client.New( service := account.New(client) -response, error := service.CreateJWT()) +response, error := service.CreateJWT( + account.WithCreateJWTDuration(0), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-collection.md b/docs/examples/1.8.x/server-go/examples/databases/update-collection.md index 4bafd5eb2c..7470d5a121 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-go/examples/databases/update-collection.md @@ -17,7 +17,7 @@ service := databases.New(client) response, error := service.UpdateCollection( "", "", - "", + databases.WithUpdateCollectionName(""), databases.WithUpdateCollectionPermissions(interface{}{"read("any")"}), databases.WithUpdateCollectionDocumentSecurity(false), databases.WithUpdateCollectionEnabled(false), diff --git a/docs/examples/1.8.x/server-go/examples/databases/update.md b/docs/examples/1.8.x/server-go/examples/databases/update.md index 49d85eba08..4aa4a4d703 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/update.md +++ b/docs/examples/1.8.x/server-go/examples/databases/update.md @@ -16,6 +16,6 @@ service := databases.New(client) response, error := service.Update( "", - "", + databases.WithUpdateName(""), databases.WithUpdateEnabled(false), ) diff --git a/docs/examples/1.8.x/server-go/examples/health/get-queue-audits.md b/docs/examples/1.8.x/server-go/examples/health/get-queue-audits.md new file mode 100644 index 0000000000..413a7e6cfb --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/health/get-queue-audits.md @@ -0,0 +1,19 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := health.New(client) + +response, error := service.GetQueueAudits( + health.WithGetQueueAuditsThreshold(0), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-table.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-table.md index 4eb692ac14..a40cd59794 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-table.md @@ -17,7 +17,7 @@ service := tablesdb.New(client) response, error := service.UpdateTable( "", "", - "", + tablesdb.WithUpdateTableName(""), tablesdb.WithUpdateTablePermissions(interface{}{"read("any")"}), tablesdb.WithUpdateTableRowSecurity(false), tablesdb.WithUpdateTableEnabled(false), diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update.md index 3ad3a0c2f5..47641efc9c 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update.md @@ -16,6 +16,6 @@ service := tablesdb.New(client) response, error := service.Update( "", - "", + tablesdb.WithUpdateName(""), tablesdb.WithUpdateEnabled(false), ) diff --git a/docs/examples/1.8.x/server-graphql/examples/account/create-jwt.md b/docs/examples/1.8.x/server-graphql/examples/account/create-jwt.md index a5204f1256..364b6c309a 100644 --- a/docs/examples/1.8.x/server-graphql/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-graphql/examples/account/create-jwt.md @@ -1,5 +1,7 @@ mutation { - accountCreateJWT { + accountCreateJWT( + duration: 0 + ) { jwt } } diff --git a/docs/examples/1.8.x/server-graphql/examples/health/get-queue-audits.md b/docs/examples/1.8.x/server-graphql/examples/health/get-queue-audits.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/storage/create-bucket.md b/docs/examples/1.8.x/server-graphql/examples/storage/create-bucket.md index fe54321f90..dfee4096fa 100644 --- a/docs/examples/1.8.x/server-graphql/examples/storage/create-bucket.md +++ b/docs/examples/1.8.x/server-graphql/examples/storage/create-bucket.md @@ -25,5 +25,6 @@ mutation { encryption antivirus transformations + totalSize } } diff --git a/docs/examples/1.8.x/server-graphql/examples/storage/update-bucket.md b/docs/examples/1.8.x/server-graphql/examples/storage/update-bucket.md index ab4dc776fa..ed4dc7a663 100644 --- a/docs/examples/1.8.x/server-graphql/examples/storage/update-bucket.md +++ b/docs/examples/1.8.x/server-graphql/examples/storage/update-bucket.md @@ -25,5 +25,6 @@ mutation { encryption antivirus transformations + totalSize } } diff --git a/docs/examples/1.8.x/server-graphql/examples/storage/update-file.md b/docs/examples/1.8.x/server-graphql/examples/storage/update-file.md index b7832048c7..492f1e979a 100644 --- a/docs/examples/1.8.x/server-graphql/examples/storage/update-file.md +++ b/docs/examples/1.8.x/server-graphql/examples/storage/update-file.md @@ -16,5 +16,7 @@ mutation { sizeOriginal chunksTotal chunksUploaded + encryption + compression } } diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-jwt.md b/docs/examples/1.8.x/server-kotlin/java/account/create-jwt.md index 5930854bd2..16257306c0 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-jwt.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-jwt.md @@ -9,11 +9,15 @@ Client client = new Client() Account account = new Account(client); -account.createJWT(new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } +account.createJWT( + 0, // duration (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); - System.out.println(result); -})); diff --git a/docs/examples/1.8.x/server-kotlin/java/avatars/get-screenshot.md b/docs/examples/1.8.x/server-kotlin/java/avatars/get-screenshot.md index 5eea09678b..a13b92ff8d 100644 --- a/docs/examples/1.8.x/server-kotlin/java/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/server-kotlin/java/avatars/get-screenshot.md @@ -3,7 +3,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; import io.appwrite.enums.Theme; import io.appwrite.enums.Timezone; -import io.appwrite.enums.Output; +import io.appwrite.enums.BrowserPermission; +import io.appwrite.enums.ImageFormat; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -21,21 +22,21 @@ avatars.getScreenshot( 1920, // viewportWidth (optional) 1080, // viewportHeight (optional) 2, // scale (optional) - Theme.LIGHT, // theme (optional) + Theme.DARK, // theme (optional) "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15", // userAgent (optional) true, // fullpage (optional) "en-US", // locale (optional) - Timezone.AFRICA_ABIDJAN, // timezone (optional) + Timezone.AMERICA_NEW_YORK, // timezone (optional) 37.7749, // latitude (optional) -122.4194, // longitude (optional) 100, // accuracy (optional) true, // touch (optional) - List.of("geolocation", "notifications"), // permissions (optional) + List.of(BrowserPermission.GEOLOCATION, BrowserPermission.NOTIFICATIONS), // permissions (optional) 3, // sleep (optional) 800, // width (optional) 600, // height (optional) 85, // quality (optional) - Output.JPG, // output (optional) + ImageFormat.JPEG, // output (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-index.md index 1fb1efb826..d6bb380110 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-index.md @@ -2,6 +2,7 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; import io.appwrite.enums.IndexType; +import io.appwrite.enums.OrderBy; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -16,7 +17,7 @@ databases.createIndex( "", // key IndexType.KEY, // type List.of(), // attributes - List.of(), // orders (optional) + List.of(OrderBy.ASC), // orders (optional) List.of(), // lengths (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-collection.md index 898f1aafe5..11d6b66c29 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-collection.md @@ -14,7 +14,7 @@ Databases databases = new Databases(client); databases.updateCollection( "", // databaseId "", // collectionId - "", // name + "", // name (optional) List.of(Permission.read(Role.any())), // permissions (optional) false, // documentSecurity (optional) false, // enabled (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update.md b/docs/examples/1.8.x/server-kotlin/java/databases/update.md index 9928dae6f6..138ca61b9d 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update.md @@ -11,7 +11,7 @@ Databases databases = new Databases(client); databases.update( "", // databaseId - "", // name + "", // name (optional) false, // enabled (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/functions/create.md b/docs/examples/1.8.x/server-kotlin/java/functions/create.md index 17e291140a..04cbcd4927 100644 --- a/docs/examples/1.8.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.8.x/server-kotlin/java/functions/create.md @@ -2,6 +2,7 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; import io.appwrite.enums.Runtime; +import io.appwrite.enums.Scopes; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -22,7 +23,7 @@ functions.create( false, // logging (optional) "", // entrypoint (optional) "", // commands (optional) - List.of(), // scopes (optional) + List.of(Scopes.SESSIONS_WRITE), // scopes (optional) "", // installationId (optional) "", // providerRepositoryId (optional) "", // providerBranch (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/functions/update.md b/docs/examples/1.8.x/server-kotlin/java/functions/update.md index 4b54a6361d..010f56df28 100644 --- a/docs/examples/1.8.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.8.x/server-kotlin/java/functions/update.md @@ -2,6 +2,7 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; import io.appwrite.enums.Runtime; +import io.appwrite.enums.Scopes; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -22,7 +23,7 @@ functions.update( false, // logging (optional) "", // entrypoint (optional) "", // commands (optional) - List.of(), // scopes (optional) + List.of(Scopes.SESSIONS_WRITE), // scopes (optional) "", // installationId (optional) "", // providerRepositoryId (optional) "", // providerBranch (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/health/get-queue-audits.md b/docs/examples/1.8.x/server-kotlin/java/health/get-queue-audits.md new file mode 100644 index 0000000000..262fb6e8e9 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/health/get-queue-audits.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Health health = new Health(client); + +health.getQueueAudits( + 0, // threshold (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-index.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-index.md index 07076d9763..db74aae13b 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-index.md @@ -2,6 +2,7 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; import io.appwrite.enums.IndexType; +import io.appwrite.enums.OrderBy; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -16,7 +17,7 @@ tablesDB.createIndex( "", // key IndexType.KEY, // type List.of(), // columns - List.of(), // orders (optional) + List.of(OrderBy.ASC), // orders (optional) List.of(), // lengths (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-table.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-table.md index cf0c2fbc2b..1f2baa07f6 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-table.md @@ -14,7 +14,7 @@ TablesDB tablesDB = new TablesDB(client); tablesDB.updateTable( "", // databaseId "", // tableId - "", // name + "", // name (optional) List.of(Permission.read(Role.any())), // permissions (optional) false, // rowSecurity (optional) false, // enabled (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update.md index 3b1da0c107..ce269f1ffc 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update.md @@ -11,7 +11,7 @@ TablesDB tablesDB = new TablesDB(client); tablesDB.update( "", // databaseId - "", // name + "", // name (optional) false, // enabled (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.8.x/server-kotlin/java/teams/create-membership.md index e71ea2e578..7834db84c1 100644 --- a/docs/examples/1.8.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.8.x/server-kotlin/java/teams/create-membership.md @@ -1,6 +1,7 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; +import io.appwrite.enums.Roles; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -11,7 +12,7 @@ Teams teams = new Teams(client); teams.createMembership( "", // teamId - List.of(), // roles + List.of(Roles.ADMIN), // roles "email@example.com", // email (optional) "", // userId (optional) "+12065550100", // phone (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/teams/update-membership.md b/docs/examples/1.8.x/server-kotlin/java/teams/update-membership.md index 2e0de4e3b0..a0374c07d9 100644 --- a/docs/examples/1.8.x/server-kotlin/java/teams/update-membership.md +++ b/docs/examples/1.8.x/server-kotlin/java/teams/update-membership.md @@ -1,6 +1,7 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; +import io.appwrite.enums.Roles; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -12,7 +13,7 @@ Teams teams = new Teams(client); teams.updateMembership( "", // teamId "", // membershipId - List.of(), // roles + List.of(Roles.ADMIN), // roles new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-jwt.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-jwt.md index 2691a4cfe6..4349cb5b6c 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-jwt.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-jwt.md @@ -9,4 +9,6 @@ val client = Client() val account = Account(client) -val response = account.createJWT() +val response = account.createJWT( + duration = 0 // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-authenticator.md index fed90b4a7b..89c07b3631 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-authenticator.md @@ -11,5 +11,5 @@ val client = Client() val account = Account(client) val response = account.createMFAAuthenticator( - type = AuthenticatorType.TOTP + type = AuthenticatorType.TOTP ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-challenge.md index 3dbe1bff20..a08ade2103 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-challenge.md @@ -11,5 +11,5 @@ val client = Client() val account = Account(client) val response = account.createMFAChallenge( - factor = AuthenticationFactor.EMAIL + factor = AuthenticationFactor.EMAIL ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-o-auth-2-token.md index e1391dbe53..71d3d6739a 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-o-auth-2-token.md @@ -11,7 +11,7 @@ val client = Client() val account = Account(client) account.createOAuth2Token( - provider = OAuthProvider.AMAZON, + provider = OAuthProvider.AMAZON, success = "https://example.com", // optional failure = "https://example.com", // optional scopes = listOf() // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md index 9b06f8cd99..dd7f5b678e 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md @@ -11,5 +11,5 @@ val client = Client() val account = Account(client) val response = account.deleteMFAAuthenticator( - type = AuthenticatorType.TOTP + type = AuthenticatorType.TOTP ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-authenticator.md index 99764f2f0d..be143f08ea 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-authenticator.md @@ -11,6 +11,6 @@ val client = Client() val account = Account(client) val response = account.updateMFAAuthenticator( - type = AuthenticatorType.TOTP, + type = AuthenticatorType.TOTP, otp = "" ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-browser.md index f289205ab0..be3a323e90 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-browser.md @@ -11,7 +11,7 @@ val client = Client() val avatars = Avatars(client) val result = avatars.getBrowser( - code = Browser.AVANT_BROWSER, + code = Browser.AVANT_BROWSER, width = 0, // optional height = 0, // optional quality = -1 // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-credit-card.md index 1fd00a24bd..247e111ba1 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -11,7 +11,7 @@ val client = Client() val avatars = Avatars(client) val result = avatars.getCreditCard( - code = CreditCard.AMERICAN_EXPRESS, + code = CreditCard.AMERICAN_EXPRESS, width = 0, // optional height = 0, // optional quality = -1 // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-flag.md index a16aefcffd..9397696805 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-flag.md @@ -11,7 +11,7 @@ val client = Client() val avatars = Avatars(client) val result = avatars.getFlag( - code = Flag.AFGHANISTAN, + code = Flag.AFGHANISTAN, width = 0, // optional height = 0, // optional quality = -1 // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-screenshot.md b/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-screenshot.md index 040964f381..16d431befe 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-screenshot.md @@ -3,7 +3,8 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars import io.appwrite.enums.Theme import io.appwrite.enums.Timezone -import io.appwrite.enums.Output +import io.appwrite.enums.BrowserPermission +import io.appwrite.enums.ImageFormat val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -21,19 +22,19 @@ val result = avatars.getScreenshot( viewportWidth = 1920, // optional viewportHeight = 1080, // optional scale = 2, // optional - theme = "dark", // optional + theme = Theme.DARK, // optional userAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15", // optional fullpage = true, // optional locale = "en-US", // optional - timezone = "america/new_york", // optional + timezone = Timezone.AMERICA_NEW_YORK, // optional latitude = 37.7749, // optional longitude = -122.4194, // optional accuracy = 100, // optional touch = true, // optional - permissions = listOf("geolocation", "notifications"), // optional + permissions = listOf(BrowserPermission.GEOLOCATION, BrowserPermission.NOTIFICATIONS), // optional sleep = 3, // optional width = 800, // optional height = 600, // optional quality = 85, // optional - output = "jpeg" // optional + output = ImageFormat.JPEG // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-index.md index da777ac906..3d0d26a5b3 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-index.md @@ -2,6 +2,7 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases import io.appwrite.enums.IndexType +import io.appwrite.enums.OrderBy val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -14,8 +15,8 @@ val response = databases.createIndex( databaseId = "", collectionId = "", key = "", - type = IndexType.KEY, + type = IndexType.KEY, attributes = listOf(), - orders = listOf(), // optional + orders = listOf(OrderBy.ASC), // optional lengths = listOf() // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-relationship-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-relationship-attribute.md index 48389f529d..371e8ce896 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-relationship-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-relationship-attribute.md @@ -15,9 +15,9 @@ val response = databases.createRelationshipAttribute( databaseId = "", collectionId = "", relatedCollectionId = "", - type = RelationshipType.ONETOONE, + type = RelationshipType.ONETOONE, twoWay = false, // optional key = "", // optional twoWayKey = "", // optional - onDelete = "cascade" // optional + onDelete = RelationMutate.CASCADE // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-collection.md index f37b71a580..eff93634fe 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-collection.md @@ -14,7 +14,7 @@ val databases = Databases(client) val response = databases.updateCollection( databaseId = "", collectionId = "", - name = "", + name = "", // optional permissions = listOf(Permission.read(Role.any())), // optional documentSecurity = false, // optional enabled = false // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-relationship-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-relationship-attribute.md index baf69e3602..8a98963eb7 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-relationship-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-relationship-attribute.md @@ -14,6 +14,6 @@ val response = databases.updateRelationshipAttribute( databaseId = "", collectionId = "", key = "", - onDelete = "cascade", // optional + onDelete = RelationMutate.CASCADE, // optional newKey = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update.md index 05f832738a..820216c78f 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update.md @@ -11,6 +11,6 @@ val databases = Databases(client) val response = databases.update( databaseId = "", - name = "", + name = "", // optional enabled = false // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-execution.md index 9458be08e0..e003b6e2b3 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-execution.md @@ -15,7 +15,7 @@ val response = functions.createExecution( body = "", // optional async = false, // optional path = "", // optional - method = "GET", // optional + method = ExecutionMethod.GET, // optional headers = mapOf( "a" to "b" ), // optional scheduledAt = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-template-deployment.md b/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-template-deployment.md index 176620e19d..01286090f5 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-template-deployment.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-template-deployment.md @@ -15,7 +15,7 @@ val response = functions.createTemplateDeployment( repository = "", owner = "", rootDirectory = "", - type = TemplateReferenceType.COMMIT, + type = TemplateReferenceType.COMMIT, reference = "", activate = false // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-vcs-deployment.md b/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-vcs-deployment.md index 4e1c21daeb..32d33888bf 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-vcs-deployment.md @@ -12,7 +12,7 @@ val functions = Functions(client) val response = functions.createVcsDeployment( functionId = "", - type = VCSReferenceType.BRANCH, + type = VCSReferenceType.BRANCH, reference = "", activate = false // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.8.x/server-kotlin/kotlin/functions/create.md index de5b191b3f..b2ae44f65c 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/functions/create.md @@ -2,6 +2,7 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions import io.appwrite.enums.Runtime +import io.appwrite.enums.Scopes val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -13,7 +14,7 @@ val functions = Functions(client) val response = functions.create( functionId = "", name = "", - runtime = Runtime.NODE_14_5, + runtime = Runtime.NODE_14_5, execute = listOf("any"), // optional events = listOf(), // optional schedule = "", // optional @@ -22,7 +23,7 @@ val response = functions.create( logging = false, // optional entrypoint = "", // optional commands = "", // optional - scopes = listOf(), // optional + scopes = listOf(Scopes.SESSIONS_WRITE), // optional installationId = "", // optional providerRepositoryId = "", // optional providerBranch = "", // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/functions/get-deployment-download.md b/docs/examples/1.8.x/server-kotlin/kotlin/functions/get-deployment-download.md index 8a16397dc9..da9c9af766 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/functions/get-deployment-download.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/functions/get-deployment-download.md @@ -13,5 +13,5 @@ val functions = Functions(client) val result = functions.getDeploymentDownload( functionId = "", deploymentId = "", - type = "source" // optional + type = DeploymentDownloadType.SOURCE // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.8.x/server-kotlin/kotlin/functions/update.md index 1b7db783c1..082deaa7ce 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/functions/update.md @@ -2,6 +2,7 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions import io.appwrite.enums.Runtime +import io.appwrite.enums.Scopes val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -13,7 +14,7 @@ val functions = Functions(client) val response = functions.update( functionId = "", name = "", - runtime = "node-14.5", // optional + runtime = Runtime.NODE_14_5, // optional execute = listOf("any"), // optional events = listOf(), // optional schedule = "", // optional @@ -22,7 +23,7 @@ val response = functions.update( logging = false, // optional entrypoint = "", // optional commands = "", // optional - scopes = listOf(), // optional + scopes = listOf(Scopes.SESSIONS_WRITE), // optional installationId = "", // optional providerRepositoryId = "", // optional providerBranch = "", // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/health/get-failed-jobs.md b/docs/examples/1.8.x/server-kotlin/kotlin/health/get-failed-jobs.md index 646d9b368d..8bb2cadf87 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/health/get-failed-jobs.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/health/get-failed-jobs.md @@ -11,6 +11,6 @@ val client = Client() val health = Health(client) val response = health.getFailedJobs( - name = Name.V1_DATABASE, + name = Name.V1_DATABASE, threshold = 0 // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/health/get-queue-audits.md b/docs/examples/1.8.x/server-kotlin/kotlin/health/get-queue-audits.md new file mode 100644 index 0000000000..588e6ad81c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/health/get-queue-audits.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val health = Health(client) + +val response = health.getQueueAudits( + threshold = 0 // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-push.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-push.md index e17406915c..be43581535 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-push.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-push.md @@ -29,5 +29,5 @@ val response = messaging.createPush( scheduledAt = "", // optional contentAvailable = false, // optional critical = false, // optional - priority = "normal" // optional + priority = MessagePriority.NORMAL // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-smtp-provider.md index c7dca02027..62a61a5739 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-smtp-provider.md @@ -17,7 +17,7 @@ val response = messaging.createSMTPProvider( port = 1, // optional username = "", // optional password = "", // optional - encryption = "none", // optional + encryption = SmtpEncryption.NONE, // optional autoTLS = false, // optional mailer = "", // optional fromName = "", // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-push.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-push.md index 5e2c77d569..f1852bc951 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-push.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-push.md @@ -29,5 +29,5 @@ val response = messaging.updatePush( scheduledAt = "", // optional contentAvailable = false, // optional critical = false, // optional - priority = "normal" // optional + priority = MessagePriority.NORMAL // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-smtp-provider.md index 66900e747d..90c8b26bca 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-smtp-provider.md @@ -17,7 +17,7 @@ val response = messaging.updateSMTPProvider( port = 1, // optional username = "", // optional password = "", // optional - encryption = "none", // optional + encryption = SmtpEncryption.NONE, // optional autoTLS = false, // optional mailer = "", // optional fromName = "", // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/sites/create-template-deployment.md b/docs/examples/1.8.x/server-kotlin/kotlin/sites/create-template-deployment.md index 6ef7414bc4..f32131ed35 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/sites/create-template-deployment.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/sites/create-template-deployment.md @@ -15,7 +15,7 @@ val response = sites.createTemplateDeployment( repository = "", owner = "", rootDirectory = "", - type = TemplateReferenceType.BRANCH, + type = TemplateReferenceType.BRANCH, reference = "", activate = false // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/sites/create-vcs-deployment.md b/docs/examples/1.8.x/server-kotlin/kotlin/sites/create-vcs-deployment.md index c11e890fc0..44f88d8cc0 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/sites/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/sites/create-vcs-deployment.md @@ -12,7 +12,7 @@ val sites = Sites(client) val response = sites.createVcsDeployment( siteId = "", - type = VCSReferenceType.BRANCH, + type = VCSReferenceType.BRANCH, reference = "", activate = false // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/sites/create.md b/docs/examples/1.8.x/server-kotlin/kotlin/sites/create.md index 8df2d0709f..1dcd9580af 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/sites/create.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/sites/create.md @@ -15,15 +15,15 @@ val sites = Sites(client) val response = sites.create( siteId = "", name = "", - framework = Framework.ANALOG, - buildRuntime = BuildRuntime.NODE_14_5, + framework = Framework.ANALOG, + buildRuntime = BuildRuntime.NODE_14_5, enabled = false, // optional logging = false, // optional timeout = 1, // optional installCommand = "", // optional buildCommand = "", // optional outputDirectory = "", // optional - adapter = "static", // optional + adapter = Adapter.STATIC, // optional installationId = "", // optional fallbackFile = "", // optional providerRepositoryId = "", // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/sites/get-deployment-download.md b/docs/examples/1.8.x/server-kotlin/kotlin/sites/get-deployment-download.md index a313a5de7e..65450f8949 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/sites/get-deployment-download.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/sites/get-deployment-download.md @@ -13,5 +13,5 @@ val sites = Sites(client) val result = sites.getDeploymentDownload( siteId = "", deploymentId = "", - type = "source" // optional + type = DeploymentDownloadType.SOURCE // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/sites/update.md b/docs/examples/1.8.x/server-kotlin/kotlin/sites/update.md index ee6f7db73f..94f8884dbd 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/sites/update.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/sites/update.md @@ -15,15 +15,15 @@ val sites = Sites(client) val response = sites.update( siteId = "", name = "", - framework = Framework.ANALOG, + framework = Framework.ANALOG, enabled = false, // optional logging = false, // optional timeout = 1, // optional installCommand = "", // optional buildCommand = "", // optional outputDirectory = "", // optional - buildRuntime = "node-14.5", // optional - adapter = "static", // optional + buildRuntime = BuildRuntime.NODE_14_5, // optional + adapter = Adapter.STATIC, // optional fallbackFile = "", // optional installationId = "", // optional providerRepositoryId = "", // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.8.x/server-kotlin/kotlin/storage/create-bucket.md index 9fb0913865..be114e2221 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/storage/create-bucket.md @@ -20,7 +20,7 @@ val response = storage.createBucket( enabled = false, // optional maximumFileSize = 1, // optional allowedFileExtensions = listOf(), // optional - compression = "none", // optional + compression = Compression.NONE, // optional encryption = false, // optional antivirus = false, // optional transformations = false // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.8.x/server-kotlin/kotlin/storage/get-file-preview.md index 7b39d85cfa..c740da36b7 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -16,7 +16,7 @@ val result = storage.getFilePreview( fileId = "", width = 0, // optional height = 0, // optional - gravity = "center", // optional + gravity = ImageGravity.CENTER, // optional quality = -1, // optional borderWidth = 0, // optional borderColor = "", // optional @@ -24,6 +24,6 @@ val result = storage.getFilePreview( opacity = 0, // optional rotation = -360, // optional background = "", // optional - output = "jpg", // optional + output = ImageFormat.JPG, // optional token = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.8.x/server-kotlin/kotlin/storage/update-bucket.md index 74de079df6..25fed3cf13 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/storage/update-bucket.md @@ -20,7 +20,7 @@ val response = storage.updateBucket( enabled = false, // optional maximumFileSize = 1, // optional allowedFileExtensions = listOf(), // optional - compression = "none", // optional + compression = Compression.NONE, // optional encryption = false, // optional antivirus = false, // optional transformations = false // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-index.md index 2492f71537..9583499be3 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-index.md @@ -2,6 +2,7 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB import io.appwrite.enums.IndexType +import io.appwrite.enums.OrderBy val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -14,8 +15,8 @@ val response = tablesDB.createIndex( databaseId = "", tableId = "", key = "", - type = IndexType.KEY, + type = IndexType.KEY, columns = listOf(), - orders = listOf(), // optional + orders = listOf(OrderBy.ASC), // optional lengths = listOf() // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-relationship-column.md index 3ece593a96..7283d05be9 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-relationship-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-relationship-column.md @@ -15,9 +15,9 @@ val response = tablesDB.createRelationshipColumn( databaseId = "", tableId = "", relatedTableId = "", - type = RelationshipType.ONETOONE, + type = RelationshipType.ONETOONE, twoWay = false, // optional key = "", // optional twoWayKey = "", // optional - onDelete = "cascade" // optional + onDelete = RelationMutate.CASCADE // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-relationship-column.md index 357a57cd11..de623e7648 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-relationship-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-relationship-column.md @@ -14,6 +14,6 @@ val response = tablesDB.updateRelationshipColumn( databaseId = "", tableId = "", key = "", - onDelete = "cascade", // optional + onDelete = RelationMutate.CASCADE, // optional newKey = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-table.md index 357d5b965d..5c0af5cdaa 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-table.md @@ -14,7 +14,7 @@ val tablesDB = TablesDB(client) val response = tablesDB.updateTable( databaseId = "", tableId = "", - name = "", + name = "", // optional permissions = listOf(Permission.read(Role.any())), // optional rowSecurity = false, // optional enabled = false // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update.md index 48d1a8e300..44c83a02b9 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update.md @@ -11,6 +11,6 @@ val tablesDB = TablesDB(client) val response = tablesDB.update( databaseId = "", - name = "", + name = "", // optional enabled = false // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.8.x/server-kotlin/kotlin/teams/create-membership.md index 33eb16568e..dc18f049ff 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/teams/create-membership.md @@ -1,6 +1,7 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams +import io.appwrite.enums.Roles val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -11,7 +12,7 @@ val teams = Teams(client) val response = teams.createMembership( teamId = "", - roles = listOf(), + roles = listOf(Roles.ADMIN), email = "email@example.com", // optional userId = "", // optional phone = "+12065550100", // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/teams/update-membership.md b/docs/examples/1.8.x/server-kotlin/kotlin/teams/update-membership.md index 7a4377fb4d..5e5de79e8f 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/teams/update-membership.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/teams/update-membership.md @@ -1,6 +1,7 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams +import io.appwrite.enums.Roles val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -12,5 +13,5 @@ val teams = Teams(client) val response = teams.updateMembership( teamId = "", membershipId = "", - roles = listOf() + roles = listOf(Roles.ADMIN) ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-sha-user.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/create-sha-user.md index b286f8a554..61458a414a 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-sha-user.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/users/create-sha-user.md @@ -14,6 +14,6 @@ val response = users.createSHAUser( userId = "", email = "email@example.com", password = "password", - passwordVersion = "sha1", // optional + passwordVersion = PasswordHash.SHA1, // optional name = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-target.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/create-target.md index 139c6ff049..d28190c5ff 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-target.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/users/create-target.md @@ -13,7 +13,7 @@ val users = Users(client) val response = users.createTarget( userId = "", targetId = "", - providerType = MessagingProviderType.EMAIL, + providerType = MessagingProviderType.EMAIL, identifier = "", providerId = "", // optional name = "" // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md index a7c80893bf..cd8a5e9dab 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md @@ -12,5 +12,5 @@ val users = Users(client) val response = users.deleteMFAAuthenticator( userId = "", - type = AuthenticatorType.TOTP + type = AuthenticatorType.TOTP ) diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-jwt.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-jwt.md index 76d52e17f5..f5ddd7b50b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-jwt.md @@ -7,4 +7,6 @@ const client = new sdk.Client() const account = new sdk.Account(client); -const result = await account.createJWT(); +const result = await account.createJWT({ + duration: 0 // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-screenshot.md index dc63102bf9..58522c76db 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-screenshot.md @@ -16,19 +16,19 @@ const result = await avatars.getScreenshot({ viewportWidth: 1920, // optional viewportHeight: 1080, // optional scale: 2, // optional - theme: sdk.Theme.Light, // optional + theme: sdk.Theme.Dark, // optional userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', // optional fullpage: true, // optional locale: 'en-US', // optional - timezone: sdk.Timezone.AfricaAbidjan, // optional + timezone: sdk.Timezone.AmericaNewYork, // optional latitude: 37.7749, // optional longitude: -122.4194, // optional accuracy: 100, // optional touch: true, // optional - permissions: ["geolocation","notifications"], // optional + permissions: [sdk.BrowserPermission.Geolocation, sdk.BrowserPermission.Notifications], // optional sleep: 3, // optional width: 800, // optional height: 600, // optional quality: 85, // optional - output: sdk.Output.Jpg // optional + output: sdk.ImageFormat.Jpeg // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-index.md index ce5214a9ab..97cae642b5 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-index.md @@ -13,6 +13,6 @@ const result = await databases.createIndex({ key: '', type: sdk.IndexType.Key, attributes: [], - orders: [], // optional + orders: [sdk.OrderBy.Asc], // optional lengths: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-collection.md index 4cdc3a203b..a1cb513fd1 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-collection.md @@ -10,7 +10,7 @@ const databases = new sdk.Databases(client); const result = await databases.updateCollection({ databaseId: '', collectionId: '', - name: '', + name: '', // optional permissions: [sdk.Permission.read(sdk.Role.any())], // optional documentSecurity: false, // optional enabled: false // optional diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update.md index 9a0dbd2eb1..5325acfcdf 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update.md @@ -9,6 +9,6 @@ const databases = new sdk.Databases(client); const result = await databases.update({ databaseId: '', - name: '', + name: '', // optional enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/create.md b/docs/examples/1.8.x/server-nodejs/examples/functions/create.md index 37ac89dc5a..42fa14b7f5 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/create.md @@ -19,7 +19,7 @@ const result = await functions.create({ logging: false, // optional entrypoint: '', // optional commands: '', // optional - scopes: [], // optional + scopes: [sdk.Scopes.SessionsWrite], // optional installationId: '', // optional providerRepositoryId: '', // optional providerBranch: '', // optional diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/update.md b/docs/examples/1.8.x/server-nodejs/examples/functions/update.md index 60653b5b77..e1004defc1 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/update.md @@ -19,7 +19,7 @@ const result = await functions.update({ logging: false, // optional entrypoint: '', // optional commands: '', // optional - scopes: [], // optional + scopes: [sdk.Scopes.SessionsWrite], // optional installationId: '', // optional providerRepositoryId: '', // optional providerBranch: '', // optional diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-audits.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-audits.md new file mode 100644 index 0000000000..5b337f1ab4 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-audits.md @@ -0,0 +1,12 @@ +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 health = new sdk.Health(client); + +const result = await health.getQueueAudits({ + threshold: null // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-index.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-index.md index ec84b060a0..ca459221d7 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-index.md @@ -13,6 +13,6 @@ const result = await tablesDB.createIndex({ key: '', type: sdk.IndexType.Key, columns: [], - orders: [], // optional + orders: [sdk.OrderBy.Asc], // optional lengths: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-table.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-table.md index 97483daa03..7a650b82c7 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-table.md @@ -10,7 +10,7 @@ const tablesDB = new sdk.TablesDB(client); const result = await tablesDB.updateTable({ databaseId: '', tableId: '', - name: '', + name: '', // optional permissions: [sdk.Permission.read(sdk.Role.any())], // optional rowSecurity: false, // optional enabled: false // optional diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update.md index 85f98ee112..bc7f53e09e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update.md @@ -9,6 +9,6 @@ const tablesDB = new sdk.TablesDB(client); const result = await tablesDB.update({ databaseId: '', - name: '', + name: '', // optional enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.8.x/server-nodejs/examples/teams/create-membership.md index 28cb901ca2..f820002e9f 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/server-nodejs/examples/teams/create-membership.md @@ -9,7 +9,7 @@ const teams = new sdk.Teams(client); const result = await teams.createMembership({ teamId: '', - roles: [], + roles: [sdk.Roles.Admin], email: 'email@example.com', // optional userId: '', // optional phone: '+12065550100', // optional diff --git a/docs/examples/1.8.x/server-nodejs/examples/teams/update-membership.md b/docs/examples/1.8.x/server-nodejs/examples/teams/update-membership.md index f09e8e9ab2..64f15aef9f 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/server-nodejs/examples/teams/update-membership.md @@ -10,5 +10,5 @@ const teams = new sdk.Teams(client); const result = await teams.updateMembership({ teamId: '', membershipId: '', - roles: [] + roles: [sdk.Roles.Admin] }); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-jwt.md b/docs/examples/1.8.x/server-php/examples/account/create-jwt.md index 458405edd4..4031c64900 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-jwt.md @@ -10,4 +10,6 @@ $client = (new Client()) $account = new Account($client); -$result = $account->createJWT(); +$result = $account->createJWT( + duration: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/server-php/examples/avatars/get-screenshot.md index 9f91a3fafe..24c3aaa91f 100644 --- a/docs/examples/1.8.x/server-php/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/server-php/examples/avatars/get-screenshot.md @@ -4,7 +4,8 @@ use Appwrite\Client; use Appwrite\Services\Avatars; use Appwrite\Enums\Theme; use Appwrite\Enums\Timezone; -use Appwrite\Enums\Output; +use Appwrite\Enums\BrowserPermission; +use Appwrite\Enums\ImageFormat; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -22,19 +23,19 @@ $result = $avatars->getScreenshot( viewportWidth: 1920, // optional viewportHeight: 1080, // optional scale: 2, // optional - theme: Theme::LIGHT(), // optional + theme: Theme::DARK(), // optional userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', // optional fullpage: true, // optional locale: 'en-US', // optional - timezone: Timezone::AFRICAABIDJAN(), // optional + timezone: Timezone::AMERICANEWYORK(), // optional latitude: 37.7749, // optional longitude: -122.4194, // optional accuracy: 100, // optional touch: true, // optional - permissions: ["geolocation","notifications"], // optional + permissions: [BrowserPermission::GEOLOCATION(), BrowserPermission::NOTIFICATIONS()], // optional sleep: 3, // optional width: 800, // optional height: 600, // optional quality: 85, // optional - output: Output::JPG() // optional + output: ImageFormat::JPEG() // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-index.md b/docs/examples/1.8.x/server-php/examples/databases/create-index.md index 9e8a221e13..8dc2c889a4 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-php/examples/databases/create-index.md @@ -3,6 +3,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; use Appwrite\Enums\IndexType; +use Appwrite\Enums\OrderBy; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -17,6 +18,6 @@ $result = $databases->createIndex( key: '', type: IndexType::KEY(), attributes: [], - orders: [], // optional + orders: [OrderBy::ASC()], // optional lengths: [] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-collection.md b/docs/examples/1.8.x/server-php/examples/databases/update-collection.md index d37f6e2427..78e0dfe5fc 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-php/examples/databases/update-collection.md @@ -15,7 +15,7 @@ $databases = new Databases($client); $result = $databases->updateCollection( databaseId: '', collectionId: '', - name: '', + name: '', // optional permissions: [Permission::read(Role::any())], // optional documentSecurity: false, // optional enabled: false // optional diff --git a/docs/examples/1.8.x/server-php/examples/databases/update.md b/docs/examples/1.8.x/server-php/examples/databases/update.md index 9b0b0789ca..06a92b34d2 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/update.md +++ b/docs/examples/1.8.x/server-php/examples/databases/update.md @@ -12,6 +12,6 @@ $databases = new Databases($client); $result = $databases->update( databaseId: '', - name: '', + name: '', // optional enabled: false // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/functions/create.md b/docs/examples/1.8.x/server-php/examples/functions/create.md index f7176871bd..0504e73380 100644 --- a/docs/examples/1.8.x/server-php/examples/functions/create.md +++ b/docs/examples/1.8.x/server-php/examples/functions/create.md @@ -3,6 +3,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; use Appwrite\Enums\Runtime; +use Appwrite\Enums\Scopes; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -23,7 +24,7 @@ $result = $functions->create( logging: false, // optional entrypoint: '', // optional commands: '', // optional - scopes: [], // optional + scopes: [Scopes::SESSIONSWRITE()], // optional installationId: '', // optional providerRepositoryId: '', // optional providerBranch: '', // optional diff --git a/docs/examples/1.8.x/server-php/examples/functions/update.md b/docs/examples/1.8.x/server-php/examples/functions/update.md index da5ee88931..1c3ff548e8 100644 --- a/docs/examples/1.8.x/server-php/examples/functions/update.md +++ b/docs/examples/1.8.x/server-php/examples/functions/update.md @@ -3,6 +3,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; use Appwrite\Enums\Runtime; +use Appwrite\Enums\Scopes; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -23,7 +24,7 @@ $result = $functions->update( logging: false, // optional entrypoint: '', // optional commands: '', // optional - scopes: [], // optional + scopes: [Scopes::SESSIONSWRITE()], // optional installationId: '', // optional providerRepositoryId: '', // optional providerBranch: '', // optional diff --git a/docs/examples/1.8.x/server-php/examples/health/get-queue-audits.md b/docs/examples/1.8.x/server-php/examples/health/get-queue-audits.md new file mode 100644 index 0000000000..cd51345c61 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/health/get-queue-audits.md @@ -0,0 +1,15 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueAudits( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-index.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-index.md index 1a3fd13007..b56f50382a 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-index.md @@ -3,6 +3,7 @@ use Appwrite\Client; use Appwrite\Services\TablesDB; use Appwrite\Enums\IndexType; +use Appwrite\Enums\OrderBy; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -17,6 +18,6 @@ $result = $tablesDB->createIndex( key: '', type: IndexType::KEY(), columns: [], - orders: [], // optional + orders: [OrderBy::ASC()], // optional lengths: [] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-table.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-table.md index 22f1523bd8..dc09f5f235 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-table.md @@ -15,7 +15,7 @@ $tablesDB = new TablesDB($client); $result = $tablesDB->updateTable( databaseId: '', tableId: '', - name: '', + name: '', // optional permissions: [Permission::read(Role::any())], // optional rowSecurity: false, // optional enabled: false // optional diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update.md index 106b75e2b2..0dcd0493f3 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update.md @@ -12,6 +12,6 @@ $tablesDB = new TablesDB($client); $result = $tablesDB->update( databaseId: '', - name: '', + name: '', // optional enabled: false // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/teams/create-membership.md b/docs/examples/1.8.x/server-php/examples/teams/create-membership.md index 285368f9dd..53fb6efff5 100644 --- a/docs/examples/1.8.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/server-php/examples/teams/create-membership.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; +use Appwrite\Enums\Roles; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -12,7 +13,7 @@ $teams = new Teams($client); $result = $teams->createMembership( teamId: '', - roles: [], + roles: [Roles::ADMIN()], email: 'email@example.com', // optional userId: '', // optional phone: '+12065550100', // optional diff --git a/docs/examples/1.8.x/server-php/examples/teams/update-membership.md b/docs/examples/1.8.x/server-php/examples/teams/update-membership.md index 10f135b01f..0cdd13e135 100644 --- a/docs/examples/1.8.x/server-php/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/server-php/examples/teams/update-membership.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; +use Appwrite\Enums\Roles; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -13,5 +14,5 @@ $teams = new Teams($client); $result = $teams->updateMembership( teamId: '', membershipId: '', - roles: [] + roles: [Roles::ADMIN()] ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/account/create-jwt.md b/docs/examples/1.8.x/server-python/examples/account/create-jwt.md index 9b5fd905c5..6f95338c5c 100644 --- a/docs/examples/1.8.x/server-python/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-python/examples/account/create-jwt.md @@ -8,4 +8,6 @@ client.set_session('') # The user session to authenticate with account = Account(client) -result = account.create_jwt() +result = account.create_jwt( + duration = 0 # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/server-python/examples/avatars/get-screenshot.md index 43755943f1..6ad99db0c3 100644 --- a/docs/examples/1.8.x/server-python/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/server-python/examples/avatars/get-screenshot.md @@ -2,7 +2,8 @@ from appwrite.client import Client from appwrite.services.avatars import Avatars from appwrite.enums import Theme from appwrite.enums import Timezone -from appwrite.enums import Output +from appwrite.enums import BrowserPermission +from appwrite.enums import ImageFormat client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint @@ -20,19 +21,19 @@ result = avatars.get_screenshot( viewport_width = 1920, # optional viewport_height = 1080, # optional scale = 2, # optional - theme = Theme.LIGHT, # optional + theme = Theme.DARK, # optional user_agent = 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', # optional fullpage = True, # optional locale = 'en-US', # optional - timezone = Timezone.AFRICA_ABIDJAN, # optional + timezone = Timezone.AMERICA_NEW_YORK, # optional latitude = 37.7749, # optional longitude = -122.4194, # optional accuracy = 100, # optional touch = True, # optional - permissions = ["geolocation","notifications"], # optional + permissions = [BrowserPermission.GEOLOCATION, BrowserPermission.NOTIFICATIONS], # optional sleep = 3, # optional width = 800, # optional height = 600, # optional quality = 85, # optional - output = Output.JPG # optional + output = ImageFormat.JPEG # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-index.md b/docs/examples/1.8.x/server-python/examples/databases/create-index.md index f7bb455d07..8eb38c1c98 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-python/examples/databases/create-index.md @@ -1,6 +1,7 @@ from appwrite.client import Client from appwrite.services.databases import Databases from appwrite.enums import IndexType +from appwrite.enums import OrderBy client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint @@ -15,6 +16,6 @@ result = databases.create_index( key = '', type = IndexType.KEY, attributes = [], - orders = [], # optional + orders = [OrderBy.ASC], # optional lengths = [] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-collection.md b/docs/examples/1.8.x/server-python/examples/databases/update-collection.md index 5f357f504d..8fcc58cdc2 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-python/examples/databases/update-collection.md @@ -13,7 +13,7 @@ databases = Databases(client) result = databases.update_collection( database_id = '', collection_id = '', - name = '', + name = '', # optional permissions = [Permission.read(Role.any())], # optional document_security = False, # optional enabled = False # optional diff --git a/docs/examples/1.8.x/server-python/examples/databases/update.md b/docs/examples/1.8.x/server-python/examples/databases/update.md index 35d2c0cc40..c88c389a93 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/update.md +++ b/docs/examples/1.8.x/server-python/examples/databases/update.md @@ -10,6 +10,6 @@ databases = Databases(client) result = databases.update( database_id = '', - name = '', + name = '', # optional enabled = False # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/functions/create.md b/docs/examples/1.8.x/server-python/examples/functions/create.md index 98e16ebebe..6f4acab496 100644 --- a/docs/examples/1.8.x/server-python/examples/functions/create.md +++ b/docs/examples/1.8.x/server-python/examples/functions/create.md @@ -1,6 +1,7 @@ from appwrite.client import Client from appwrite.services.functions import Functions from appwrite.enums import Runtime +from appwrite.enums import Scopes client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint @@ -21,7 +22,7 @@ result = functions.create( logging = False, # optional entrypoint = '', # optional commands = '', # optional - scopes = [], # optional + scopes = [Scopes.SESSIONS_WRITE], # optional installation_id = '', # optional provider_repository_id = '', # optional provider_branch = '', # optional diff --git a/docs/examples/1.8.x/server-python/examples/functions/update.md b/docs/examples/1.8.x/server-python/examples/functions/update.md index 841c1eb839..02fd751fa9 100644 --- a/docs/examples/1.8.x/server-python/examples/functions/update.md +++ b/docs/examples/1.8.x/server-python/examples/functions/update.md @@ -1,6 +1,7 @@ from appwrite.client import Client from appwrite.services.functions import Functions from appwrite.enums import Runtime +from appwrite.enums import Scopes client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint @@ -21,7 +22,7 @@ result = functions.update( logging = False, # optional entrypoint = '', # optional commands = '', # optional - scopes = [], # optional + scopes = [Scopes.SESSIONS_WRITE], # optional installation_id = '', # optional provider_repository_id = '', # optional provider_branch = '', # optional diff --git a/docs/examples/1.8.x/server-python/examples/health/get-queue-audits.md b/docs/examples/1.8.x/server-python/examples/health/get-queue-audits.md new file mode 100644 index 0000000000..7db4390522 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/health/get-queue-audits.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +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 + +health = Health(client) + +result = health.get_queue_audits( + threshold = None # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-index.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-index.md index e4aaa83e66..9b5959d49d 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-index.md @@ -1,6 +1,7 @@ from appwrite.client import Client from appwrite.services.tables_db import TablesDB from appwrite.enums import IndexType +from appwrite.enums import OrderBy client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint @@ -15,6 +16,6 @@ result = tables_db.create_index( key = '', type = IndexType.KEY, columns = [], - orders = [], # optional + orders = [OrderBy.ASC], # optional lengths = [] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-table.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-table.md index c3e0115b75..4d1a5724e8 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-table.md @@ -13,7 +13,7 @@ tables_db = TablesDB(client) result = tables_db.update_table( database_id = '', table_id = '', - name = '', + name = '', # optional permissions = [Permission.read(Role.any())], # optional row_security = False, # optional enabled = False # optional diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update.md index 15c4eb7b33..b86d088374 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update.md @@ -10,6 +10,6 @@ tables_db = TablesDB(client) result = tables_db.update( database_id = '', - name = '', + name = '', # optional enabled = False # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/teams/create-membership.md b/docs/examples/1.8.x/server-python/examples/teams/create-membership.md index cb3bf73195..aa811be504 100644 --- a/docs/examples/1.8.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/server-python/examples/teams/create-membership.md @@ -1,5 +1,6 @@ from appwrite.client import Client from appwrite.services.teams import Teams +from appwrite.enums import Roles client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint @@ -10,7 +11,7 @@ teams = Teams(client) result = teams.create_membership( team_id = '', - roles = [], + roles = [Roles.ADMIN], email = 'email@example.com', # optional user_id = '', # optional phone = '+12065550100', # optional diff --git a/docs/examples/1.8.x/server-python/examples/teams/update-membership.md b/docs/examples/1.8.x/server-python/examples/teams/update-membership.md index db20c5aaae..dc6be189d5 100644 --- a/docs/examples/1.8.x/server-python/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/server-python/examples/teams/update-membership.md @@ -1,5 +1,6 @@ from appwrite.client import Client from appwrite.services.teams import Teams +from appwrite.enums import Roles client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint @@ -11,5 +12,5 @@ teams = Teams(client) result = teams.update_membership( team_id = '', membership_id = '', - roles = [] + roles = [Roles.ADMIN] ) diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-jwt.md b/docs/examples/1.8.x/server-rest/examples/account/create-jwt.md index 52901d67a2..c1bd9cc6df 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-jwt.md @@ -6,3 +6,6 @@ X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: +{ + "duration": 0 +} diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-audits.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-audits.md new file mode 100644 index 0000000000..66651eba48 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-audits.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/audits HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-jwt.md b/docs/examples/1.8.x/server-ruby/examples/account/create-jwt.md index 682c247750..481add5a0e 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/create-jwt.md @@ -9,4 +9,6 @@ client = Client.new account = Account.new(client) -result = account.create_jwt() +result = account.create_jwt( + duration: 0 # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/server-ruby/examples/avatars/get-screenshot.md index 0271404522..c69be2649f 100644 --- a/docs/examples/1.8.x/server-ruby/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/server-ruby/examples/avatars/get-screenshot.md @@ -19,19 +19,19 @@ result = avatars.get_screenshot( viewport_width: 1920, # optional viewport_height: 1080, # optional scale: 2, # optional - theme: Theme::LIGHT, # optional + theme: Theme::DARK, # optional user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', # optional fullpage: true, # optional locale: 'en-US', # optional - timezone: Timezone::AFRICA_ABIDJAN, # optional + timezone: Timezone::AMERICA_NEW_YORK, # optional latitude: 37.7749, # optional longitude: -122.4194, # optional accuracy: 100, # optional touch: true, # optional - permissions: ["geolocation","notifications"], # optional + permissions: [BrowserPermission::GEOLOCATION, BrowserPermission::NOTIFICATIONS], # optional sleep: 3, # optional width: 800, # optional height: 600, # optional quality: 85, # optional - output: Output::JPG # optional + output: ImageFormat::JPEG # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-index.md index 18c2f0ee6a..409b2d2c5e 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-index.md @@ -16,6 +16,6 @@ result = databases.create_index( key: '', type: IndexType::KEY, attributes: [], - orders: [], # optional + orders: [OrderBy::ASC], # optional lengths: [] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-collection.md index 6928b9a006..0972f661ff 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-collection.md @@ -14,7 +14,7 @@ databases = Databases.new(client) result = databases.update_collection( database_id: '', collection_id: '', - name: '', + name: '', # optional permissions: [Permission.read(Role.any())], # optional document_security: false, # optional enabled: false # optional diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update.md b/docs/examples/1.8.x/server-ruby/examples/databases/update.md index e5c02a11f1..781004e23a 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update.md @@ -11,6 +11,6 @@ databases = Databases.new(client) result = databases.update( database_id: '', - name: '', + name: '', # optional enabled: false # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/functions/create.md b/docs/examples/1.8.x/server-ruby/examples/functions/create.md index ce16a2b998..e9d9c42981 100644 --- a/docs/examples/1.8.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.8.x/server-ruby/examples/functions/create.md @@ -22,7 +22,7 @@ result = functions.create( logging: false, # optional entrypoint: '', # optional commands: '', # optional - scopes: [], # optional + scopes: [Scopes::SESSIONS_WRITE], # optional installation_id: '', # optional provider_repository_id: '', # optional provider_branch: '', # optional diff --git a/docs/examples/1.8.x/server-ruby/examples/functions/update.md b/docs/examples/1.8.x/server-ruby/examples/functions/update.md index 91d8436463..137c75bc87 100644 --- a/docs/examples/1.8.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.8.x/server-ruby/examples/functions/update.md @@ -22,7 +22,7 @@ result = functions.update( logging: false, # optional entrypoint: '', # optional commands: '', # optional - scopes: [], # optional + scopes: [Scopes::SESSIONS_WRITE], # optional installation_id: '', # optional provider_repository_id: '', # optional provider_branch: '', # optional diff --git a/docs/examples/1.8.x/server-ruby/examples/health/get-queue-audits.md b/docs/examples/1.8.x/server-ruby/examples/health/get-queue-audits.md new file mode 100644 index 0000000000..8fc3bc4b50 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/health/get-queue-audits.md @@ -0,0 +1,14 @@ +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 + +health = Health.new(client) + +result = health.get_queue_audits( + threshold: null # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-index.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-index.md index f7c2d0e4e1..6cbf094857 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-index.md @@ -16,6 +16,6 @@ result = tables_db.create_index( key: '', type: IndexType::KEY, columns: [], - orders: [], # optional + orders: [OrderBy::ASC], # optional lengths: [] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-table.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-table.md index 5385e00fc4..d7cb30f593 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-table.md @@ -14,7 +14,7 @@ tables_db = TablesDB.new(client) result = tables_db.update_table( database_id: '', table_id: '', - name: '', + name: '', # optional permissions: [Permission.read(Role.any())], # optional row_security: false, # optional enabled: false # optional diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update.md index 787d5c11e8..f054b249e8 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update.md @@ -11,6 +11,6 @@ tables_db = TablesDB.new(client) result = tables_db.update( database_id: '', - name: '', + name: '', # optional enabled: false # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.8.x/server-ruby/examples/teams/create-membership.md index 6c0faba77d..f46b9d5831 100644 --- a/docs/examples/1.8.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/server-ruby/examples/teams/create-membership.md @@ -1,6 +1,7 @@ require 'appwrite' include Appwrite +include Appwrite::Enums client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint @@ -11,7 +12,7 @@ teams = Teams.new(client) result = teams.create_membership( team_id: '', - roles: [], + roles: [Roles::ADMIN], email: 'email@example.com', # optional user_id: '', # optional phone: '+12065550100', # optional diff --git a/docs/examples/1.8.x/server-ruby/examples/teams/update-membership.md b/docs/examples/1.8.x/server-ruby/examples/teams/update-membership.md index 92b69b1773..2c355c0e24 100644 --- a/docs/examples/1.8.x/server-ruby/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/server-ruby/examples/teams/update-membership.md @@ -1,6 +1,7 @@ require 'appwrite' include Appwrite +include Appwrite::Enums client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint @@ -12,5 +13,5 @@ teams = Teams.new(client) result = teams.update_membership( team_id: '', membership_id: '', - roles: [] + roles: [Roles::ADMIN] ) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-jwt.md b/docs/examples/1.8.x/server-swift/examples/account/create-jwt.md index f4bb73d079..5490c93899 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-jwt.md @@ -7,5 +7,7 @@ let client = Client() let account = Account(client) -let jwt = try await account.createJWT() +let jwt = try await account.createJWT( + duration: 0 // optional +) diff --git a/docs/examples/1.8.x/server-swift/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/server-swift/examples/avatars/get-screenshot.md index 91e08d9053..fe42d0e024 100644 --- a/docs/examples/1.8.x/server-swift/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/server-swift/examples/avatars/get-screenshot.md @@ -17,20 +17,20 @@ let bytes = try await avatars.getScreenshot( viewportWidth: 1920, // optional viewportHeight: 1080, // optional scale: 2, // optional - theme: .light, // optional + theme: .dark, // optional userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15", // optional fullpage: true, // optional locale: "en-US", // optional - timezone: .africaAbidjan, // optional + timezone: .americaNewYork, // optional latitude: 37.7749, // optional longitude: -122.4194, // optional accuracy: 100, // optional touch: true, // optional - permissions: ["geolocation","notifications"], // optional + permissions: [.geolocation, .notifications], // optional sleep: 3, // optional width: 800, // optional height: 600, // optional quality: 85, // optional - output: .jpg // optional + output: .jpeg // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-index.md b/docs/examples/1.8.x/server-swift/examples/databases/create-index.md index 7e9a6205d7..1ded3830d5 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-index.md @@ -14,7 +14,7 @@ let index = try await databases.createIndex( key: "", type: .key, attributes: [], - orders: [], // optional + orders: [.asc], // optional lengths: [] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/get-attribute.md index 30cd0c8832..0b010a38f9 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/get-attribute.md @@ -7,7 +7,7 @@ let client = Client() let databases = Databases(client) -let result = try await databases.getAttribute( +let attributeBoolean = try await databases.getAttribute( databaseId: "", collectionId: "", key: "" diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.8.x/server-swift/examples/databases/update-collection.md index d26fbdcfe2..e8313dc945 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-collection.md @@ -10,7 +10,7 @@ let databases = Databases(client) let collection = try await databases.updateCollection( databaseId: "", collectionId: "", - name: "", + name: "", // optional permissions: [Permission.read(Role.any())], // optional documentSecurity: false, // optional enabled: false // optional diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update.md b/docs/examples/1.8.x/server-swift/examples/databases/update.md index 07f506257b..54870f9a64 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/update.md @@ -9,7 +9,7 @@ let databases = Databases(client) let database = try await databases.update( databaseId: "", - name: "", + name: "", // optional enabled: false // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/functions/create.md b/docs/examples/1.8.x/server-swift/examples/functions/create.md index 6f17a65b93..944419566e 100644 --- a/docs/examples/1.8.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.8.x/server-swift/examples/functions/create.md @@ -20,7 +20,7 @@ let function = try await functions.create( logging: false, // optional entrypoint: "", // optional commands: "", // optional - scopes: [], // optional + scopes: [.sessionsWrite], // optional installationId: "", // optional providerRepositoryId: "", // optional providerBranch: "", // optional diff --git a/docs/examples/1.8.x/server-swift/examples/functions/update.md b/docs/examples/1.8.x/server-swift/examples/functions/update.md index ebb2828bc8..d47852e794 100644 --- a/docs/examples/1.8.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.8.x/server-swift/examples/functions/update.md @@ -20,7 +20,7 @@ let function = try await functions.update( logging: false, // optional entrypoint: "", // optional commands: "", // optional - scopes: [], // optional + scopes: [.sessionsWrite], // optional installationId: "", // optional providerRepositoryId: "", // optional providerBranch: "", // optional diff --git a/docs/examples/1.8.x/server-swift/examples/health/get-cache.md b/docs/examples/1.8.x/server-swift/examples/health/get-cache.md index a1c514b60e..fdfa27e9c7 100644 --- a/docs/examples/1.8.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.8.x/server-swift/examples/health/get-cache.md @@ -7,5 +7,5 @@ let client = Client() let health = Health(client) -let healthStatus = try await health.getCache() +let healthStatusList = try await health.getCache() diff --git a/docs/examples/1.8.x/server-swift/examples/health/get-db.md b/docs/examples/1.8.x/server-swift/examples/health/get-db.md index a6aeb12e44..2d2f059ba1 100644 --- a/docs/examples/1.8.x/server-swift/examples/health/get-db.md +++ b/docs/examples/1.8.x/server-swift/examples/health/get-db.md @@ -7,5 +7,5 @@ let client = Client() let health = Health(client) -let healthStatus = try await health.getDB() +let healthStatusList = try await health.getDB() diff --git a/docs/examples/1.8.x/server-swift/examples/health/get-pub-sub.md b/docs/examples/1.8.x/server-swift/examples/health/get-pub-sub.md index 9a7766c94a..cc5acc7667 100644 --- a/docs/examples/1.8.x/server-swift/examples/health/get-pub-sub.md +++ b/docs/examples/1.8.x/server-swift/examples/health/get-pub-sub.md @@ -7,5 +7,5 @@ let client = Client() let health = Health(client) -let healthStatus = try await health.getPubSub() +let healthStatusList = try await health.getPubSub() diff --git a/docs/examples/1.8.x/server-swift/examples/health/get-queue-audits.md b/docs/examples/1.8.x/server-swift/examples/health/get-queue-audits.md new file mode 100644 index 0000000000..271d4d02a9 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/health/get-queue-audits.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueAudits( + threshold: 0 // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-index.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-index.md index 3620c625eb..40343d1877 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-index.md @@ -14,7 +14,7 @@ let columnIndex = try await tablesDB.createIndex( key: "", type: .key, columns: [], - orders: [], // optional + orders: [.asc], // optional lengths: [] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/get-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/get-column.md index 2d88b03967..8cb697a983 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/get-column.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/get-column.md @@ -7,7 +7,7 @@ let client = Client() let tablesDB = TablesDB(client) -let result = try await tablesDB.getColumn( +let columnBoolean = try await tablesDB.getColumn( databaseId: "", tableId: "", key: "" diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-table.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-table.md index 1f843b240b..bfd397b9d4 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-table.md @@ -10,7 +10,7 @@ let tablesDB = TablesDB(client) let table = try await tablesDB.updateTable( databaseId: "", tableId: "", - name: "", + name: "", // optional permissions: [Permission.read(Role.any())], // optional rowSecurity: false, // optional enabled: false // optional diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update.md index 4a7dcc8c53..75aaf1f469 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update.md @@ -9,7 +9,7 @@ let tablesDB = TablesDB(client) let database = try await tablesDB.update( databaseId: "", - name: "", + name: "", // optional enabled: false // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.8.x/server-swift/examples/teams/create-membership.md index 9010372175..cb21e9c3f0 100644 --- a/docs/examples/1.8.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/server-swift/examples/teams/create-membership.md @@ -1,4 +1,5 @@ import Appwrite +import AppwriteEnums let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -9,7 +10,7 @@ let teams = Teams(client) let membership = try await teams.createMembership( teamId: "", - roles: [], + roles: [.admin], email: "email@example.com", // optional userId: "", // optional phone: "+12065550100", // optional diff --git a/docs/examples/1.8.x/server-swift/examples/teams/update-membership.md b/docs/examples/1.8.x/server-swift/examples/teams/update-membership.md index 47f28e74fd..b2a85d0592 100644 --- a/docs/examples/1.8.x/server-swift/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/server-swift/examples/teams/update-membership.md @@ -1,4 +1,5 @@ import Appwrite +import AppwriteEnums let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -10,6 +11,6 @@ let teams = Teams(client) let membership = try await teams.updateMembership( teamId: "", membershipId: "", - roles: [] + roles: [.admin] ) From ae6a81bd12643307872778642c478aa86b73d85f Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 2 Feb 2026 17:54:57 +0530 Subject: [PATCH 3/6] update specs --- app/config/specs/open-api3-1.8.x-client.json | 62 +- app/config/specs/open-api3-1.8.x-console.json | 2918 +++++++++++++++-- app/config/specs/open-api3-1.8.x-server.json | 2852 +++++++++++++++- app/config/specs/swagger2-1.8.x-client.json | 62 +- app/config/specs/swagger2-1.8.x-console.json | 2898 ++++++++++++++-- app/config/specs/swagger2-1.8.x-server.json | 2832 +++++++++++++++- 6 files changed, 10828 insertions(+), 796 deletions(-) diff --git a/app/config/specs/open-api3-1.8.x-client.json b/app/config/specs/open-api3-1.8.x-client.json index 44caa47679..592dc5b052 100644 --- a/app/config/specs/open-api3-1.8.x-client.json +++ b/app/config/specs/open-api3-1.8.x-client.json @@ -5888,7 +5888,7 @@ "x-appwrite": { "method": "listTransactions", "group": "transactions", - "weight": 338, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/list-transactions.md", @@ -5955,7 +5955,7 @@ "x-appwrite": { "method": "createTransaction", "group": "transactions", - "weight": 334, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-transaction.md", @@ -6026,7 +6026,7 @@ "x-appwrite": { "method": "getTransaction", "group": "transactions", - "weight": 335, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/get-transaction.md", @@ -6090,7 +6090,7 @@ "x-appwrite": { "method": "updateTransaction", "group": "transactions", - "weight": 336, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/update-transaction.md", @@ -6168,7 +6168,7 @@ "x-appwrite": { "method": "deleteTransaction", "group": "transactions", - "weight": 337, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/delete-transaction.md", @@ -6234,7 +6234,7 @@ "x-appwrite": { "method": "createOperations", "group": "transactions", - "weight": 339, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/create-operations.md", @@ -7335,7 +7335,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 431, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -7422,7 +7422,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 429, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -7540,7 +7540,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 430, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -8315,7 +8315,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 527, + "weight": 543, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -8414,7 +8414,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 525, + "weight": 541, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -8516,7 +8516,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 526, + "weight": 542, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -8590,7 +8590,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 528, + "weight": 544, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -8682,7 +8682,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 529, + "weight": 545, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -8751,7 +8751,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 531, + "weight": 547, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -8831,7 +8831,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 530, + "weight": 546, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -9061,7 +9061,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 532, + "weight": 548, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -9148,7 +9148,7 @@ "x-appwrite": { "method": "listTransactions", "group": "transactions", - "weight": 403, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/list-transactions.md", @@ -9218,7 +9218,7 @@ "x-appwrite": { "method": "createTransaction", "group": "transactions", - "weight": 399, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/create-transaction.md", @@ -9292,7 +9292,7 @@ "x-appwrite": { "method": "getTransaction", "group": "transactions", - "weight": 400, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/get-transaction.md", @@ -9359,7 +9359,7 @@ "x-appwrite": { "method": "updateTransaction", "group": "transactions", - "weight": 401, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-transaction.md", @@ -9440,7 +9440,7 @@ "x-appwrite": { "method": "deleteTransaction", "group": "transactions", - "weight": 402, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/delete-transaction.md", @@ -9509,7 +9509,7 @@ "x-appwrite": { "method": "createOperations", "group": "transactions", - "weight": 404, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-operations.md", @@ -9597,7 +9597,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 395, + "weight": 411, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -9708,7 +9708,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 387, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -9864,7 +9864,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 388, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -9974,7 +9974,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 391, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -10124,7 +10124,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 389, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -10235,7 +10235,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 393, + "weight": 409, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -10341,7 +10341,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 398, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -10469,7 +10469,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 397, + "weight": 413, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index d83d7c20ba..501cfd949e 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -5874,7 +5874,7 @@ "x-appwrite": { "method": "chat", "group": "console", - "weight": 497, + "weight": 513, "cookies": false, "type": "", "demo": "assistant\/chat.md", @@ -5935,7 +5935,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 498, + "weight": 514, "cookies": false, "type": "", "demo": "console\/get-resource.md", @@ -6010,7 +6010,7 @@ "x-appwrite": { "method": "variables", "group": "console", - "weight": 496, + "weight": 512, "cookies": false, "type": "", "demo": "console\/variables.md", @@ -6295,7 +6295,7 @@ "x-appwrite": { "method": "listTransactions", "group": "transactions", - "weight": 338, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/list-transactions.md", @@ -6362,7 +6362,7 @@ "x-appwrite": { "method": "createTransaction", "group": "transactions", - "weight": 334, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-transaction.md", @@ -6433,7 +6433,7 @@ "x-appwrite": { "method": "getTransaction", "group": "transactions", - "weight": 335, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/get-transaction.md", @@ -6497,7 +6497,7 @@ "x-appwrite": { "method": "updateTransaction", "group": "transactions", - "weight": 336, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/update-transaction.md", @@ -6575,7 +6575,7 @@ "x-appwrite": { "method": "deleteTransaction", "group": "transactions", - "weight": 337, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/delete-transaction.md", @@ -6641,7 +6641,7 @@ "x-appwrite": { "method": "createOperations", "group": "transactions", - "weight": 339, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/create-operations.md", @@ -9624,6 +9624,452 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/longtext": { + "post": { + "summary": "Create longtext attribute", + "operationId": "databasesCreateLongtextAttribute", + "tags": [ + "databases" + ], + "description": "Create a longtext attribute.\n", + "responses": { + "202": { + "description": "AttributeLongtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLongtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLongtextAttribute", + "group": "attributes", + "weight": 336, + "cookies": false, + "type": "", + "demo": "databases\/create-longtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-longtext-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/longtext\/{key}": { + "patch": { + "summary": "Update longtext attribute", + "operationId": "databasesUpdateLongtextAttribute", + "tags": [ + "databases" + ], + "description": "Update a longtext attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeLongtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLongtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLongtextAttribute", + "group": "attributes", + "weight": 337, + "cookies": false, + "type": "", + "demo": "databases\/update-longtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-longtext-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/mediumtext": { + "post": { + "summary": "Create mediumtext attribute", + "operationId": "databasesCreateMediumtextAttribute", + "tags": [ + "databases" + ], + "description": "Create a mediumtext attribute.\n", + "responses": { + "202": { + "description": "AttributeMediumtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeMediumtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createMediumtextAttribute", + "group": "attributes", + "weight": 334, + "cookies": false, + "type": "", + "demo": "databases\/create-mediumtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-mediumtext-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/mediumtext\/{key}": { + "patch": { + "summary": "Update mediumtext attribute", + "operationId": "databasesUpdateMediumtextAttribute", + "tags": [ + "databases" + ], + "description": "Update a mediumtext attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeMediumtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeMediumtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateMediumtextAttribute", + "group": "attributes", + "weight": 335, + "cookies": false, + "type": "", + "demo": "databases\/update-mediumtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-mediumtext-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { "post": { "summary": "Create point attribute", @@ -10491,6 +10937,229 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/text": { + "post": { + "summary": "Create text attribute", + "operationId": "databasesCreateTextAttribute", + "tags": [ + "databases" + ], + "description": "Create a text attribute.\n", + "responses": { + "202": { + "description": "AttributeText", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeText" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createTextAttribute", + "group": "attributes", + "weight": 332, + "cookies": false, + "type": "", + "demo": "databases\/create-text-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-text-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/text\/{key}": { + "patch": { + "summary": "Update text attribute", + "operationId": "databasesUpdateTextAttribute", + "tags": [ + "databases" + ], + "description": "Update a text attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeText", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeText" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateTextAttribute", + "group": "attributes", + "weight": 333, + "cookies": false, + "type": "", + "demo": "databases\/update-text-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-text-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/url": { "post": { "summary": "Create URL attribute", @@ -10724,6 +11393,243 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/varchar": { + "post": { + "summary": "Create varchar attribute", + "operationId": "databasesCreateVarcharAttribute", + "tags": [ + "databases" + ], + "description": "Create a varchar attribute.\n", + "responses": { + "202": { + "description": "AttributeVarchar", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeVarchar" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createVarcharAttribute", + "group": "attributes", + "weight": 330, + "cookies": false, + "type": "", + "demo": "databases\/create-varchar-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-varchar-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "size": { + "type": "integer", + "description": "Attribute size for varchar attributes, in number of characters. Maximum size is 16381.", + "x-example": 1, + "format": "int32" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false + } + }, + "required": [ + "key", + "size", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/varchar\/{key}": { + "patch": { + "summary": "Update varchar attribute", + "operationId": "databasesUpdateVarcharAttribute", + "tags": [ + "databases" + ], + "description": "Update a varchar attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeVarchar", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeVarchar" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateVarcharAttribute", + "group": "attributes", + "weight": 331, + "cookies": false, + "type": "", + "demo": "databases\/update-varchar-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-varchar-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "size": { + "type": "integer", + "description": "Maximum size of the varchar attribute.", + "x-example": 1, + "format": "int32", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/{key}": { "get": { "summary": "Get attribute", @@ -12546,7 +13452,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 333, + "weight": 341, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -12645,7 +13551,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 330, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -12786,7 +13692,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 331, + "weight": 339, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -12863,7 +13769,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 332, + "weight": 340, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -13359,7 +14265,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 415, + "weight": 431, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -13444,7 +14350,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 412, + "weight": 428, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -13740,7 +14646,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 417, + "weight": 433, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -13790,7 +14696,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 418, + "weight": 434, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -13840,7 +14746,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 441, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/list-templates.md", @@ -13956,12 +14862,13 @@ "items": { "type": "string", "enum": [ - "dev-tools", "starter", "databases", "ai", "messaging", - "utilities" + "utilities", + "dev-tools", + "auth" ], "x-enum-name": null, "x-enum-keys": [] @@ -14032,7 +14939,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 440, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/get-template.md", @@ -14092,7 +14999,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 434, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/list-usage.md", @@ -14164,7 +15071,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 413, + "weight": 429, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -14224,7 +15131,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 414, + "weight": 430, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -14517,7 +15424,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 416, + "weight": 432, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -14579,7 +15486,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 421, + "weight": 437, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -14660,7 +15567,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 422, + "weight": 438, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -14755,7 +15662,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 419, + "weight": 435, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -14855,7 +15762,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 427, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -14941,7 +15848,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 424, + "weight": 440, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -15058,7 +15965,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 425, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -15156,7 +16063,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 420, + "weight": 436, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -15219,7 +16126,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 423, + "weight": 439, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -15284,7 +16191,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 426, + "weight": 442, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -15375,7 +16282,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 428, + "weight": 444, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -15447,7 +16354,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 431, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -15534,7 +16441,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 429, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -15652,7 +16559,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 430, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -15718,7 +16625,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 432, + "weight": 448, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -15790,7 +16697,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 433, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/get-usage.md", @@ -15872,7 +16779,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 437, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -15932,7 +16839,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 435, + "weight": 451, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -16024,7 +16931,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 436, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -16094,7 +17001,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 438, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -16188,7 +17095,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 439, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -16368,7 +17275,7 @@ "x-appwrite": { "method": "get", "group": "health", - "weight": 442, + "weight": 458, "cookies": false, "type": "", "demo": "health\/get.md", @@ -16419,7 +17326,7 @@ "x-appwrite": { "method": "getAntivirus", "group": "health", - "weight": 451, + "weight": 467, "cookies": false, "type": "", "demo": "health\/get-antivirus.md", @@ -16470,7 +17377,7 @@ "x-appwrite": { "method": "getCache", "group": "health", - "weight": 445, + "weight": 461, "cookies": false, "type": "", "demo": "health\/get-cache.md", @@ -16521,7 +17428,7 @@ "x-appwrite": { "method": "getCertificate", "group": "health", - "weight": 448, + "weight": 464, "cookies": false, "type": "", "demo": "health\/get-certificate.md", @@ -16583,7 +17490,7 @@ "x-appwrite": { "method": "getDB", "group": "health", - "weight": 444, + "weight": 460, "cookies": false, "type": "", "demo": "health\/get-db.md", @@ -16634,7 +17541,7 @@ "x-appwrite": { "method": "getPubSub", "group": "health", - "weight": 446, + "weight": 462, "cookies": false, "type": "", "demo": "health\/get-pub-sub.md", @@ -16685,7 +17592,7 @@ "x-appwrite": { "method": "getQueueAudits", "group": "queue", - "weight": 452, + "weight": 468, "cookies": false, "type": "", "demo": "health\/get-queue-audits.md", @@ -16749,7 +17656,7 @@ "x-appwrite": { "method": "getQueueBuilds", "group": "queue", - "weight": 456, + "weight": 472, "cookies": false, "type": "", "demo": "health\/get-queue-builds.md", @@ -16813,7 +17720,7 @@ "x-appwrite": { "method": "getQueueCertificates", "group": "queue", - "weight": 455, + "weight": 471, "cookies": false, "type": "", "demo": "health\/get-queue-certificates.md", @@ -16877,7 +17784,7 @@ "x-appwrite": { "method": "getQueueDatabases", "group": "queue", - "weight": 457, + "weight": 473, "cookies": false, "type": "", "demo": "health\/get-queue-databases.md", @@ -16952,7 +17859,7 @@ "x-appwrite": { "method": "getQueueDeletes", "group": "queue", - "weight": 458, + "weight": 474, "cookies": false, "type": "", "demo": "health\/get-queue-deletes.md", @@ -17016,7 +17923,7 @@ "x-appwrite": { "method": "getFailedJobs", "group": "queue", - "weight": 465, + "weight": 481, "cookies": false, "type": "", "demo": "health\/get-failed-jobs.md", @@ -17107,7 +18014,7 @@ "x-appwrite": { "method": "getQueueFunctions", "group": "queue", - "weight": 462, + "weight": 478, "cookies": false, "type": "", "demo": "health\/get-queue-functions.md", @@ -17171,7 +18078,7 @@ "x-appwrite": { "method": "getQueueLogs", "group": "queue", - "weight": 454, + "weight": 470, "cookies": false, "type": "", "demo": "health\/get-queue-logs.md", @@ -17235,7 +18142,7 @@ "x-appwrite": { "method": "getQueueMails", "group": "queue", - "weight": 459, + "weight": 475, "cookies": false, "type": "", "demo": "health\/get-queue-mails.md", @@ -17299,7 +18206,7 @@ "x-appwrite": { "method": "getQueueMessaging", "group": "queue", - "weight": 460, + "weight": 476, "cookies": false, "type": "", "demo": "health\/get-queue-messaging.md", @@ -17363,7 +18270,7 @@ "x-appwrite": { "method": "getQueueMigrations", "group": "queue", - "weight": 461, + "weight": 477, "cookies": false, "type": "", "demo": "health\/get-queue-migrations.md", @@ -17427,7 +18334,7 @@ "x-appwrite": { "method": "getQueueStatsResources", "group": "queue", - "weight": 463, + "weight": 479, "cookies": false, "type": "", "demo": "health\/get-queue-stats-resources.md", @@ -17491,7 +18398,7 @@ "x-appwrite": { "method": "getQueueUsage", "group": "queue", - "weight": 464, + "weight": 480, "cookies": false, "type": "", "demo": "health\/get-queue-usage.md", @@ -17555,7 +18462,7 @@ "x-appwrite": { "method": "getQueueWebhooks", "group": "queue", - "weight": 453, + "weight": 469, "cookies": false, "type": "", "demo": "health\/get-queue-webhooks.md", @@ -17619,7 +18526,7 @@ "x-appwrite": { "method": "getStorage", "group": "storage", - "weight": 450, + "weight": 466, "cookies": false, "type": "", "demo": "health\/get-storage.md", @@ -17670,7 +18577,7 @@ "x-appwrite": { "method": "getStorageLocal", "group": "storage", - "weight": 449, + "weight": 465, "cookies": false, "type": "", "demo": "health\/get-storage-local.md", @@ -17721,7 +18628,7 @@ "x-appwrite": { "method": "getTime", "group": "health", - "weight": 447, + "weight": 463, "cookies": false, "type": "", "demo": "health\/get-time.md", @@ -25419,7 +26326,7 @@ "x-appwrite": { "method": "list", "group": "projects", - "weight": 410, + "weight": 426, "cookies": false, "type": "", "demo": "projects\/list.md", @@ -27092,7 +27999,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 408, + "weight": 424, "cookies": false, "type": "", "demo": "projects\/list-dev-keys.md", @@ -27163,7 +28070,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 405, + "weight": 421, "cookies": false, "type": "", "demo": "projects\/create-dev-key.md", @@ -27248,7 +28155,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 407, + "weight": 423, "cookies": false, "type": "", "demo": "projects\/get-dev-key.md", @@ -27316,7 +28223,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 406, + "weight": 422, "cookies": false, "type": "", "demo": "projects\/update-dev-key.md", @@ -27402,7 +28309,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 409, + "weight": 425, "cookies": false, "type": "", "demo": "projects\/delete-dev-key.md", @@ -28141,7 +29048,7 @@ "x-appwrite": { "method": "updateLabels", "group": "projects", - "weight": 411, + "weight": 427, "cookies": false, "type": "", "demo": "projects\/update-labels.md", @@ -31582,7 +32489,7 @@ "x-appwrite": { "method": "listRules", "group": null, - "weight": 512, + "weight": 528, "cookies": false, "type": "", "demo": "proxy\/list-rules.md", @@ -31667,7 +32574,7 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 507, + "weight": 523, "cookies": false, "type": "", "demo": "proxy\/create-api-rule.md", @@ -31734,7 +32641,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 509, + "weight": 525, "cookies": false, "type": "", "demo": "proxy\/create-function-rule.md", @@ -31812,7 +32719,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 510, + "weight": 526, "cookies": false, "type": "", "demo": "proxy\/create-redirect-rule.md", @@ -31926,7 +32833,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 508, + "weight": 524, "cookies": false, "type": "", "demo": "proxy\/create-site-rule.md", @@ -32004,7 +32911,7 @@ "x-appwrite": { "method": "getRule", "group": null, - "weight": 511, + "weight": 527, "cookies": false, "type": "", "demo": "proxy\/get-rule.md", @@ -32055,7 +32962,7 @@ "x-appwrite": { "method": "deleteRule", "group": null, - "weight": 513, + "weight": 529, "cookies": false, "type": "", "demo": "proxy\/delete-rule.md", @@ -32115,7 +33022,7 @@ "x-appwrite": { "method": "updateRuleVerification", "group": null, - "weight": 514, + "weight": 530, "cookies": false, "type": "", "demo": "proxy\/update-rule-verification.md", @@ -32175,7 +33082,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 469, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -32260,7 +33167,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 467, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -32514,7 +33421,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 472, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -32564,7 +33471,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 495, + "weight": 511, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -32614,7 +33521,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 491, + "weight": 507, "cookies": false, "type": "", "demo": "sites\/list-templates.md", @@ -32678,12 +33585,15 @@ "items": { "type": "string", "enum": [ - "dev-tools", + "portfolio", "starter", - "databases", + "events", + "ecommerce", + "documentation", + "blog", "ai", - "messaging", - "utilities" + "forms", + "dashboard" ], "x-enum-name": null, "x-enum-keys": [] @@ -32743,7 +33653,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 492, + "weight": 508, "cookies": false, "type": "", "demo": "sites\/get-template.md", @@ -32803,7 +33713,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 493, + "weight": 509, "cookies": false, "type": "", "demo": "sites\/list-usage.md", @@ -32875,7 +33785,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 468, + "weight": 484, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -32935,7 +33845,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 470, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -33185,7 +34095,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 471, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -33247,7 +34157,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 478, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -33328,7 +34238,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 477, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -33423,7 +34333,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 473, + "weight": 489, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -33529,7 +34439,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 481, + "weight": 497, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -33610,7 +34520,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 474, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -33727,7 +34637,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 475, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -33826,7 +34736,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 476, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -33889,7 +34799,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 479, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -33954,7 +34864,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 480, + "weight": 496, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -34045,7 +34955,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 482, + "weight": 498, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -34117,7 +35027,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 484, + "weight": 500, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -34203,7 +35113,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 483, + "weight": 499, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -34266,7 +35176,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 485, + "weight": 501, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -34338,7 +35248,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 494, + "weight": 510, "cookies": false, "type": "", "demo": "sites\/get-usage.md", @@ -34420,7 +35330,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 488, + "weight": 504, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -34480,7 +35390,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 486, + "weight": 502, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -34572,7 +35482,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 487, + "weight": 503, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -34642,7 +35552,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 489, + "weight": 505, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -34736,7 +35646,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 490, + "weight": 506, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -34808,7 +35718,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 522, + "weight": 538, "cookies": false, "type": "", "demo": "storage\/list-buckets.md", @@ -34894,7 +35804,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 520, + "weight": 536, "cookies": false, "type": "", "demo": "storage\/create-bucket.md", @@ -35030,7 +35940,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 521, + "weight": 537, "cookies": false, "type": "", "demo": "storage\/get-bucket.md", @@ -35091,7 +36001,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 523, + "weight": 539, "cookies": false, "type": "", "demo": "storage\/update-bucket.md", @@ -35224,7 +36134,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 524, + "weight": 540, "cookies": false, "type": "", "demo": "storage\/delete-bucket.md", @@ -35287,7 +36197,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 527, + "weight": 543, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -35386,7 +36296,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 525, + "weight": 541, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -35488,7 +36398,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 526, + "weight": 542, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -35562,7 +36472,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 528, + "weight": 544, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -35654,7 +36564,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 529, + "weight": 545, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -35723,7 +36633,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 531, + "weight": 547, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -35803,7 +36713,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 530, + "weight": 546, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -36033,7 +36943,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 532, + "weight": 548, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -36120,7 +37030,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 534, + "weight": 550, "cookies": false, "type": "", "demo": "storage\/get-usage.md", @@ -36193,7 +37103,7 @@ "x-appwrite": { "method": "getBucketUsage", "group": null, - "weight": 535, + "weight": 551, "cookies": false, "type": "", "demo": "storage\/get-bucket-usage.md", @@ -36276,7 +37186,7 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 344, + "weight": 352, "cookies": false, "type": "", "demo": "tablesdb\/list.md", @@ -36362,7 +37272,7 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 340, + "weight": 348, "cookies": false, "type": "", "demo": "tablesdb\/create.md", @@ -36443,7 +37353,7 @@ "x-appwrite": { "method": "listTransactions", "group": "transactions", - "weight": 403, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/list-transactions.md", @@ -36513,7 +37423,7 @@ "x-appwrite": { "method": "createTransaction", "group": "transactions", - "weight": 399, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/create-transaction.md", @@ -36587,7 +37497,7 @@ "x-appwrite": { "method": "getTransaction", "group": "transactions", - "weight": 400, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/get-transaction.md", @@ -36654,7 +37564,7 @@ "x-appwrite": { "method": "updateTransaction", "group": "transactions", - "weight": 401, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-transaction.md", @@ -36735,7 +37645,7 @@ "x-appwrite": { "method": "deleteTransaction", "group": "transactions", - "weight": 402, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/delete-transaction.md", @@ -36804,7 +37714,7 @@ "x-appwrite": { "method": "createOperations", "group": "transactions", - "weight": 404, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-operations.md", @@ -36892,7 +37802,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 346, + "weight": 354, "cookies": false, "type": "", "demo": "tablesdb\/list-usage.md", @@ -36991,7 +37901,7 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 341, + "weight": 349, "cookies": false, "type": "", "demo": "tablesdb\/get.md", @@ -37052,7 +37962,7 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 342, + "weight": 350, "cookies": false, "type": "", "demo": "tablesdb\/update.md", @@ -37127,7 +38037,7 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 343, + "weight": 351, "cookies": false, "type": "", "demo": "tablesdb\/delete.md", @@ -37190,7 +38100,7 @@ "x-appwrite": { "method": "listTables", "group": "tables", - "weight": 351, + "weight": 359, "cookies": false, "type": "", "demo": "tablesdb\/list-tables.md", @@ -37289,7 +38199,7 @@ "x-appwrite": { "method": "createTable", "group": "tables", - "weight": 347, + "weight": 355, "cookies": false, "type": "", "demo": "tablesdb\/create-table.md", @@ -37415,7 +38325,7 @@ "x-appwrite": { "method": "getTable", "group": "tables", - "weight": 348, + "weight": 356, "cookies": false, "type": "", "demo": "tablesdb\/get-table.md", @@ -37489,7 +38399,7 @@ "x-appwrite": { "method": "updateTable", "group": "tables", - "weight": 349, + "weight": 357, "cookies": false, "type": "", "demo": "tablesdb\/update-table.md", @@ -37591,7 +38501,7 @@ "x-appwrite": { "method": "deleteTable", "group": "tables", - "weight": 350, + "weight": 358, "cookies": false, "type": "", "demo": "tablesdb\/delete-table.md", @@ -37667,7 +38577,7 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 356, + "weight": 364, "cookies": false, "type": "", "demo": "tablesdb\/list-columns.md", @@ -37767,7 +38677,7 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 357, + "weight": 365, "cookies": false, "type": "", "demo": "tablesdb\/create-boolean-column.md", @@ -37879,7 +38789,7 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 358, + "weight": 366, "cookies": false, "type": "", "demo": "tablesdb\/update-boolean-column.md", @@ -37996,7 +38906,7 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 359, + "weight": 367, "cookies": false, "type": "", "demo": "tablesdb\/create-datetime-column.md", @@ -38108,7 +39018,7 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 360, + "weight": 368, "cookies": false, "type": "", "demo": "tablesdb\/update-datetime-column.md", @@ -38225,7 +39135,7 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 361, + "weight": 369, "cookies": false, "type": "", "demo": "tablesdb\/create-email-column.md", @@ -38338,7 +39248,7 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 362, + "weight": 370, "cookies": false, "type": "", "demo": "tablesdb\/update-email-column.md", @@ -38456,7 +39366,7 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 363, + "weight": 371, "cookies": false, "type": "", "demo": "tablesdb\/create-enum-column.md", @@ -38577,7 +39487,7 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 364, + "weight": 372, "cookies": false, "type": "", "demo": "tablesdb\/update-enum-column.md", @@ -38703,7 +39613,7 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 365, + "weight": 373, "cookies": false, "type": "", "demo": "tablesdb\/create-float-column.md", @@ -38830,7 +39740,7 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 366, + "weight": 374, "cookies": false, "type": "", "demo": "tablesdb\/update-float-column.md", @@ -38962,7 +39872,7 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 367, + "weight": 375, "cookies": false, "type": "", "demo": "tablesdb\/create-integer-column.md", @@ -39089,7 +39999,7 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 368, + "weight": 376, "cookies": false, "type": "", "demo": "tablesdb\/update-integer-column.md", @@ -39221,7 +40131,7 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 369, + "weight": 377, "cookies": false, "type": "", "demo": "tablesdb\/create-ip-column.md", @@ -39333,7 +40243,7 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 370, + "weight": 378, "cookies": false, "type": "", "demo": "tablesdb\/update-ip-column.md", @@ -39450,7 +40360,7 @@ "x-appwrite": { "method": "createLineColumn", "group": "columns", - "weight": 371, + "weight": 379, "cookies": false, "type": "", "demo": "tablesdb\/create-line-column.md", @@ -39564,7 +40474,7 @@ "x-appwrite": { "method": "updateLineColumn", "group": "columns", - "weight": 372, + "weight": 380, "cookies": false, "type": "", "demo": "tablesdb\/update-line-column.md", @@ -39663,6 +40573,464 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/longtext": { + "post": { + "summary": "Create longtext column", + "operationId": "tablesDBCreateLongtextColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a longtext column.\n", + "responses": { + "202": { + "description": "ColumnLongtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLongtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLongtextColumn", + "group": "columns", + "weight": 397, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-longtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-longtext-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/longtext\/{key}": { + "patch": { + "summary": "Update longtext column", + "operationId": "tablesDBUpdateLongtextColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a longtext column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnLongtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLongtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLongtextColumn", + "group": "columns", + "weight": 398, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-longtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-longtext-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/mediumtext": { + "post": { + "summary": "Create mediumtext column", + "operationId": "tablesDBCreateMediumtextColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a mediumtext column.\n", + "responses": { + "202": { + "description": "ColumnMediumtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnMediumtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createMediumtextColumn", + "group": "columns", + "weight": 395, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-mediumtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-mediumtext-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/mediumtext\/{key}": { + "patch": { + "summary": "Update mediumtext column", + "operationId": "tablesDBUpdateMediumtextColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a mediumtext column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnMediumtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnMediumtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateMediumtextColumn", + "group": "columns", + "weight": 396, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-mediumtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-mediumtext-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { "post": { "summary": "Create point column", @@ -39687,7 +41055,7 @@ "x-appwrite": { "method": "createPointColumn", "group": "columns", - "weight": 373, + "weight": 381, "cookies": false, "type": "", "demo": "tablesdb\/create-point-column.md", @@ -39801,7 +41169,7 @@ "x-appwrite": { "method": "updatePointColumn", "group": "columns", - "weight": 374, + "weight": 382, "cookies": false, "type": "", "demo": "tablesdb\/update-point-column.md", @@ -39924,7 +41292,7 @@ "x-appwrite": { "method": "createPolygonColumn", "group": "columns", - "weight": 375, + "weight": 383, "cookies": false, "type": "", "demo": "tablesdb\/create-polygon-column.md", @@ -40038,7 +41406,7 @@ "x-appwrite": { "method": "updatePolygonColumn", "group": "columns", - "weight": 376, + "weight": 384, "cookies": false, "type": "", "demo": "tablesdb\/update-polygon-column.md", @@ -40161,7 +41529,7 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 377, + "weight": 385, "cookies": false, "type": "", "demo": "tablesdb\/create-relationship-column.md", @@ -40295,11 +41663,11 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 379, + "weight": 387, "cookies": false, "type": "", "demo": "tablesdb\/create-string-column.md", @@ -40317,6 +41685,10 @@ "packaging": false, "public": true, "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-string-column.md", + "deprecated": { + "since": "1.9.0", + "replaceWith": "tablesDB.createTextColumn" + }, "auth": { "Project": [] } @@ -40419,11 +41791,11 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 380, + "weight": 388, "cookies": false, "type": "", "demo": "tablesdb\/update-string-column.md", @@ -40441,6 +41813,10 @@ "packaging": false, "public": true, "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-string-column.md", + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateTextColumn" + }, "auth": { "Project": [] } @@ -40523,6 +41899,235 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/text": { + "post": { + "summary": "Create text column", + "operationId": "tablesDBCreateTextColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a text column.\n", + "responses": { + "202": { + "description": "ColumnText", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnText" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createTextColumn", + "group": "columns", + "weight": 393, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-text-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-text-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/text\/{key}": { + "patch": { + "summary": "Update text column", + "operationId": "tablesDBUpdateTextColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a text column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnText", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnText" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateTextColumn", + "group": "columns", + "weight": 394, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-text-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-text-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", @@ -40547,7 +42152,7 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 381, + "weight": 389, "cookies": false, "type": "", "demo": "tablesdb\/create-url-column.md", @@ -40660,7 +42265,7 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 382, + "weight": 390, "cookies": false, "type": "", "demo": "tablesdb\/update-url-column.md", @@ -40754,6 +42359,249 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/varchar": { + "post": { + "summary": "Create varchar column", + "operationId": "tablesDBCreateVarcharColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a varchar column.\n", + "responses": { + "202": { + "description": "ColumnVarchar", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnVarchar" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createVarcharColumn", + "group": "columns", + "weight": 391, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-varchar-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-varchar-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "size": { + "type": "integer", + "description": "Column size for varchar columns, in number of characters. Maximum size is 16381.", + "x-example": 1, + "format": "int32" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false + } + }, + "required": [ + "key", + "size", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/varchar\/{key}": { + "patch": { + "summary": "Update varchar column", + "operationId": "tablesDBUpdateVarcharColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a varchar column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnVarchar", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnVarchar" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateVarcharColumn", + "group": "columns", + "weight": 392, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-varchar-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-varchar-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "size": { + "type": "integer", + "description": "Maximum size of the varchar column.", + "x-example": 1, + "format": "int32", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", @@ -40809,7 +42657,7 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 354, + "weight": 362, "cookies": false, "type": "", "demo": "tablesdb\/get-column.md", @@ -40885,7 +42733,7 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 355, + "weight": 363, "cookies": false, "type": "", "demo": "tablesdb\/delete-column.md", @@ -40970,7 +42818,7 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 378, + "weight": 386, "cookies": false, "type": "", "demo": "tablesdb\/update-relationship-column.md", @@ -41085,7 +42933,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 386, + "weight": 402, "cookies": false, "type": "", "demo": "tablesdb\/list-indexes.md", @@ -41183,7 +43031,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 383, + "weight": 399, "cookies": false, "type": "", "demo": "tablesdb\/create-index.md", @@ -41323,7 +43171,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 384, + "weight": 400, "cookies": false, "type": "", "demo": "tablesdb\/get-index.md", @@ -41399,7 +43247,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 385, + "weight": 401, "cookies": false, "type": "", "demo": "tablesdb\/delete-index.md", @@ -41484,7 +43332,7 @@ "x-appwrite": { "method": "listTableLogs", "group": "tables", - "weight": 352, + "weight": 360, "cookies": false, "type": "", "demo": "tablesdb\/list-table-logs.md", @@ -41571,7 +43419,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 395, + "weight": 411, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -41682,7 +43530,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 387, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -41864,7 +43712,7 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 392, + "weight": 408, "cookies": false, "type": "", "demo": "tablesdb\/upsert-rows.md", @@ -41996,7 +43844,7 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 390, + "weight": 406, "cookies": false, "type": "", "demo": "tablesdb\/update-rows.md", @@ -42100,7 +43948,7 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 394, + "weight": 410, "cookies": false, "type": "", "demo": "tablesdb\/delete-rows.md", @@ -42201,7 +44049,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 388, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -42311,7 +44159,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 391, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -42461,7 +44309,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 389, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -42572,7 +44420,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 393, + "weight": 409, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -42678,7 +44526,7 @@ "x-appwrite": { "method": "listRowLogs", "group": "logs", - "weight": 396, + "weight": 412, "cookies": false, "type": "", "demo": "tablesdb\/list-row-logs.md", @@ -42775,7 +44623,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 398, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -42903,7 +44751,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 397, + "weight": 413, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", @@ -43031,7 +44879,7 @@ "x-appwrite": { "method": "getTableUsage", "group": null, - "weight": 353, + "weight": 361, "cookies": false, "type": "", "demo": "tablesdb\/get-table-usage.md", @@ -43127,7 +44975,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 345, + "weight": 353, "cookies": false, "type": "", "demo": "tablesdb\/get-usage.md", @@ -44418,7 +46266,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 517, + "weight": 533, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -44512,7 +46360,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 515, + "weight": 531, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -44601,7 +46449,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 516, + "weight": 532, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -44661,7 +46509,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 518, + "weight": 534, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -44731,7 +46579,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 519, + "weight": 535, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -52419,6 +54267,338 @@ ] } }, + "attributeVarchar": { + "description": "AttributeVarchar", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "size": { + "type": "integer", + "description": "Attribute size.", + "x-example": 128, + "format": "int32" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt", + "size" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "size": 128, + "default": "default" + } + }, + "attributeText": { + "description": "AttributeText", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "attributeMediumtext": { + "description": "AttributeMediumtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "attributeLongtext": { + "description": "AttributeLongtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, "table": { "description": "Table", "type": "object", @@ -53868,6 +56048,338 @@ ] } }, + "columnVarchar": { + "description": "ColumnVarchar", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "size": { + "type": "integer", + "description": "Column size.", + "x-example": 128, + "format": "int32" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt", + "size" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "size": 128, + "default": "default" + } + }, + "columnText": { + "description": "ColumnText", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "columnMediumtext": { + "description": "ColumnMediumtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "columnLongtext": { + "description": "ColumnLongtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, "index": { "description": "Index", "type": "object", diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 6b4e836a43..16d0f92c7d 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -5854,7 +5854,7 @@ "x-appwrite": { "method": "listTransactions", "group": "transactions", - "weight": 338, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/list-transactions.md", @@ -5923,7 +5923,7 @@ "x-appwrite": { "method": "createTransaction", "group": "transactions", - "weight": 334, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-transaction.md", @@ -5996,7 +5996,7 @@ "x-appwrite": { "method": "getTransaction", "group": "transactions", - "weight": 335, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/get-transaction.md", @@ -6062,7 +6062,7 @@ "x-appwrite": { "method": "updateTransaction", "group": "transactions", - "weight": 336, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/update-transaction.md", @@ -6142,7 +6142,7 @@ "x-appwrite": { "method": "deleteTransaction", "group": "transactions", - "weight": 337, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/delete-transaction.md", @@ -6210,7 +6210,7 @@ "x-appwrite": { "method": "createOperations", "group": "transactions", - "weight": 339, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/create-operations.md", @@ -9119,6 +9119,456 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/longtext": { + "post": { + "summary": "Create longtext attribute", + "operationId": "databasesCreateLongtextAttribute", + "tags": [ + "databases" + ], + "description": "Create a longtext attribute.\n", + "responses": { + "202": { + "description": "AttributeLongtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLongtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLongtextAttribute", + "group": "attributes", + "weight": 336, + "cookies": false, + "type": "", + "demo": "databases\/create-longtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-longtext-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/longtext\/{key}": { + "patch": { + "summary": "Update longtext attribute", + "operationId": "databasesUpdateLongtextAttribute", + "tags": [ + "databases" + ], + "description": "Update a longtext attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeLongtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLongtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLongtextAttribute", + "group": "attributes", + "weight": 337, + "cookies": false, + "type": "", + "demo": "databases\/update-longtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-longtext-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/mediumtext": { + "post": { + "summary": "Create mediumtext attribute", + "operationId": "databasesCreateMediumtextAttribute", + "tags": [ + "databases" + ], + "description": "Create a mediumtext attribute.\n", + "responses": { + "202": { + "description": "AttributeMediumtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeMediumtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createMediumtextAttribute", + "group": "attributes", + "weight": 334, + "cookies": false, + "type": "", + "demo": "databases\/create-mediumtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-mediumtext-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/mediumtext\/{key}": { + "patch": { + "summary": "Update mediumtext attribute", + "operationId": "databasesUpdateMediumtextAttribute", + "tags": [ + "databases" + ], + "description": "Update a mediumtext attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeMediumtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeMediumtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateMediumtextAttribute", + "group": "attributes", + "weight": 335, + "cookies": false, + "type": "", + "demo": "databases\/update-mediumtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-mediumtext-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { "post": { "summary": "Create point attribute", @@ -9993,6 +10443,231 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/text": { + "post": { + "summary": "Create text attribute", + "operationId": "databasesCreateTextAttribute", + "tags": [ + "databases" + ], + "description": "Create a text attribute.\n", + "responses": { + "202": { + "description": "AttributeText", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeText" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createTextAttribute", + "group": "attributes", + "weight": 332, + "cookies": false, + "type": "", + "demo": "databases\/create-text-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-text-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/text\/{key}": { + "patch": { + "summary": "Update text attribute", + "operationId": "databasesUpdateTextAttribute", + "tags": [ + "databases" + ], + "description": "Update a text attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeText", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeText" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateTextAttribute", + "group": "attributes", + "weight": 333, + "cookies": false, + "type": "", + "demo": "databases\/update-text-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-text-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/url": { "post": { "summary": "Create URL attribute", @@ -10228,6 +10903,245 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/varchar": { + "post": { + "summary": "Create varchar attribute", + "operationId": "databasesCreateVarcharAttribute", + "tags": [ + "databases" + ], + "description": "Create a varchar attribute.\n", + "responses": { + "202": { + "description": "AttributeVarchar", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeVarchar" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createVarcharAttribute", + "group": "attributes", + "weight": 330, + "cookies": false, + "type": "", + "demo": "databases\/create-varchar-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-varchar-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "size": { + "type": "integer", + "description": "Attribute size for varchar attributes, in number of characters. Maximum size is 16381.", + "x-example": 1, + "format": "int32" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false + } + }, + "required": [ + "key", + "size", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/varchar\/{key}": { + "patch": { + "summary": "Update varchar attribute", + "operationId": "databasesUpdateVarcharAttribute", + "tags": [ + "databases" + ], + "description": "Update a varchar attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeVarchar", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeVarchar" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateVarcharAttribute", + "group": "attributes", + "weight": 331, + "cookies": false, + "type": "", + "demo": "databases\/update-varchar-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-varchar-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "", + "x-nullable": true + }, + "size": { + "type": "integer", + "description": "Maximum size of the varchar attribute.", + "x-example": 1, + "format": "int32", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/{key}": { "get": { "summary": "Get attribute", @@ -11978,7 +12892,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 333, + "weight": 341, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -12078,7 +12992,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 330, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -12220,7 +13134,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 331, + "weight": 339, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -12298,7 +13212,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 332, + "weight": 340, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -12385,7 +13299,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 415, + "weight": 431, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -12471,7 +13385,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 412, + "weight": 428, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -12768,7 +13682,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 417, + "weight": 433, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -12819,7 +13733,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 418, + "weight": 434, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -12870,7 +13784,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 413, + "weight": 429, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -12931,7 +13845,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 414, + "weight": 430, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -13225,7 +14139,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 416, + "weight": 432, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -13288,7 +14202,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 421, + "weight": 437, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -13370,7 +14284,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 422, + "weight": 438, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -13466,7 +14380,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 419, + "weight": 435, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -13567,7 +14481,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 427, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -13654,7 +14568,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 424, + "weight": 440, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -13772,7 +14686,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 425, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -13871,7 +14785,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 420, + "weight": 436, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -13935,7 +14849,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 423, + "weight": 439, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -14001,7 +14915,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 426, + "weight": 442, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -14093,7 +15007,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 428, + "weight": 444, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -14166,7 +15080,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 431, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -14255,7 +15169,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 429, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -14375,7 +15289,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 430, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -14443,7 +15357,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 432, + "weight": 448, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -14516,7 +15430,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 437, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -14577,7 +15491,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 435, + "weight": 451, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -14670,7 +15584,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 436, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -14741,7 +15655,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 438, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -14836,7 +15750,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 439, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -15021,7 +15935,7 @@ "x-appwrite": { "method": "get", "group": "health", - "weight": 442, + "weight": 458, "cookies": false, "type": "", "demo": "health\/get.md", @@ -15073,7 +15987,7 @@ "x-appwrite": { "method": "getAntivirus", "group": "health", - "weight": 451, + "weight": 467, "cookies": false, "type": "", "demo": "health\/get-antivirus.md", @@ -15125,7 +16039,7 @@ "x-appwrite": { "method": "getCache", "group": "health", - "weight": 445, + "weight": 461, "cookies": false, "type": "", "demo": "health\/get-cache.md", @@ -15177,7 +16091,7 @@ "x-appwrite": { "method": "getCertificate", "group": "health", - "weight": 448, + "weight": 464, "cookies": false, "type": "", "demo": "health\/get-certificate.md", @@ -15240,7 +16154,7 @@ "x-appwrite": { "method": "getDB", "group": "health", - "weight": 444, + "weight": 460, "cookies": false, "type": "", "demo": "health\/get-db.md", @@ -15292,7 +16206,7 @@ "x-appwrite": { "method": "getPubSub", "group": "health", - "weight": 446, + "weight": 462, "cookies": false, "type": "", "demo": "health\/get-pub-sub.md", @@ -15344,7 +16258,7 @@ "x-appwrite": { "method": "getQueueAudits", "group": "queue", - "weight": 452, + "weight": 468, "cookies": false, "type": "", "demo": "health\/get-queue-audits.md", @@ -15409,7 +16323,7 @@ "x-appwrite": { "method": "getQueueBuilds", "group": "queue", - "weight": 456, + "weight": 472, "cookies": false, "type": "", "demo": "health\/get-queue-builds.md", @@ -15474,7 +16388,7 @@ "x-appwrite": { "method": "getQueueCertificates", "group": "queue", - "weight": 455, + "weight": 471, "cookies": false, "type": "", "demo": "health\/get-queue-certificates.md", @@ -15539,7 +16453,7 @@ "x-appwrite": { "method": "getQueueDatabases", "group": "queue", - "weight": 457, + "weight": 473, "cookies": false, "type": "", "demo": "health\/get-queue-databases.md", @@ -15615,7 +16529,7 @@ "x-appwrite": { "method": "getQueueDeletes", "group": "queue", - "weight": 458, + "weight": 474, "cookies": false, "type": "", "demo": "health\/get-queue-deletes.md", @@ -15680,7 +16594,7 @@ "x-appwrite": { "method": "getFailedJobs", "group": "queue", - "weight": 465, + "weight": 481, "cookies": false, "type": "", "demo": "health\/get-failed-jobs.md", @@ -15772,7 +16686,7 @@ "x-appwrite": { "method": "getQueueFunctions", "group": "queue", - "weight": 462, + "weight": 478, "cookies": false, "type": "", "demo": "health\/get-queue-functions.md", @@ -15837,7 +16751,7 @@ "x-appwrite": { "method": "getQueueLogs", "group": "queue", - "weight": 454, + "weight": 470, "cookies": false, "type": "", "demo": "health\/get-queue-logs.md", @@ -15902,7 +16816,7 @@ "x-appwrite": { "method": "getQueueMails", "group": "queue", - "weight": 459, + "weight": 475, "cookies": false, "type": "", "demo": "health\/get-queue-mails.md", @@ -15967,7 +16881,7 @@ "x-appwrite": { "method": "getQueueMessaging", "group": "queue", - "weight": 460, + "weight": 476, "cookies": false, "type": "", "demo": "health\/get-queue-messaging.md", @@ -16032,7 +16946,7 @@ "x-appwrite": { "method": "getQueueMigrations", "group": "queue", - "weight": 461, + "weight": 477, "cookies": false, "type": "", "demo": "health\/get-queue-migrations.md", @@ -16097,7 +17011,7 @@ "x-appwrite": { "method": "getQueueStatsResources", "group": "queue", - "weight": 463, + "weight": 479, "cookies": false, "type": "", "demo": "health\/get-queue-stats-resources.md", @@ -16162,7 +17076,7 @@ "x-appwrite": { "method": "getQueueUsage", "group": "queue", - "weight": 464, + "weight": 480, "cookies": false, "type": "", "demo": "health\/get-queue-usage.md", @@ -16227,7 +17141,7 @@ "x-appwrite": { "method": "getQueueWebhooks", "group": "queue", - "weight": 453, + "weight": 469, "cookies": false, "type": "", "demo": "health\/get-queue-webhooks.md", @@ -16292,7 +17206,7 @@ "x-appwrite": { "method": "getStorage", "group": "storage", - "weight": 450, + "weight": 466, "cookies": false, "type": "", "demo": "health\/get-storage.md", @@ -16344,7 +17258,7 @@ "x-appwrite": { "method": "getStorageLocal", "group": "storage", - "weight": 449, + "weight": 465, "cookies": false, "type": "", "demo": "health\/get-storage-local.md", @@ -16396,7 +17310,7 @@ "x-appwrite": { "method": "getTime", "group": "health", - "weight": 447, + "weight": 463, "cookies": false, "type": "", "demo": "health\/get-time.md", @@ -22359,7 +23273,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 469, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -22445,7 +23359,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 467, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -22700,7 +23614,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 472, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -22751,7 +23665,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 495, + "weight": 511, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -22802,7 +23716,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 468, + "weight": 484, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -22863,7 +23777,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 470, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -23114,7 +24028,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 471, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -23177,7 +24091,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 478, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -23259,7 +24173,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 477, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -23355,7 +24269,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 473, + "weight": 489, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -23462,7 +24376,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 481, + "weight": 497, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -23544,7 +24458,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 474, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -23662,7 +24576,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 475, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -23762,7 +24676,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 476, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -23826,7 +24740,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 479, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -23892,7 +24806,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 480, + "weight": 496, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -23984,7 +24898,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 482, + "weight": 498, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -24057,7 +24971,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 484, + "weight": 500, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -24144,7 +25058,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 483, + "weight": 499, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -24208,7 +25122,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 485, + "weight": 501, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -24281,7 +25195,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 488, + "weight": 504, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -24342,7 +25256,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 486, + "weight": 502, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -24435,7 +25349,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 487, + "weight": 503, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -24506,7 +25420,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 489, + "weight": 505, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -24601,7 +25515,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 490, + "weight": 506, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -24674,7 +25588,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 522, + "weight": 538, "cookies": false, "type": "", "demo": "storage\/list-buckets.md", @@ -24761,7 +25675,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 520, + "weight": 536, "cookies": false, "type": "", "demo": "storage\/create-bucket.md", @@ -24898,7 +25812,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 521, + "weight": 537, "cookies": false, "type": "", "demo": "storage\/get-bucket.md", @@ -24960,7 +25874,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 523, + "weight": 539, "cookies": false, "type": "", "demo": "storage\/update-bucket.md", @@ -25094,7 +26008,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 524, + "weight": 540, "cookies": false, "type": "", "demo": "storage\/delete-bucket.md", @@ -25158,7 +26072,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 527, + "weight": 543, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -25259,7 +26173,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 525, + "weight": 541, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -25363,7 +26277,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 526, + "weight": 542, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -25439,7 +26353,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 528, + "weight": 544, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -25533,7 +26447,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 529, + "weight": 545, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -25604,7 +26518,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 531, + "weight": 547, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -25686,7 +26600,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 530, + "weight": 546, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -25918,7 +26832,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 532, + "weight": 548, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -26007,7 +26921,7 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 344, + "weight": 352, "cookies": false, "type": "", "demo": "tablesdb\/list.md", @@ -26094,7 +27008,7 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 340, + "weight": 348, "cookies": false, "type": "", "demo": "tablesdb\/create.md", @@ -26176,7 +27090,7 @@ "x-appwrite": { "method": "listTransactions", "group": "transactions", - "weight": 403, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/list-transactions.md", @@ -26248,7 +27162,7 @@ "x-appwrite": { "method": "createTransaction", "group": "transactions", - "weight": 399, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/create-transaction.md", @@ -26324,7 +27238,7 @@ "x-appwrite": { "method": "getTransaction", "group": "transactions", - "weight": 400, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/get-transaction.md", @@ -26393,7 +27307,7 @@ "x-appwrite": { "method": "updateTransaction", "group": "transactions", - "weight": 401, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-transaction.md", @@ -26476,7 +27390,7 @@ "x-appwrite": { "method": "deleteTransaction", "group": "transactions", - "weight": 402, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/delete-transaction.md", @@ -26547,7 +27461,7 @@ "x-appwrite": { "method": "createOperations", "group": "transactions", - "weight": 404, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-operations.md", @@ -26637,7 +27551,7 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 341, + "weight": 349, "cookies": false, "type": "", "demo": "tablesdb\/get.md", @@ -26699,7 +27613,7 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 342, + "weight": 350, "cookies": false, "type": "", "demo": "tablesdb\/update.md", @@ -26775,7 +27689,7 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 343, + "weight": 351, "cookies": false, "type": "", "demo": "tablesdb\/delete.md", @@ -26839,7 +27753,7 @@ "x-appwrite": { "method": "listTables", "group": "tables", - "weight": 351, + "weight": 359, "cookies": false, "type": "", "demo": "tablesdb\/list-tables.md", @@ -26939,7 +27853,7 @@ "x-appwrite": { "method": "createTable", "group": "tables", - "weight": 347, + "weight": 355, "cookies": false, "type": "", "demo": "tablesdb\/create-table.md", @@ -27066,7 +27980,7 @@ "x-appwrite": { "method": "getTable", "group": "tables", - "weight": 348, + "weight": 356, "cookies": false, "type": "", "demo": "tablesdb\/get-table.md", @@ -27141,7 +28055,7 @@ "x-appwrite": { "method": "updateTable", "group": "tables", - "weight": 349, + "weight": 357, "cookies": false, "type": "", "demo": "tablesdb\/update-table.md", @@ -27244,7 +28158,7 @@ "x-appwrite": { "method": "deleteTable", "group": "tables", - "weight": 350, + "weight": 358, "cookies": false, "type": "", "demo": "tablesdb\/delete-table.md", @@ -27321,7 +28235,7 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 356, + "weight": 364, "cookies": false, "type": "", "demo": "tablesdb\/list-columns.md", @@ -27422,7 +28336,7 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 357, + "weight": 365, "cookies": false, "type": "", "demo": "tablesdb\/create-boolean-column.md", @@ -27535,7 +28449,7 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 358, + "weight": 366, "cookies": false, "type": "", "demo": "tablesdb\/update-boolean-column.md", @@ -27653,7 +28567,7 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 359, + "weight": 367, "cookies": false, "type": "", "demo": "tablesdb\/create-datetime-column.md", @@ -27766,7 +28680,7 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 360, + "weight": 368, "cookies": false, "type": "", "demo": "tablesdb\/update-datetime-column.md", @@ -27884,7 +28798,7 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 361, + "weight": 369, "cookies": false, "type": "", "demo": "tablesdb\/create-email-column.md", @@ -27998,7 +28912,7 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 362, + "weight": 370, "cookies": false, "type": "", "demo": "tablesdb\/update-email-column.md", @@ -28117,7 +29031,7 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 363, + "weight": 371, "cookies": false, "type": "", "demo": "tablesdb\/create-enum-column.md", @@ -28239,7 +29153,7 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 364, + "weight": 372, "cookies": false, "type": "", "demo": "tablesdb\/update-enum-column.md", @@ -28366,7 +29280,7 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 365, + "weight": 373, "cookies": false, "type": "", "demo": "tablesdb\/create-float-column.md", @@ -28494,7 +29408,7 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 366, + "weight": 374, "cookies": false, "type": "", "demo": "tablesdb\/update-float-column.md", @@ -28627,7 +29541,7 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 367, + "weight": 375, "cookies": false, "type": "", "demo": "tablesdb\/create-integer-column.md", @@ -28755,7 +29669,7 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 368, + "weight": 376, "cookies": false, "type": "", "demo": "tablesdb\/update-integer-column.md", @@ -28888,7 +29802,7 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 369, + "weight": 377, "cookies": false, "type": "", "demo": "tablesdb\/create-ip-column.md", @@ -29001,7 +29915,7 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 370, + "weight": 378, "cookies": false, "type": "", "demo": "tablesdb\/update-ip-column.md", @@ -29119,7 +30033,7 @@ "x-appwrite": { "method": "createLineColumn", "group": "columns", - "weight": 371, + "weight": 379, "cookies": false, "type": "", "demo": "tablesdb\/create-line-column.md", @@ -29234,7 +30148,7 @@ "x-appwrite": { "method": "updateLineColumn", "group": "columns", - "weight": 372, + "weight": 380, "cookies": false, "type": "", "demo": "tablesdb\/update-line-column.md", @@ -29334,6 +30248,468 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/longtext": { + "post": { + "summary": "Create longtext column", + "operationId": "tablesDBCreateLongtextColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a longtext column.\n", + "responses": { + "202": { + "description": "ColumnLongtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLongtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLongtextColumn", + "group": "columns", + "weight": 397, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-longtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-longtext-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/longtext\/{key}": { + "patch": { + "summary": "Update longtext column", + "operationId": "tablesDBUpdateLongtextColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a longtext column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnLongtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLongtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLongtextColumn", + "group": "columns", + "weight": 398, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-longtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-longtext-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/mediumtext": { + "post": { + "summary": "Create mediumtext column", + "operationId": "tablesDBCreateMediumtextColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a mediumtext column.\n", + "responses": { + "202": { + "description": "ColumnMediumtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnMediumtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createMediumtextColumn", + "group": "columns", + "weight": 395, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-mediumtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-mediumtext-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/mediumtext\/{key}": { + "patch": { + "summary": "Update mediumtext column", + "operationId": "tablesDBUpdateMediumtextColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a mediumtext column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnMediumtext", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnMediumtext" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateMediumtextColumn", + "group": "columns", + "weight": 396, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-mediumtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-mediumtext-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { "post": { "summary": "Create point column", @@ -29358,7 +30734,7 @@ "x-appwrite": { "method": "createPointColumn", "group": "columns", - "weight": 373, + "weight": 381, "cookies": false, "type": "", "demo": "tablesdb\/create-point-column.md", @@ -29473,7 +30849,7 @@ "x-appwrite": { "method": "updatePointColumn", "group": "columns", - "weight": 374, + "weight": 382, "cookies": false, "type": "", "demo": "tablesdb\/update-point-column.md", @@ -29597,7 +30973,7 @@ "x-appwrite": { "method": "createPolygonColumn", "group": "columns", - "weight": 375, + "weight": 383, "cookies": false, "type": "", "demo": "tablesdb\/create-polygon-column.md", @@ -29712,7 +31088,7 @@ "x-appwrite": { "method": "updatePolygonColumn", "group": "columns", - "weight": 376, + "weight": 384, "cookies": false, "type": "", "demo": "tablesdb\/update-polygon-column.md", @@ -29836,7 +31212,7 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 377, + "weight": 385, "cookies": false, "type": "", "demo": "tablesdb\/create-relationship-column.md", @@ -29971,11 +31347,11 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 379, + "weight": 387, "cookies": false, "type": "", "demo": "tablesdb\/create-string-column.md", @@ -29993,6 +31369,10 @@ "packaging": false, "public": true, "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-string-column.md", + "deprecated": { + "since": "1.9.0", + "replaceWith": "tablesDB.createTextColumn" + }, "auth": { "Project": [], "Key": [] @@ -30096,11 +31476,11 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 380, + "weight": 388, "cookies": false, "type": "", "demo": "tablesdb\/update-string-column.md", @@ -30118,6 +31498,10 @@ "packaging": false, "public": true, "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-string-column.md", + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateTextColumn" + }, "auth": { "Project": [], "Key": [] @@ -30201,6 +31585,237 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/text": { + "post": { + "summary": "Create text column", + "operationId": "tablesDBCreateTextColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a text column.\n", + "responses": { + "202": { + "description": "ColumnText", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnText" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createTextColumn", + "group": "columns", + "weight": 393, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-text-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-text-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/text\/{key}": { + "patch": { + "summary": "Update text column", + "operationId": "tablesDBUpdateTextColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a text column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnText", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnText" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateTextColumn", + "group": "columns", + "weight": 394, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-text-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-text-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", @@ -30225,7 +31840,7 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 381, + "weight": 389, "cookies": false, "type": "", "demo": "tablesdb\/create-url-column.md", @@ -30339,7 +31954,7 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 382, + "weight": 390, "cookies": false, "type": "", "demo": "tablesdb\/update-url-column.md", @@ -30434,6 +32049,251 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/varchar": { + "post": { + "summary": "Create varchar column", + "operationId": "tablesDBCreateVarcharColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a varchar column.\n", + "responses": { + "202": { + "description": "ColumnVarchar", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnVarchar" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createVarcharColumn", + "group": "columns", + "weight": 391, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-varchar-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-varchar-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "size": { + "type": "integer", + "description": "Column size for varchar columns, in number of characters. Maximum size is 16381.", + "x-example": 1, + "format": "int32" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false + } + }, + "required": [ + "key", + "size", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/varchar\/{key}": { + "patch": { + "summary": "Update varchar column", + "operationId": "tablesDBUpdateVarcharColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a varchar column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnVarchar", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnVarchar" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateVarcharColumn", + "group": "columns", + "weight": 392, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-varchar-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-varchar-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "", + "x-nullable": true + }, + "size": { + "type": "integer", + "description": "Maximum size of the varchar column.", + "x-example": 1, + "format": "int32", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", @@ -30489,7 +32349,7 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 354, + "weight": 362, "cookies": false, "type": "", "demo": "tablesdb\/get-column.md", @@ -30566,7 +32426,7 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 355, + "weight": 363, "cookies": false, "type": "", "demo": "tablesdb\/delete-column.md", @@ -30652,7 +32512,7 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 378, + "weight": 386, "cookies": false, "type": "", "demo": "tablesdb\/update-relationship-column.md", @@ -30768,7 +32628,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 386, + "weight": 402, "cookies": false, "type": "", "demo": "tablesdb\/list-indexes.md", @@ -30867,7 +32727,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 383, + "weight": 399, "cookies": false, "type": "", "demo": "tablesdb\/create-index.md", @@ -31008,7 +32868,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 384, + "weight": 400, "cookies": false, "type": "", "demo": "tablesdb\/get-index.md", @@ -31085,7 +32945,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 385, + "weight": 401, "cookies": false, "type": "", "demo": "tablesdb\/delete-index.md", @@ -31171,7 +33031,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 395, + "weight": 411, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -31284,7 +33144,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 387, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -31470,7 +33330,7 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 392, + "weight": 408, "cookies": false, "type": "", "demo": "tablesdb\/upsert-rows.md", @@ -31604,7 +33464,7 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 390, + "weight": 406, "cookies": false, "type": "", "demo": "tablesdb\/update-rows.md", @@ -31709,7 +33569,7 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 394, + "weight": 410, "cookies": false, "type": "", "demo": "tablesdb\/delete-rows.md", @@ -31811,7 +33671,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 388, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -31923,7 +33783,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 391, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -32076,7 +33936,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 389, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -32189,7 +34049,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 393, + "weight": 409, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -32297,7 +34157,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 398, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -32427,7 +34287,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 397, + "weight": 413, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", @@ -33677,7 +35537,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 517, + "weight": 533, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -33772,7 +35632,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 515, + "weight": 531, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -33862,7 +35722,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 516, + "weight": 532, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -33923,7 +35783,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 518, + "weight": 534, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -33994,7 +35854,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 519, + "weight": 535, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -40473,6 +42333,338 @@ ] } }, + "attributeVarchar": { + "description": "AttributeVarchar", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "size": { + "type": "integer", + "description": "Attribute size.", + "x-example": 128, + "format": "int32" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt", + "size" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "size": 128, + "default": "default" + } + }, + "attributeText": { + "description": "AttributeText", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "attributeMediumtext": { + "description": "AttributeMediumtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "attributeLongtext": { + "description": "AttributeLongtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, "table": { "description": "Table", "type": "object", @@ -41922,6 +44114,338 @@ ] } }, + "columnVarchar": { + "description": "ColumnVarchar", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "size": { + "type": "integer", + "description": "Column size.", + "x-example": 128, + "format": "int32" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt", + "size" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "size": 128, + "default": "default" + } + }, + "columnText": { + "description": "ColumnText", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "columnMediumtext": { + "description": "ColumnMediumtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "columnLongtext": { + "description": "ColumnLongtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, "index": { "description": "Index", "type": "object", diff --git a/app/config/specs/swagger2-1.8.x-client.json b/app/config/specs/swagger2-1.8.x-client.json index 347e172dfd..e265c1fd93 100644 --- a/app/config/specs/swagger2-1.8.x-client.json +++ b/app/config/specs/swagger2-1.8.x-client.json @@ -5994,7 +5994,7 @@ "x-appwrite": { "method": "listTransactions", "group": "transactions", - "weight": 338, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/list-transactions.md", @@ -6061,7 +6061,7 @@ "x-appwrite": { "method": "createTransaction", "group": "transactions", - "weight": 334, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-transaction.md", @@ -6132,7 +6132,7 @@ "x-appwrite": { "method": "getTransaction", "group": "transactions", - "weight": 335, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/get-transaction.md", @@ -6195,7 +6195,7 @@ "x-appwrite": { "method": "updateTransaction", "group": "transactions", - "weight": 336, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/update-transaction.md", @@ -6274,7 +6274,7 @@ "x-appwrite": { "method": "deleteTransaction", "group": "transactions", - "weight": 337, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/delete-transaction.md", @@ -6339,7 +6339,7 @@ "x-appwrite": { "method": "createOperations", "group": "transactions", - "weight": 339, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/create-operations.md", @@ -7392,7 +7392,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 431, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -7475,7 +7475,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 429, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -7594,7 +7594,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 430, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -8396,7 +8396,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 527, + "weight": 543, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -8489,7 +8489,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 525, + "weight": 541, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -8580,7 +8580,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 526, + "weight": 542, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -8651,7 +8651,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 528, + "weight": 544, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -8742,7 +8742,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 529, + "weight": 545, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -8813,7 +8813,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 531, + "weight": 547, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -8893,7 +8893,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 530, + "weight": 546, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -9101,7 +9101,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 532, + "weight": 548, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -9181,7 +9181,7 @@ "x-appwrite": { "method": "listTransactions", "group": "transactions", - "weight": 403, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/list-transactions.md", @@ -9251,7 +9251,7 @@ "x-appwrite": { "method": "createTransaction", "group": "transactions", - "weight": 399, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/create-transaction.md", @@ -9325,7 +9325,7 @@ "x-appwrite": { "method": "getTransaction", "group": "transactions", - "weight": 400, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/get-transaction.md", @@ -9391,7 +9391,7 @@ "x-appwrite": { "method": "updateTransaction", "group": "transactions", - "weight": 401, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-transaction.md", @@ -9473,7 +9473,7 @@ "x-appwrite": { "method": "deleteTransaction", "group": "transactions", - "weight": 402, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/delete-transaction.md", @@ -9541,7 +9541,7 @@ "x-appwrite": { "method": "createOperations", "group": "transactions", - "weight": 404, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-operations.md", @@ -9625,7 +9625,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 395, + "weight": 411, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -9728,7 +9728,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 387, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -9882,7 +9882,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 388, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -9984,7 +9984,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 391, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -10130,7 +10130,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 389, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -10239,7 +10239,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 393, + "weight": 409, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -10339,7 +10339,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 398, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -10461,7 +10461,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 397, + "weight": 413, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 0bb1a47f0a..4ff17f347b 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -6005,7 +6005,7 @@ "x-appwrite": { "method": "chat", "group": "console", - "weight": 497, + "weight": 513, "cookies": false, "type": "", "demo": "assistant\/chat.md", @@ -6069,7 +6069,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 498, + "weight": 514, "cookies": false, "type": "", "demo": "console\/get-resource.md", @@ -6140,7 +6140,7 @@ "x-appwrite": { "method": "variables", "group": "console", - "weight": 496, + "weight": 512, "cookies": false, "type": "", "demo": "console\/variables.md", @@ -6425,7 +6425,7 @@ "x-appwrite": { "method": "listTransactions", "group": "transactions", - "weight": 338, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/list-transactions.md", @@ -6492,7 +6492,7 @@ "x-appwrite": { "method": "createTransaction", "group": "transactions", - "weight": 334, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-transaction.md", @@ -6563,7 +6563,7 @@ "x-appwrite": { "method": "getTransaction", "group": "transactions", - "weight": 335, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/get-transaction.md", @@ -6626,7 +6626,7 @@ "x-appwrite": { "method": "updateTransaction", "group": "transactions", - "weight": 336, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/update-transaction.md", @@ -6705,7 +6705,7 @@ "x-appwrite": { "method": "deleteTransaction", "group": "transactions", - "weight": 337, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/delete-transaction.md", @@ -6770,7 +6770,7 @@ "x-appwrite": { "method": "createOperations", "group": "transactions", - "weight": 339, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/create-operations.md", @@ -9705,6 +9705,446 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/longtext": { + "post": { + "summary": "Create longtext attribute", + "operationId": "databasesCreateLongtextAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a longtext attribute.\n", + "responses": { + "202": { + "description": "AttributeLongtext", + "schema": { + "$ref": "#\/definitions\/attributeLongtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLongtextAttribute", + "group": "attributes", + "weight": 336, + "cookies": false, + "type": "", + "demo": "databases\/create-longtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-longtext-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/longtext\/{key}": { + "patch": { + "summary": "Update longtext attribute", + "operationId": "databasesUpdateLongtextAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a longtext attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeLongtext", + "schema": { + "$ref": "#\/definitions\/attributeLongtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLongtextAttribute", + "group": "attributes", + "weight": 337, + "cookies": false, + "type": "", + "demo": "databases\/update-longtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-longtext-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/mediumtext": { + "post": { + "summary": "Create mediumtext attribute", + "operationId": "databasesCreateMediumtextAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a mediumtext attribute.\n", + "responses": { + "202": { + "description": "AttributeMediumtext", + "schema": { + "$ref": "#\/definitions\/attributeMediumtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createMediumtextAttribute", + "group": "attributes", + "weight": 334, + "cookies": false, + "type": "", + "demo": "databases\/create-mediumtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-mediumtext-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/mediumtext\/{key}": { + "patch": { + "summary": "Update mediumtext attribute", + "operationId": "databasesUpdateMediumtextAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a mediumtext attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeMediumtext", + "schema": { + "$ref": "#\/definitions\/attributeMediumtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateMediumtextAttribute", + "group": "attributes", + "weight": 335, + "cookies": false, + "type": "", + "demo": "databases\/update-mediumtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-mediumtext-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { "post": { "summary": "Create point attribute", @@ -10538,6 +10978,226 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/text": { + "post": { + "summary": "Create text attribute", + "operationId": "databasesCreateTextAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a text attribute.\n", + "responses": { + "202": { + "description": "AttributeText", + "schema": { + "$ref": "#\/definitions\/attributeText" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createTextAttribute", + "group": "attributes", + "weight": 332, + "cookies": false, + "type": "", + "demo": "databases\/create-text-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-text-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/text\/{key}": { + "patch": { + "summary": "Update text attribute", + "operationId": "databasesUpdateTextAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a text attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeText", + "schema": { + "$ref": "#\/definitions\/attributeText" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateTextAttribute", + "group": "attributes", + "weight": 333, + "cookies": false, + "type": "", + "demo": "databases\/update-text-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-text-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/url": { "post": { "summary": "Create URL attribute", @@ -10768,6 +11428,242 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/varchar": { + "post": { + "summary": "Create varchar attribute", + "operationId": "databasesCreateVarcharAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a varchar attribute.\n", + "responses": { + "202": { + "description": "AttributeVarchar", + "schema": { + "$ref": "#\/definitions\/attributeVarchar" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createVarcharAttribute", + "group": "attributes", + "weight": 330, + "cookies": false, + "type": "", + "demo": "databases\/create-varchar-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-varchar-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "size": { + "type": "integer", + "description": "Attribute size for varchar attributes, in number of characters. Maximum size is 16381.", + "default": null, + "x-example": 1, + "format": "int32" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "size", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/varchar\/{key}": { + "patch": { + "summary": "Update varchar attribute", + "operationId": "databasesUpdateVarcharAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a varchar attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeVarchar", + "schema": { + "$ref": "#\/definitions\/attributeVarchar" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateVarcharAttribute", + "group": "attributes", + "weight": 331, + "cookies": false, + "type": "", + "demo": "databases\/update-varchar-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-varchar-attribute.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "size": { + "type": "integer", + "description": "Maximum size of the varchar attribute.", + "default": null, + "x-example": 1, + "format": "int32", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/{key}": { "get": { "summary": "Get attribute", @@ -12522,7 +13418,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 333, + "weight": 341, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -12616,7 +13512,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 330, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -12756,7 +13652,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 331, + "weight": 339, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -12831,7 +13727,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 332, + "weight": 340, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -13303,7 +14199,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 415, + "weight": 431, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -13385,7 +14281,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 412, + "weight": 428, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -13699,7 +14595,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 417, + "weight": 433, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -13749,7 +14645,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 418, + "weight": 434, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -13799,7 +14695,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 441, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/list-templates.md", @@ -13914,12 +14810,13 @@ "items": { "type": "string", "enum": [ - "dev-tools", "starter", "databases", "ai", "messaging", - "utilities" + "utilities", + "dev-tools", + "auth" ], "x-enum-name": null, "x-enum-keys": [] @@ -13983,7 +14880,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 440, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/get-template.md", @@ -14041,7 +14938,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 434, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/list-usage.md", @@ -14111,7 +15008,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 413, + "weight": 429, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -14171,7 +15068,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 414, + "weight": 430, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -14481,7 +15378,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 416, + "weight": 432, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -14543,7 +15440,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 421, + "weight": 437, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -14621,7 +15518,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 422, + "weight": 438, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -14711,7 +15608,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 419, + "weight": 435, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -14804,7 +15701,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 427, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -14890,7 +15787,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 424, + "weight": 440, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -15011,7 +15908,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 425, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -15108,7 +16005,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 420, + "weight": 436, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -15171,7 +16068,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 423, + "weight": 439, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -15239,7 +16136,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 426, + "weight": 442, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -15325,7 +16222,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 428, + "weight": 444, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -15393,7 +16290,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 431, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -15476,7 +16373,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 429, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -15595,7 +16492,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 430, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -15660,7 +16557,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 432, + "weight": 448, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -15728,7 +16625,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 433, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/get-usage.md", @@ -15806,7 +16703,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 437, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -15866,7 +16763,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 435, + "weight": 451, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -15957,7 +16854,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 436, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -16025,7 +16922,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 438, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -16120,7 +17017,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 439, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -16338,7 +17235,7 @@ "x-appwrite": { "method": "get", "group": "health", - "weight": 442, + "weight": 458, "cookies": false, "type": "", "demo": "health\/get.md", @@ -16389,7 +17286,7 @@ "x-appwrite": { "method": "getAntivirus", "group": "health", - "weight": 451, + "weight": 467, "cookies": false, "type": "", "demo": "health\/get-antivirus.md", @@ -16440,7 +17337,7 @@ "x-appwrite": { "method": "getCache", "group": "health", - "weight": 445, + "weight": 461, "cookies": false, "type": "", "demo": "health\/get-cache.md", @@ -16491,7 +17388,7 @@ "x-appwrite": { "method": "getCertificate", "group": "health", - "weight": 448, + "weight": 464, "cookies": false, "type": "", "demo": "health\/get-certificate.md", @@ -16551,7 +17448,7 @@ "x-appwrite": { "method": "getDB", "group": "health", - "weight": 444, + "weight": 460, "cookies": false, "type": "", "demo": "health\/get-db.md", @@ -16602,7 +17499,7 @@ "x-appwrite": { "method": "getPubSub", "group": "health", - "weight": 446, + "weight": 462, "cookies": false, "type": "", "demo": "health\/get-pub-sub.md", @@ -16653,7 +17550,7 @@ "x-appwrite": { "method": "getQueueAudits", "group": "queue", - "weight": 452, + "weight": 468, "cookies": false, "type": "", "demo": "health\/get-queue-audits.md", @@ -16715,7 +17612,7 @@ "x-appwrite": { "method": "getQueueBuilds", "group": "queue", - "weight": 456, + "weight": 472, "cookies": false, "type": "", "demo": "health\/get-queue-builds.md", @@ -16777,7 +17674,7 @@ "x-appwrite": { "method": "getQueueCertificates", "group": "queue", - "weight": 455, + "weight": 471, "cookies": false, "type": "", "demo": "health\/get-queue-certificates.md", @@ -16839,7 +17736,7 @@ "x-appwrite": { "method": "getQueueDatabases", "group": "queue", - "weight": 457, + "weight": 473, "cookies": false, "type": "", "demo": "health\/get-queue-databases.md", @@ -16910,7 +17807,7 @@ "x-appwrite": { "method": "getQueueDeletes", "group": "queue", - "weight": 458, + "weight": 474, "cookies": false, "type": "", "demo": "health\/get-queue-deletes.md", @@ -16972,7 +17869,7 @@ "x-appwrite": { "method": "getFailedJobs", "group": "queue", - "weight": 465, + "weight": 481, "cookies": false, "type": "", "demo": "health\/get-failed-jobs.md", @@ -17059,7 +17956,7 @@ "x-appwrite": { "method": "getQueueFunctions", "group": "queue", - "weight": 462, + "weight": 478, "cookies": false, "type": "", "demo": "health\/get-queue-functions.md", @@ -17121,7 +18018,7 @@ "x-appwrite": { "method": "getQueueLogs", "group": "queue", - "weight": 454, + "weight": 470, "cookies": false, "type": "", "demo": "health\/get-queue-logs.md", @@ -17183,7 +18080,7 @@ "x-appwrite": { "method": "getQueueMails", "group": "queue", - "weight": 459, + "weight": 475, "cookies": false, "type": "", "demo": "health\/get-queue-mails.md", @@ -17245,7 +18142,7 @@ "x-appwrite": { "method": "getQueueMessaging", "group": "queue", - "weight": 460, + "weight": 476, "cookies": false, "type": "", "demo": "health\/get-queue-messaging.md", @@ -17307,7 +18204,7 @@ "x-appwrite": { "method": "getQueueMigrations", "group": "queue", - "weight": 461, + "weight": 477, "cookies": false, "type": "", "demo": "health\/get-queue-migrations.md", @@ -17369,7 +18266,7 @@ "x-appwrite": { "method": "getQueueStatsResources", "group": "queue", - "weight": 463, + "weight": 479, "cookies": false, "type": "", "demo": "health\/get-queue-stats-resources.md", @@ -17431,7 +18328,7 @@ "x-appwrite": { "method": "getQueueUsage", "group": "queue", - "weight": 464, + "weight": 480, "cookies": false, "type": "", "demo": "health\/get-queue-usage.md", @@ -17493,7 +18390,7 @@ "x-appwrite": { "method": "getQueueWebhooks", "group": "queue", - "weight": 453, + "weight": 469, "cookies": false, "type": "", "demo": "health\/get-queue-webhooks.md", @@ -17555,7 +18452,7 @@ "x-appwrite": { "method": "getStorage", "group": "storage", - "weight": 450, + "weight": 466, "cookies": false, "type": "", "demo": "health\/get-storage.md", @@ -17606,7 +18503,7 @@ "x-appwrite": { "method": "getStorageLocal", "group": "storage", - "weight": 449, + "weight": 465, "cookies": false, "type": "", "demo": "health\/get-storage-local.md", @@ -17657,7 +18554,7 @@ "x-appwrite": { "method": "getTime", "group": "health", - "weight": 447, + "weight": 463, "cookies": false, "type": "", "demo": "health\/get-time.md", @@ -25530,7 +26427,7 @@ "x-appwrite": { "method": "list", "group": "projects", - "weight": 410, + "weight": 426, "cookies": false, "type": "", "demo": "projects\/list.md", @@ -27209,7 +28106,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 408, + "weight": 424, "cookies": false, "type": "", "demo": "projects\/list-dev-keys.md", @@ -27279,7 +28176,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 405, + "weight": 421, "cookies": false, "type": "", "demo": "projects\/create-dev-key.md", @@ -27362,7 +28259,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 407, + "weight": 423, "cookies": false, "type": "", "demo": "projects\/get-dev-key.md", @@ -27428,7 +28325,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 406, + "weight": 422, "cookies": false, "type": "", "demo": "projects\/update-dev-key.md", @@ -27514,7 +28411,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 409, + "weight": 425, "cookies": false, "type": "", "demo": "projects\/delete-dev-key.md", @@ -28243,7 +29140,7 @@ "x-appwrite": { "method": "updateLabels", "group": "projects", - "weight": 411, + "weight": 427, "cookies": false, "type": "", "demo": "projects\/update-labels.md", @@ -31666,7 +32563,7 @@ "x-appwrite": { "method": "listRules", "group": null, - "weight": 512, + "weight": 528, "cookies": false, "type": "", "demo": "proxy\/list-rules.md", @@ -31748,7 +32645,7 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 507, + "weight": 523, "cookies": false, "type": "", "demo": "proxy\/create-api-rule.md", @@ -31818,7 +32715,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 509, + "weight": 525, "cookies": false, "type": "", "demo": "proxy\/create-function-rule.md", @@ -31901,7 +32798,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 510, + "weight": 526, "cookies": false, "type": "", "demo": "proxy\/create-redirect-rule.md", @@ -32022,7 +32919,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 508, + "weight": 524, "cookies": false, "type": "", "demo": "proxy\/create-site-rule.md", @@ -32103,7 +33000,7 @@ "x-appwrite": { "method": "getRule", "group": null, - "weight": 511, + "weight": 527, "cookies": false, "type": "", "demo": "proxy\/get-rule.md", @@ -32156,7 +33053,7 @@ "x-appwrite": { "method": "deleteRule", "group": null, - "weight": 513, + "weight": 529, "cookies": false, "type": "", "demo": "proxy\/delete-rule.md", @@ -32216,7 +33113,7 @@ "x-appwrite": { "method": "updateRuleVerification", "group": null, - "weight": 514, + "weight": 530, "cookies": false, "type": "", "demo": "proxy\/update-rule-verification.md", @@ -32274,7 +33171,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 469, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -32356,7 +33253,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 467, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -32628,7 +33525,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 472, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -32678,7 +33575,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 495, + "weight": 511, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -32728,7 +33625,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 491, + "weight": 507, "cookies": false, "type": "", "demo": "sites\/list-templates.md", @@ -32791,12 +33688,15 @@ "items": { "type": "string", "enum": [ - "dev-tools", + "portfolio", "starter", - "databases", + "events", + "ecommerce", + "documentation", + "blog", "ai", - "messaging", - "utilities" + "forms", + "dashboard" ], "x-enum-name": null, "x-enum-keys": [] @@ -32851,7 +33751,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 492, + "weight": 508, "cookies": false, "type": "", "demo": "sites\/get-template.md", @@ -32909,7 +33809,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 493, + "weight": 509, "cookies": false, "type": "", "demo": "sites\/list-usage.md", @@ -32979,7 +33879,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 468, + "weight": 484, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -33039,7 +33939,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 470, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -33306,7 +34206,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 471, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -33368,7 +34268,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 478, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -33446,7 +34346,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 477, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -33536,7 +34436,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 473, + "weight": 489, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -33637,7 +34537,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 481, + "weight": 497, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -33717,7 +34617,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 474, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -33838,7 +34738,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 475, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -33936,7 +34836,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 476, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -33999,7 +34899,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 479, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -34067,7 +34967,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 480, + "weight": 496, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -34153,7 +35053,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 482, + "weight": 498, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -34221,7 +35121,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 484, + "weight": 500, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -34302,7 +35202,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 483, + "weight": 499, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -34367,7 +35267,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 485, + "weight": 501, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -34435,7 +35335,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 494, + "weight": 510, "cookies": false, "type": "", "demo": "sites\/get-usage.md", @@ -34513,7 +35413,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 488, + "weight": 504, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -34573,7 +35473,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 486, + "weight": 502, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -34664,7 +35564,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 487, + "weight": 503, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -34732,7 +35632,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 489, + "weight": 505, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -34827,7 +35727,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 490, + "weight": 506, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -34895,7 +35795,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 522, + "weight": 538, "cookies": false, "type": "", "demo": "storage\/list-buckets.md", @@ -34978,7 +35878,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 520, + "weight": 536, "cookies": false, "type": "", "demo": "storage\/create-bucket.md", @@ -35125,7 +36025,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 521, + "weight": 537, "cookies": false, "type": "", "demo": "storage\/get-bucket.md", @@ -35186,7 +36086,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 523, + "weight": 539, "cookies": false, "type": "", "demo": "storage\/update-bucket.md", @@ -35329,7 +36229,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 524, + "weight": 540, "cookies": false, "type": "", "demo": "storage\/delete-bucket.md", @@ -35390,7 +36290,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 527, + "weight": 543, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -35483,7 +36383,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 525, + "weight": 541, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -35574,7 +36474,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 526, + "weight": 542, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -35645,7 +36545,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 528, + "weight": 544, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -35736,7 +36636,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 529, + "weight": 545, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -35807,7 +36707,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 531, + "weight": 547, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -35887,7 +36787,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 530, + "weight": 546, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -36095,7 +36995,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 532, + "weight": 548, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -36175,7 +37075,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 534, + "weight": 550, "cookies": false, "type": "", "demo": "storage\/get-usage.md", @@ -36246,7 +37146,7 @@ "x-appwrite": { "method": "getBucketUsage", "group": null, - "weight": 535, + "weight": 551, "cookies": false, "type": "", "demo": "storage\/get-bucket-usage.md", @@ -36325,7 +37225,7 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 344, + "weight": 352, "cookies": false, "type": "", "demo": "tablesdb\/list.md", @@ -36408,7 +37308,7 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 340, + "weight": 348, "cookies": false, "type": "", "demo": "tablesdb\/create.md", @@ -36492,7 +37392,7 @@ "x-appwrite": { "method": "listTransactions", "group": "transactions", - "weight": 403, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/list-transactions.md", @@ -36562,7 +37462,7 @@ "x-appwrite": { "method": "createTransaction", "group": "transactions", - "weight": 399, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/create-transaction.md", @@ -36636,7 +37536,7 @@ "x-appwrite": { "method": "getTransaction", "group": "transactions", - "weight": 400, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/get-transaction.md", @@ -36702,7 +37602,7 @@ "x-appwrite": { "method": "updateTransaction", "group": "transactions", - "weight": 401, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-transaction.md", @@ -36784,7 +37684,7 @@ "x-appwrite": { "method": "deleteTransaction", "group": "transactions", - "weight": 402, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/delete-transaction.md", @@ -36852,7 +37752,7 @@ "x-appwrite": { "method": "createOperations", "group": "transactions", - "weight": 404, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-operations.md", @@ -36936,7 +37836,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 346, + "weight": 354, "cookies": false, "type": "", "demo": "tablesdb\/list-usage.md", @@ -37033,7 +37933,7 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 341, + "weight": 349, "cookies": false, "type": "", "demo": "tablesdb\/get.md", @@ -37094,7 +37994,7 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 342, + "weight": 350, "cookies": false, "type": "", "demo": "tablesdb\/update.md", @@ -37171,7 +38071,7 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 343, + "weight": 351, "cookies": false, "type": "", "demo": "tablesdb\/delete.md", @@ -37232,7 +38132,7 @@ "x-appwrite": { "method": "listTables", "group": "tables", - "weight": 351, + "weight": 359, "cookies": false, "type": "", "demo": "tablesdb\/list-tables.md", @@ -37326,7 +38226,7 @@ "x-appwrite": { "method": "createTable", "group": "tables", - "weight": 347, + "weight": 355, "cookies": false, "type": "", "demo": "tablesdb\/create-table.md", @@ -37455,7 +38355,7 @@ "x-appwrite": { "method": "getTable", "group": "tables", - "weight": 348, + "weight": 356, "cookies": false, "type": "", "demo": "tablesdb\/get-table.md", @@ -37527,7 +38427,7 @@ "x-appwrite": { "method": "updateTable", "group": "tables", - "weight": 349, + "weight": 357, "cookies": false, "type": "", "demo": "tablesdb\/update-table.md", @@ -37631,7 +38531,7 @@ "x-appwrite": { "method": "deleteTable", "group": "tables", - "weight": 350, + "weight": 358, "cookies": false, "type": "", "demo": "tablesdb\/delete-table.md", @@ -37703,7 +38603,7 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 356, + "weight": 364, "cookies": false, "type": "", "demo": "tablesdb\/list-columns.md", @@ -37798,7 +38698,7 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 357, + "weight": 365, "cookies": false, "type": "", "demo": "tablesdb\/create-boolean-column.md", @@ -37910,7 +38810,7 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 358, + "weight": 366, "cookies": false, "type": "", "demo": "tablesdb\/update-boolean-column.md", @@ -38024,7 +38924,7 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 359, + "weight": 367, "cookies": false, "type": "", "demo": "tablesdb\/create-datetime-column.md", @@ -38136,7 +39036,7 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 360, + "weight": 368, "cookies": false, "type": "", "demo": "tablesdb\/update-datetime-column.md", @@ -38250,7 +39150,7 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 361, + "weight": 369, "cookies": false, "type": "", "demo": "tablesdb\/create-email-column.md", @@ -38363,7 +39263,7 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 362, + "weight": 370, "cookies": false, "type": "", "demo": "tablesdb\/update-email-column.md", @@ -38478,7 +39378,7 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 363, + "weight": 371, "cookies": false, "type": "", "demo": "tablesdb\/create-enum-column.md", @@ -38600,7 +39500,7 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 364, + "weight": 372, "cookies": false, "type": "", "demo": "tablesdb\/update-enum-column.md", @@ -38724,7 +39624,7 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 365, + "weight": 373, "cookies": false, "type": "", "demo": "tablesdb\/create-float-column.md", @@ -38853,7 +39753,7 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 366, + "weight": 374, "cookies": false, "type": "", "demo": "tablesdb\/update-float-column.md", @@ -38984,7 +39884,7 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 367, + "weight": 375, "cookies": false, "type": "", "demo": "tablesdb\/create-integer-column.md", @@ -39113,7 +40013,7 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 368, + "weight": 376, "cookies": false, "type": "", "demo": "tablesdb\/update-integer-column.md", @@ -39244,7 +40144,7 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 369, + "weight": 377, "cookies": false, "type": "", "demo": "tablesdb\/create-ip-column.md", @@ -39356,7 +40256,7 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 370, + "weight": 378, "cookies": false, "type": "", "demo": "tablesdb\/update-ip-column.md", @@ -39470,7 +40370,7 @@ "x-appwrite": { "method": "createLineColumn", "group": "columns", - "weight": 371, + "weight": 379, "cookies": false, "type": "", "demo": "tablesdb\/create-line-column.md", @@ -39576,7 +40476,7 @@ "x-appwrite": { "method": "updateLineColumn", "group": "columns", - "weight": 372, + "weight": 380, "cookies": false, "type": "", "demo": "tablesdb\/update-line-column.md", @@ -39663,6 +40563,458 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/longtext": { + "post": { + "summary": "Create longtext column", + "operationId": "tablesDBCreateLongtextColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a longtext column.\n", + "responses": { + "202": { + "description": "ColumnLongtext", + "schema": { + "$ref": "#\/definitions\/columnLongtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLongtextColumn", + "group": "columns", + "weight": 397, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-longtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-longtext-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/longtext\/{key}": { + "patch": { + "summary": "Update longtext column", + "operationId": "tablesDBUpdateLongtextColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a longtext column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnLongtext", + "schema": { + "$ref": "#\/definitions\/columnLongtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLongtextColumn", + "group": "columns", + "weight": 398, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-longtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-longtext-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/mediumtext": { + "post": { + "summary": "Create mediumtext column", + "operationId": "tablesDBCreateMediumtextColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a mediumtext column.\n", + "responses": { + "202": { + "description": "ColumnMediumtext", + "schema": { + "$ref": "#\/definitions\/columnMediumtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createMediumtextColumn", + "group": "columns", + "weight": 395, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-mediumtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-mediumtext-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/mediumtext\/{key}": { + "patch": { + "summary": "Update mediumtext column", + "operationId": "tablesDBUpdateMediumtextColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a mediumtext column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnMediumtext", + "schema": { + "$ref": "#\/definitions\/columnMediumtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateMediumtextColumn", + "group": "columns", + "weight": 396, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-mediumtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-mediumtext-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { "post": { "summary": "Create point column", @@ -39689,7 +41041,7 @@ "x-appwrite": { "method": "createPointColumn", "group": "columns", - "weight": 373, + "weight": 381, "cookies": false, "type": "", "demo": "tablesdb\/create-point-column.md", @@ -39795,7 +41147,7 @@ "x-appwrite": { "method": "updatePointColumn", "group": "columns", - "weight": 374, + "weight": 382, "cookies": false, "type": "", "demo": "tablesdb\/update-point-column.md", @@ -39908,7 +41260,7 @@ "x-appwrite": { "method": "createPolygonColumn", "group": "columns", - "weight": 375, + "weight": 383, "cookies": false, "type": "", "demo": "tablesdb\/create-polygon-column.md", @@ -40014,7 +41366,7 @@ "x-appwrite": { "method": "updatePolygonColumn", "group": "columns", - "weight": 376, + "weight": 384, "cookies": false, "type": "", "demo": "tablesdb\/update-polygon-column.md", @@ -40127,7 +41479,7 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 377, + "weight": 385, "cookies": false, "type": "", "demo": "tablesdb\/create-relationship-column.md", @@ -40263,11 +41615,11 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 379, + "weight": 387, "cookies": false, "type": "", "demo": "tablesdb\/create-string-column.md", @@ -40285,6 +41637,10 @@ "packaging": false, "public": true, "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-string-column.md", + "deprecated": { + "since": "1.9.0", + "replaceWith": "tablesDB.createTextColumn" + }, "auth": { "Project": [] } @@ -40389,11 +41745,11 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 380, + "weight": 388, "cookies": false, "type": "", "demo": "tablesdb\/update-string-column.md", @@ -40411,6 +41767,10 @@ "packaging": false, "public": true, "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-string-column.md", + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateTextColumn" + }, "auth": { "Project": [] } @@ -40489,6 +41849,232 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/text": { + "post": { + "summary": "Create text column", + "operationId": "tablesDBCreateTextColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a text column.\n", + "responses": { + "202": { + "description": "ColumnText", + "schema": { + "$ref": "#\/definitions\/columnText" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createTextColumn", + "group": "columns", + "weight": 393, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-text-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-text-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/text\/{key}": { + "patch": { + "summary": "Update text column", + "operationId": "tablesDBUpdateTextColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a text column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnText", + "schema": { + "$ref": "#\/definitions\/columnText" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateTextColumn", + "group": "columns", + "weight": 394, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-text-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-text-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", @@ -40515,7 +42101,7 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 381, + "weight": 389, "cookies": false, "type": "", "demo": "tablesdb\/create-url-column.md", @@ -40628,7 +42214,7 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 382, + "weight": 390, "cookies": false, "type": "", "demo": "tablesdb\/update-url-column.md", @@ -40717,6 +42303,248 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/varchar": { + "post": { + "summary": "Create varchar column", + "operationId": "tablesDBCreateVarcharColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a varchar column.\n", + "responses": { + "202": { + "description": "ColumnVarchar", + "schema": { + "$ref": "#\/definitions\/columnVarchar" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createVarcharColumn", + "group": "columns", + "weight": 391, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-varchar-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-varchar-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "size": { + "type": "integer", + "description": "Column size for varchar columns, in number of characters. Maximum size is 16381.", + "default": null, + "x-example": 1, + "format": "int32" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "size", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/varchar\/{key}": { + "patch": { + "summary": "Update varchar column", + "operationId": "tablesDBUpdateVarcharColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a varchar column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnVarchar", + "schema": { + "$ref": "#\/definitions\/columnVarchar" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateVarcharColumn", + "group": "columns", + "weight": 392, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-varchar-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-varchar-column.md", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "size": { + "type": "integer", + "description": "Maximum size of the varchar column.", + "default": null, + "x-example": 1, + "format": "int32", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", @@ -40772,7 +42600,7 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 354, + "weight": 362, "cookies": false, "type": "", "demo": "tablesdb\/get-column.md", @@ -40846,7 +42674,7 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 355, + "weight": 363, "cookies": false, "type": "", "demo": "tablesdb\/delete-column.md", @@ -40927,7 +42755,7 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 378, + "weight": 386, "cookies": false, "type": "", "demo": "tablesdb\/update-relationship-column.md", @@ -41036,7 +42864,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 386, + "weight": 402, "cookies": false, "type": "", "demo": "tablesdb\/list-indexes.md", @@ -41129,7 +42957,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 383, + "weight": 399, "cookies": false, "type": "", "demo": "tablesdb\/create-index.md", @@ -41268,7 +43096,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 384, + "weight": 400, "cookies": false, "type": "", "demo": "tablesdb\/get-index.md", @@ -41342,7 +43170,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 385, + "weight": 401, "cookies": false, "type": "", "demo": "tablesdb\/delete-index.md", @@ -41421,7 +43249,7 @@ "x-appwrite": { "method": "listTableLogs", "group": "tables", - "weight": 352, + "weight": 360, "cookies": false, "type": "", "demo": "tablesdb\/list-table-logs.md", @@ -41503,7 +43331,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 395, + "weight": 411, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -41606,7 +43434,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 387, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -41788,7 +43616,7 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 392, + "weight": 408, "cookies": false, "type": "", "demo": "tablesdb\/upsert-rows.md", @@ -41918,7 +43746,7 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 390, + "weight": 406, "cookies": false, "type": "", "demo": "tablesdb\/update-rows.md", @@ -42021,7 +43849,7 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 394, + "weight": 410, "cookies": false, "type": "", "demo": "tablesdb\/delete-rows.md", @@ -42118,7 +43946,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 388, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -42220,7 +44048,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 391, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -42366,7 +44194,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 389, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -42475,7 +44303,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 393, + "weight": 409, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -42573,7 +44401,7 @@ "x-appwrite": { "method": "listRowLogs", "group": "logs", - "weight": 396, + "weight": 412, "cookies": false, "type": "", "demo": "tablesdb\/list-row-logs.md", @@ -42665,7 +44493,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 398, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -42787,7 +44615,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 397, + "weight": 413, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", @@ -42907,7 +44735,7 @@ "x-appwrite": { "method": "getTableUsage", "group": null, - "weight": 353, + "weight": 361, "cookies": false, "type": "", "demo": "tablesdb\/get-table-usage.md", @@ -42997,7 +44825,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 345, + "weight": 353, "cookies": false, "type": "", "demo": "tablesdb\/get-usage.md", @@ -44255,7 +46083,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 517, + "weight": 533, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -44344,7 +46172,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 515, + "weight": 531, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -44428,7 +46256,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 516, + "weight": 532, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -44488,7 +46316,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 518, + "weight": 534, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -44559,7 +46387,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 519, + "weight": 535, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -52243,6 +54071,338 @@ ] } }, + "attributeVarchar": { + "description": "AttributeVarchar", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "size": { + "type": "integer", + "description": "Attribute size.", + "x-example": 128, + "format": "int32" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt", + "size" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "size": 128, + "default": "default" + } + }, + "attributeText": { + "description": "AttributeText", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "attributeMediumtext": { + "description": "AttributeMediumtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "attributeLongtext": { + "description": "AttributeLongtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, "table": { "description": "Table", "type": "object", @@ -53693,6 +55853,338 @@ ] } }, + "columnVarchar": { + "description": "ColumnVarchar", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "size": { + "type": "integer", + "description": "Column size.", + "x-example": 128, + "format": "int32" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt", + "size" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "size": 128, + "default": "default" + } + }, + "columnText": { + "description": "ColumnText", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "columnMediumtext": { + "description": "ColumnMediumtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "columnLongtext": { + "description": "ColumnLongtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, "index": { "description": "Index", "type": "object", diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index ba941164e2..90b1114218 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -5966,7 +5966,7 @@ "x-appwrite": { "method": "listTransactions", "group": "transactions", - "weight": 338, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/list-transactions.md", @@ -6035,7 +6035,7 @@ "x-appwrite": { "method": "createTransaction", "group": "transactions", - "weight": 334, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-transaction.md", @@ -6108,7 +6108,7 @@ "x-appwrite": { "method": "getTransaction", "group": "transactions", - "weight": 335, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/get-transaction.md", @@ -6173,7 +6173,7 @@ "x-appwrite": { "method": "updateTransaction", "group": "transactions", - "weight": 336, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/update-transaction.md", @@ -6254,7 +6254,7 @@ "x-appwrite": { "method": "deleteTransaction", "group": "transactions", - "weight": 337, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/delete-transaction.md", @@ -6321,7 +6321,7 @@ "x-appwrite": { "method": "createOperations", "group": "transactions", - "weight": 339, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/create-operations.md", @@ -9184,6 +9184,450 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/longtext": { + "post": { + "summary": "Create longtext attribute", + "operationId": "databasesCreateLongtextAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a longtext attribute.\n", + "responses": { + "202": { + "description": "AttributeLongtext", + "schema": { + "$ref": "#\/definitions\/attributeLongtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLongtextAttribute", + "group": "attributes", + "weight": 336, + "cookies": false, + "type": "", + "demo": "databases\/create-longtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-longtext-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/longtext\/{key}": { + "patch": { + "summary": "Update longtext attribute", + "operationId": "databasesUpdateLongtextAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a longtext attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeLongtext", + "schema": { + "$ref": "#\/definitions\/attributeLongtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLongtextAttribute", + "group": "attributes", + "weight": 337, + "cookies": false, + "type": "", + "demo": "databases\/update-longtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-longtext-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/mediumtext": { + "post": { + "summary": "Create mediumtext attribute", + "operationId": "databasesCreateMediumtextAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a mediumtext attribute.\n", + "responses": { + "202": { + "description": "AttributeMediumtext", + "schema": { + "$ref": "#\/definitions\/attributeMediumtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createMediumtextAttribute", + "group": "attributes", + "weight": 334, + "cookies": false, + "type": "", + "demo": "databases\/create-mediumtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-mediumtext-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/mediumtext\/{key}": { + "patch": { + "summary": "Update mediumtext attribute", + "operationId": "databasesUpdateMediumtextAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a mediumtext attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeMediumtext", + "schema": { + "$ref": "#\/definitions\/attributeMediumtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateMediumtextAttribute", + "group": "attributes", + "weight": 335, + "cookies": false, + "type": "", + "demo": "databases\/update-mediumtext-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-mediumtext-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { "post": { "summary": "Create point attribute", @@ -10024,6 +10468,228 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/text": { + "post": { + "summary": "Create text attribute", + "operationId": "databasesCreateTextAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a text attribute.\n", + "responses": { + "202": { + "description": "AttributeText", + "schema": { + "$ref": "#\/definitions\/attributeText" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createTextAttribute", + "group": "attributes", + "weight": 332, + "cookies": false, + "type": "", + "demo": "databases\/create-text-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-text-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/text\/{key}": { + "patch": { + "summary": "Update text attribute", + "operationId": "databasesUpdateTextAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a text attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeText", + "schema": { + "$ref": "#\/definitions\/attributeText" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateTextAttribute", + "group": "attributes", + "weight": 333, + "cookies": false, + "type": "", + "demo": "databases\/update-text-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-text-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/url": { "post": { "summary": "Create URL attribute", @@ -10256,6 +10922,244 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/varchar": { + "post": { + "summary": "Create varchar attribute", + "operationId": "databasesCreateVarcharAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a varchar attribute.\n", + "responses": { + "202": { + "description": "AttributeVarchar", + "schema": { + "$ref": "#\/definitions\/attributeVarchar" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createVarcharAttribute", + "group": "attributes", + "weight": 330, + "cookies": false, + "type": "", + "demo": "databases\/create-varchar-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-varchar-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "size": { + "type": "integer", + "description": "Attribute size for varchar attributes, in number of characters. Maximum size is 16381.", + "default": null, + "x-example": 1, + "format": "int32" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "size", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/varchar\/{key}": { + "patch": { + "summary": "Update varchar attribute", + "operationId": "databasesUpdateVarcharAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a varchar attribute. Changing the `default` value will not update already existing documents.\n", + "responses": { + "200": { + "description": "AttributeVarchar", + "schema": { + "$ref": "#\/definitions\/attributeVarchar" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateVarcharAttribute", + "group": "attributes", + "weight": 331, + "cookies": false, + "type": "", + "demo": "databases\/update-varchar-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-varchar-attribute.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "size": { + "type": "integer", + "description": "Maximum size of the varchar attribute.", + "default": null, + "x-example": 1, + "format": "int32", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Attribute Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/{key}": { "get": { "summary": "Get attribute", @@ -11945,7 +12849,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 333, + "weight": 341, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -12040,7 +12944,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 330, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -12181,7 +13085,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 331, + "weight": 339, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -12257,7 +13161,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 332, + "weight": 340, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -12338,7 +13242,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 415, + "weight": 431, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -12421,7 +13325,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 412, + "weight": 428, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -12736,7 +13640,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 417, + "weight": 433, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -12787,7 +13691,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 418, + "weight": 434, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -12838,7 +13742,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 413, + "weight": 429, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -12899,7 +13803,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 414, + "weight": 430, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -13210,7 +14114,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 416, + "weight": 432, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -13273,7 +14177,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 421, + "weight": 437, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -13352,7 +14256,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 422, + "weight": 438, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -13443,7 +14347,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 419, + "weight": 435, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -13537,7 +14441,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 427, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -13624,7 +14528,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 424, + "weight": 440, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -13746,7 +14650,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 425, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -13844,7 +14748,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 420, + "weight": 436, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -13908,7 +14812,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 423, + "weight": 439, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -13977,7 +14881,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 426, + "weight": 442, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -14064,7 +14968,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 428, + "weight": 444, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -14133,7 +15037,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 431, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -14218,7 +15122,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 429, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -14339,7 +15243,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 430, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -14406,7 +15310,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 432, + "weight": 448, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -14475,7 +15379,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 437, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -14536,7 +15440,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 435, + "weight": 451, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -14628,7 +15532,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 436, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -14697,7 +15601,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 438, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -14793,7 +15697,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 439, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -15016,7 +15920,7 @@ "x-appwrite": { "method": "get", "group": "health", - "weight": 442, + "weight": 458, "cookies": false, "type": "", "demo": "health\/get.md", @@ -15068,7 +15972,7 @@ "x-appwrite": { "method": "getAntivirus", "group": "health", - "weight": 451, + "weight": 467, "cookies": false, "type": "", "demo": "health\/get-antivirus.md", @@ -15120,7 +16024,7 @@ "x-appwrite": { "method": "getCache", "group": "health", - "weight": 445, + "weight": 461, "cookies": false, "type": "", "demo": "health\/get-cache.md", @@ -15172,7 +16076,7 @@ "x-appwrite": { "method": "getCertificate", "group": "health", - "weight": 448, + "weight": 464, "cookies": false, "type": "", "demo": "health\/get-certificate.md", @@ -15233,7 +16137,7 @@ "x-appwrite": { "method": "getDB", "group": "health", - "weight": 444, + "weight": 460, "cookies": false, "type": "", "demo": "health\/get-db.md", @@ -15285,7 +16189,7 @@ "x-appwrite": { "method": "getPubSub", "group": "health", - "weight": 446, + "weight": 462, "cookies": false, "type": "", "demo": "health\/get-pub-sub.md", @@ -15337,7 +16241,7 @@ "x-appwrite": { "method": "getQueueAudits", "group": "queue", - "weight": 452, + "weight": 468, "cookies": false, "type": "", "demo": "health\/get-queue-audits.md", @@ -15400,7 +16304,7 @@ "x-appwrite": { "method": "getQueueBuilds", "group": "queue", - "weight": 456, + "weight": 472, "cookies": false, "type": "", "demo": "health\/get-queue-builds.md", @@ -15463,7 +16367,7 @@ "x-appwrite": { "method": "getQueueCertificates", "group": "queue", - "weight": 455, + "weight": 471, "cookies": false, "type": "", "demo": "health\/get-queue-certificates.md", @@ -15526,7 +16430,7 @@ "x-appwrite": { "method": "getQueueDatabases", "group": "queue", - "weight": 457, + "weight": 473, "cookies": false, "type": "", "demo": "health\/get-queue-databases.md", @@ -15598,7 +16502,7 @@ "x-appwrite": { "method": "getQueueDeletes", "group": "queue", - "weight": 458, + "weight": 474, "cookies": false, "type": "", "demo": "health\/get-queue-deletes.md", @@ -15661,7 +16565,7 @@ "x-appwrite": { "method": "getFailedJobs", "group": "queue", - "weight": 465, + "weight": 481, "cookies": false, "type": "", "demo": "health\/get-failed-jobs.md", @@ -15749,7 +16653,7 @@ "x-appwrite": { "method": "getQueueFunctions", "group": "queue", - "weight": 462, + "weight": 478, "cookies": false, "type": "", "demo": "health\/get-queue-functions.md", @@ -15812,7 +16716,7 @@ "x-appwrite": { "method": "getQueueLogs", "group": "queue", - "weight": 454, + "weight": 470, "cookies": false, "type": "", "demo": "health\/get-queue-logs.md", @@ -15875,7 +16779,7 @@ "x-appwrite": { "method": "getQueueMails", "group": "queue", - "weight": 459, + "weight": 475, "cookies": false, "type": "", "demo": "health\/get-queue-mails.md", @@ -15938,7 +16842,7 @@ "x-appwrite": { "method": "getQueueMessaging", "group": "queue", - "weight": 460, + "weight": 476, "cookies": false, "type": "", "demo": "health\/get-queue-messaging.md", @@ -16001,7 +16905,7 @@ "x-appwrite": { "method": "getQueueMigrations", "group": "queue", - "weight": 461, + "weight": 477, "cookies": false, "type": "", "demo": "health\/get-queue-migrations.md", @@ -16064,7 +16968,7 @@ "x-appwrite": { "method": "getQueueStatsResources", "group": "queue", - "weight": 463, + "weight": 479, "cookies": false, "type": "", "demo": "health\/get-queue-stats-resources.md", @@ -16127,7 +17031,7 @@ "x-appwrite": { "method": "getQueueUsage", "group": "queue", - "weight": 464, + "weight": 480, "cookies": false, "type": "", "demo": "health\/get-queue-usage.md", @@ -16190,7 +17094,7 @@ "x-appwrite": { "method": "getQueueWebhooks", "group": "queue", - "weight": 453, + "weight": 469, "cookies": false, "type": "", "demo": "health\/get-queue-webhooks.md", @@ -16253,7 +17157,7 @@ "x-appwrite": { "method": "getStorage", "group": "storage", - "weight": 450, + "weight": 466, "cookies": false, "type": "", "demo": "health\/get-storage.md", @@ -16305,7 +17209,7 @@ "x-appwrite": { "method": "getStorageLocal", "group": "storage", - "weight": 449, + "weight": 465, "cookies": false, "type": "", "demo": "health\/get-storage-local.md", @@ -16357,7 +17261,7 @@ "x-appwrite": { "method": "getTime", "group": "health", - "weight": 447, + "weight": 463, "cookies": false, "type": "", "demo": "health\/get-time.md", @@ -22492,7 +23396,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 469, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -22575,7 +23479,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 467, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -22848,7 +23752,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 472, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -22899,7 +23803,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 495, + "weight": 511, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -22950,7 +23854,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 468, + "weight": 484, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -23011,7 +23915,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 470, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -23279,7 +24183,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 471, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -23342,7 +24246,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 478, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -23421,7 +24325,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 477, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -23512,7 +24416,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 473, + "weight": 489, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -23614,7 +24518,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 481, + "weight": 497, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -23695,7 +24599,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 474, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -23817,7 +24721,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 475, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -23916,7 +24820,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 476, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -23980,7 +24884,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 479, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -24049,7 +24953,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 480, + "weight": 496, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -24136,7 +25040,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 482, + "weight": 498, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -24205,7 +25109,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 484, + "weight": 500, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -24287,7 +25191,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 483, + "weight": 499, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -24353,7 +25257,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 485, + "weight": 501, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -24422,7 +25326,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 488, + "weight": 504, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -24483,7 +25387,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 486, + "weight": 502, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -24575,7 +25479,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 487, + "weight": 503, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -24644,7 +25548,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 489, + "weight": 505, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -24740,7 +25644,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 490, + "weight": 506, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -24809,7 +25713,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 522, + "weight": 538, "cookies": false, "type": "", "demo": "storage\/list-buckets.md", @@ -24893,7 +25797,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 520, + "weight": 536, "cookies": false, "type": "", "demo": "storage\/create-bucket.md", @@ -25041,7 +25945,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 521, + "weight": 537, "cookies": false, "type": "", "demo": "storage\/get-bucket.md", @@ -25103,7 +26007,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 523, + "weight": 539, "cookies": false, "type": "", "demo": "storage\/update-bucket.md", @@ -25247,7 +26151,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 524, + "weight": 540, "cookies": false, "type": "", "demo": "storage\/delete-bucket.md", @@ -25309,7 +26213,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 527, + "weight": 543, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -25404,7 +26308,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 525, + "weight": 541, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -25497,7 +26401,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 526, + "weight": 542, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -25570,7 +26474,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 528, + "weight": 544, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -25663,7 +26567,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 529, + "weight": 545, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -25736,7 +26640,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 531, + "weight": 547, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -25818,7 +26722,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 530, + "weight": 546, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -26028,7 +26932,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 532, + "weight": 548, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -26110,7 +27014,7 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 344, + "weight": 352, "cookies": false, "type": "", "demo": "tablesdb\/list.md", @@ -26194,7 +27098,7 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 340, + "weight": 348, "cookies": false, "type": "", "demo": "tablesdb\/create.md", @@ -26279,7 +27183,7 @@ "x-appwrite": { "method": "listTransactions", "group": "transactions", - "weight": 403, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/list-transactions.md", @@ -26351,7 +27255,7 @@ "x-appwrite": { "method": "createTransaction", "group": "transactions", - "weight": 399, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/create-transaction.md", @@ -26427,7 +27331,7 @@ "x-appwrite": { "method": "getTransaction", "group": "transactions", - "weight": 400, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/get-transaction.md", @@ -26495,7 +27399,7 @@ "x-appwrite": { "method": "updateTransaction", "group": "transactions", - "weight": 401, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-transaction.md", @@ -26579,7 +27483,7 @@ "x-appwrite": { "method": "deleteTransaction", "group": "transactions", - "weight": 402, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/delete-transaction.md", @@ -26649,7 +27553,7 @@ "x-appwrite": { "method": "createOperations", "group": "transactions", - "weight": 404, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-operations.md", @@ -26735,7 +27639,7 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 341, + "weight": 349, "cookies": false, "type": "", "demo": "tablesdb\/get.md", @@ -26797,7 +27701,7 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 342, + "weight": 350, "cookies": false, "type": "", "demo": "tablesdb\/update.md", @@ -26875,7 +27779,7 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 343, + "weight": 351, "cookies": false, "type": "", "demo": "tablesdb\/delete.md", @@ -26937,7 +27841,7 @@ "x-appwrite": { "method": "listTables", "group": "tables", - "weight": 351, + "weight": 359, "cookies": false, "type": "", "demo": "tablesdb\/list-tables.md", @@ -27032,7 +27936,7 @@ "x-appwrite": { "method": "createTable", "group": "tables", - "weight": 347, + "weight": 355, "cookies": false, "type": "", "demo": "tablesdb\/create-table.md", @@ -27162,7 +28066,7 @@ "x-appwrite": { "method": "getTable", "group": "tables", - "weight": 348, + "weight": 356, "cookies": false, "type": "", "demo": "tablesdb\/get-table.md", @@ -27235,7 +28139,7 @@ "x-appwrite": { "method": "updateTable", "group": "tables", - "weight": 349, + "weight": 357, "cookies": false, "type": "", "demo": "tablesdb\/update-table.md", @@ -27340,7 +28244,7 @@ "x-appwrite": { "method": "deleteTable", "group": "tables", - "weight": 350, + "weight": 358, "cookies": false, "type": "", "demo": "tablesdb\/delete-table.md", @@ -27413,7 +28317,7 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 356, + "weight": 364, "cookies": false, "type": "", "demo": "tablesdb\/list-columns.md", @@ -27509,7 +28413,7 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 357, + "weight": 365, "cookies": false, "type": "", "demo": "tablesdb\/create-boolean-column.md", @@ -27622,7 +28526,7 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 358, + "weight": 366, "cookies": false, "type": "", "demo": "tablesdb\/update-boolean-column.md", @@ -27737,7 +28641,7 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 359, + "weight": 367, "cookies": false, "type": "", "demo": "tablesdb\/create-datetime-column.md", @@ -27850,7 +28754,7 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 360, + "weight": 368, "cookies": false, "type": "", "demo": "tablesdb\/update-datetime-column.md", @@ -27965,7 +28869,7 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 361, + "weight": 369, "cookies": false, "type": "", "demo": "tablesdb\/create-email-column.md", @@ -28079,7 +28983,7 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 362, + "weight": 370, "cookies": false, "type": "", "demo": "tablesdb\/update-email-column.md", @@ -28195,7 +29099,7 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 363, + "weight": 371, "cookies": false, "type": "", "demo": "tablesdb\/create-enum-column.md", @@ -28318,7 +29222,7 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 364, + "weight": 372, "cookies": false, "type": "", "demo": "tablesdb\/update-enum-column.md", @@ -28443,7 +29347,7 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 365, + "weight": 373, "cookies": false, "type": "", "demo": "tablesdb\/create-float-column.md", @@ -28573,7 +29477,7 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 366, + "weight": 374, "cookies": false, "type": "", "demo": "tablesdb\/update-float-column.md", @@ -28705,7 +29609,7 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 367, + "weight": 375, "cookies": false, "type": "", "demo": "tablesdb\/create-integer-column.md", @@ -28835,7 +29739,7 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 368, + "weight": 376, "cookies": false, "type": "", "demo": "tablesdb\/update-integer-column.md", @@ -28967,7 +29871,7 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 369, + "weight": 377, "cookies": false, "type": "", "demo": "tablesdb\/create-ip-column.md", @@ -29080,7 +29984,7 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 370, + "weight": 378, "cookies": false, "type": "", "demo": "tablesdb\/update-ip-column.md", @@ -29195,7 +30099,7 @@ "x-appwrite": { "method": "createLineColumn", "group": "columns", - "weight": 371, + "weight": 379, "cookies": false, "type": "", "demo": "tablesdb\/create-line-column.md", @@ -29302,7 +30206,7 @@ "x-appwrite": { "method": "updateLineColumn", "group": "columns", - "weight": 372, + "weight": 380, "cookies": false, "type": "", "demo": "tablesdb\/update-line-column.md", @@ -29390,6 +30294,462 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/longtext": { + "post": { + "summary": "Create longtext column", + "operationId": "tablesDBCreateLongtextColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a longtext column.\n", + "responses": { + "202": { + "description": "ColumnLongtext", + "schema": { + "$ref": "#\/definitions\/columnLongtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLongtextColumn", + "group": "columns", + "weight": 397, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-longtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-longtext-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/longtext\/{key}": { + "patch": { + "summary": "Update longtext column", + "operationId": "tablesDBUpdateLongtextColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a longtext column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnLongtext", + "schema": { + "$ref": "#\/definitions\/columnLongtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLongtextColumn", + "group": "columns", + "weight": 398, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-longtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-longtext-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/mediumtext": { + "post": { + "summary": "Create mediumtext column", + "operationId": "tablesDBCreateMediumtextColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a mediumtext column.\n", + "responses": { + "202": { + "description": "ColumnMediumtext", + "schema": { + "$ref": "#\/definitions\/columnMediumtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createMediumtextColumn", + "group": "columns", + "weight": 395, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-mediumtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-mediumtext-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/mediumtext\/{key}": { + "patch": { + "summary": "Update mediumtext column", + "operationId": "tablesDBUpdateMediumtextColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a mediumtext column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnMediumtext", + "schema": { + "$ref": "#\/definitions\/columnMediumtext" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateMediumtextColumn", + "group": "columns", + "weight": 396, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-mediumtext-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-mediumtext-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { "post": { "summary": "Create point column", @@ -29416,7 +30776,7 @@ "x-appwrite": { "method": "createPointColumn", "group": "columns", - "weight": 373, + "weight": 381, "cookies": false, "type": "", "demo": "tablesdb\/create-point-column.md", @@ -29523,7 +30883,7 @@ "x-appwrite": { "method": "updatePointColumn", "group": "columns", - "weight": 374, + "weight": 382, "cookies": false, "type": "", "demo": "tablesdb\/update-point-column.md", @@ -29637,7 +30997,7 @@ "x-appwrite": { "method": "createPolygonColumn", "group": "columns", - "weight": 375, + "weight": 383, "cookies": false, "type": "", "demo": "tablesdb\/create-polygon-column.md", @@ -29744,7 +31104,7 @@ "x-appwrite": { "method": "updatePolygonColumn", "group": "columns", - "weight": 376, + "weight": 384, "cookies": false, "type": "", "demo": "tablesdb\/update-polygon-column.md", @@ -29858,7 +31218,7 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 377, + "weight": 385, "cookies": false, "type": "", "demo": "tablesdb\/create-relationship-column.md", @@ -29995,11 +31355,11 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 379, + "weight": 387, "cookies": false, "type": "", "demo": "tablesdb\/create-string-column.md", @@ -30017,6 +31377,10 @@ "packaging": false, "public": true, "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-string-column.md", + "deprecated": { + "since": "1.9.0", + "replaceWith": "tablesDB.createTextColumn" + }, "auth": { "Project": [], "Key": [] @@ -30122,11 +31486,11 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 380, + "weight": 388, "cookies": false, "type": "", "demo": "tablesdb\/update-string-column.md", @@ -30144,6 +31508,10 @@ "packaging": false, "public": true, "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-string-column.md", + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateTextColumn" + }, "auth": { "Project": [], "Key": [] @@ -30223,6 +31591,234 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/text": { + "post": { + "summary": "Create text column", + "operationId": "tablesDBCreateTextColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a text column.\n", + "responses": { + "202": { + "description": "ColumnText", + "schema": { + "$ref": "#\/definitions\/columnText" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createTextColumn", + "group": "columns", + "weight": 393, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-text-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-text-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/text\/{key}": { + "patch": { + "summary": "Update text column", + "operationId": "tablesDBUpdateTextColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a text column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnText", + "schema": { + "$ref": "#\/definitions\/columnText" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateTextColumn", + "group": "columns", + "weight": 394, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-text-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-text-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", @@ -30249,7 +31845,7 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 381, + "weight": 389, "cookies": false, "type": "", "demo": "tablesdb\/create-url-column.md", @@ -30363,7 +31959,7 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 382, + "weight": 390, "cookies": false, "type": "", "demo": "tablesdb\/update-url-column.md", @@ -30453,6 +32049,250 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/varchar": { + "post": { + "summary": "Create varchar column", + "operationId": "tablesDBCreateVarcharColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a varchar column.\n", + "responses": { + "202": { + "description": "ColumnVarchar", + "schema": { + "$ref": "#\/definitions\/columnVarchar" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createVarcharColumn", + "group": "columns", + "weight": 391, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-varchar-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-varchar-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "size": { + "type": "integer", + "description": "Column size for varchar columns, in number of characters. Maximum size is 16381.", + "default": null, + "x-example": 1, + "format": "int32" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "default": false, + "x-example": false + } + }, + "required": [ + "key", + "size", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/varchar\/{key}": { + "patch": { + "summary": "Update varchar column", + "operationId": "tablesDBUpdateVarcharColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a varchar column. Changing the `default` value will not update already existing rows.\n", + "responses": { + "200": { + "description": "ColumnVarchar", + "schema": { + "$ref": "#\/definitions\/columnVarchar" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateVarcharColumn", + "group": "columns", + "weight": 392, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-varchar-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "console", + "server" + ], + "packaging": false, + "public": true, + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-varchar-column.md", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the Database service [server integration](https:\/\/appwrite.io\/docs\/references\/cloud\/server-dart\/tablesDB#createTable).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "default": null, + "x-example": "", + "x-nullable": true + }, + "size": { + "type": "integer", + "description": "Maximum size of the varchar column.", + "default": null, + "x-example": 1, + "format": "int32", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "required", + "default" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", @@ -30508,7 +32348,7 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 354, + "weight": 362, "cookies": false, "type": "", "demo": "tablesdb\/get-column.md", @@ -30583,7 +32423,7 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 355, + "weight": 363, "cookies": false, "type": "", "demo": "tablesdb\/delete-column.md", @@ -30665,7 +32505,7 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 378, + "weight": 386, "cookies": false, "type": "", "demo": "tablesdb\/update-relationship-column.md", @@ -30775,7 +32615,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 386, + "weight": 402, "cookies": false, "type": "", "demo": "tablesdb\/list-indexes.md", @@ -30869,7 +32709,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 383, + "weight": 399, "cookies": false, "type": "", "demo": "tablesdb\/create-index.md", @@ -31009,7 +32849,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 384, + "weight": 400, "cookies": false, "type": "", "demo": "tablesdb\/get-index.md", @@ -31084,7 +32924,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 385, + "weight": 401, "cookies": false, "type": "", "demo": "tablesdb\/delete-index.md", @@ -31164,7 +33004,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 395, + "weight": 411, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -31269,7 +33109,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 387, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -31455,7 +33295,7 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 392, + "weight": 408, "cookies": false, "type": "", "demo": "tablesdb\/upsert-rows.md", @@ -31587,7 +33427,7 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 390, + "weight": 406, "cookies": false, "type": "", "demo": "tablesdb\/update-rows.md", @@ -31691,7 +33531,7 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 394, + "weight": 410, "cookies": false, "type": "", "demo": "tablesdb\/delete-rows.md", @@ -31789,7 +33629,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 388, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -31893,7 +33733,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 391, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -32042,7 +33882,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 389, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -32153,7 +33993,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 393, + "weight": 409, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -32255,7 +34095,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 398, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -32379,7 +34219,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 397, + "weight": 413, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", @@ -33597,7 +35437,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 517, + "weight": 533, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -33687,7 +35527,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 515, + "weight": 531, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -33772,7 +35612,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 516, + "weight": 532, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -33833,7 +35673,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 518, + "weight": 534, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -33905,7 +35745,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 519, + "weight": 535, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -40394,6 +42234,338 @@ ] } }, + "attributeVarchar": { + "description": "AttributeVarchar", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "size": { + "type": "integer", + "description": "Attribute size.", + "x-example": 128, + "format": "int32" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt", + "size" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "size": 128, + "default": "default" + } + }, + "attributeText": { + "description": "AttributeText", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "attributeMediumtext": { + "description": "AttributeMediumtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "attributeLongtext": { + "description": "AttributeLongtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "AttributeStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, "table": { "description": "Table", "type": "object", @@ -41844,6 +44016,338 @@ ] } }, + "columnVarchar": { + "description": "ColumnVarchar", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "size": { + "type": "integer", + "description": "Column size.", + "x-example": 128, + "format": "int32" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt", + "size" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "size": 128, + "default": "default" + } + }, + "columnText": { + "description": "ColumnText", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "columnMediumtext": { + "description": "ColumnMediumtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, + "columnLongtext": { + "description": "ColumnLongtext", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available", + "enum": [ + "available", + "processing", + "deleting", + "stuck", + "failed" + ], + "x-enum-name": "ColumnStatus" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "string", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "default", + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "default" + } + }, "index": { "description": "Index", "type": "object", From eb97a0e9b23b7ad10fffba2d92598e18126193ed Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 2 Feb 2026 17:57:50 +0530 Subject: [PATCH 4/6] changelog changes --- docs/sdks/android/CHANGELOG.md | 2 ++ docs/sdks/apple/CHANGELOG.md | 2 ++ docs/sdks/cli/CHANGELOG.md | 2 +- docs/sdks/dart/CHANGELOG.md | 2 ++ docs/sdks/deno/CHANGELOG.md | 2 ++ docs/sdks/dotnet/CHANGELOG.md | 2 ++ docs/sdks/flutter-dev/CHANGELOG.md | 2 ++ docs/sdks/flutter/CHANGELOG.md | 2 ++ docs/sdks/go/CHANGELOG.md | 2 ++ docs/sdks/kotlin/CHANGELOG.md | 2 ++ docs/sdks/markdown/CHANGELOG.md | 1 + docs/sdks/nodejs/CHANGELOG.md | 2 ++ docs/sdks/objective-c/CHANGELOG.md | 2 +- docs/sdks/php/CHANGELOG.md | 2 ++ docs/sdks/python/CHANGELOG.md | 2 ++ docs/sdks/react-native/CHANGELOG.md | 2 ++ docs/sdks/ruby/CHANGELOG.md | 2 ++ docs/sdks/swift/CHANGELOG.md | 2 ++ docs/sdks/web/CHANGELOG.md | 2 ++ 19 files changed, 35 insertions(+), 2 deletions(-) diff --git a/docs/sdks/android/CHANGELOG.md b/docs/sdks/android/CHANGELOG.md index a74d0d034d..d3fbbdc7fe 100644 --- a/docs/sdks/android/CHANGELOG.md +++ b/docs/sdks/android/CHANGELOG.md @@ -3,6 +3,8 @@ ## 12.0.0 * Add array-based enum parameters (e.g., `permissions: List`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `Channel` helpers for Realtime. ## 11.4.0 diff --git a/docs/sdks/apple/CHANGELOG.md b/docs/sdks/apple/CHANGELOG.md index 22a55196d3..470d1d14f5 100644 --- a/docs/sdks/apple/CHANGELOG.md +++ b/docs/sdks/apple/CHANGELOG.md @@ -3,6 +3,8 @@ ## 14.0.0 * Add array-based enum parameters (e.g., `permissions: [BrowserPermission]`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `Channel` helpers for Realtime. ## 13.5.0 diff --git a/docs/sdks/cli/CHANGELOG.md b/docs/sdks/cli/CHANGELOG.md index 342761e070..23ad9e955c 100644 --- a/docs/sdks/cli/CHANGELOG.md +++ b/docs/sdks/cli/CHANGELOG.md @@ -236,4 +236,4 @@ Fix type generation for `point`, `lineString` and `polygon` columns * Add specifications support to CLI * Update package version -* Fix: Missed specifications param when updating a function \ No newline at end of file +* Fix: Missed specifications param when updating a function diff --git a/docs/sdks/dart/CHANGELOG.md b/docs/sdks/dart/CHANGELOG.md index 732001ecd7..503df42f48 100644 --- a/docs/sdks/dart/CHANGELOG.md +++ b/docs/sdks/dart/CHANGELOG.md @@ -3,6 +3,8 @@ ## 21.0.0 * Add array-based enum parameters (e.g., `permissions: List`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `getQueueAudits` support to `Health` service. ## 20.1.1 diff --git a/docs/sdks/deno/CHANGELOG.md b/docs/sdks/deno/CHANGELOG.md index 882fe3af76..f706794005 100644 --- a/docs/sdks/deno/CHANGELOG.md +++ b/docs/sdks/deno/CHANGELOG.md @@ -3,6 +3,8 @@ ## 16.0.0 * Add array-based enum parameters (e.g., `permissions: BrowserPermission[]`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `getQueueAudits` support to `Health` service. ## 15.1.0 diff --git a/docs/sdks/dotnet/CHANGELOG.md b/docs/sdks/dotnet/CHANGELOG.md index 2940390df0..d3f47122c7 100644 --- a/docs/sdks/dotnet/CHANGELOG.md +++ b/docs/sdks/dotnet/CHANGELOG.md @@ -3,6 +3,8 @@ ## 0.25.0 * Add array-based enum parameters (e.g., `permissions: IReadOnlyList`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `getQueueAudits` support to `Health` service. ## 0.24.0 diff --git a/docs/sdks/flutter-dev/CHANGELOG.md b/docs/sdks/flutter-dev/CHANGELOG.md index 8da3a12262..9b6bb58c41 100644 --- a/docs/sdks/flutter-dev/CHANGELOG.md +++ b/docs/sdks/flutter-dev/CHANGELOG.md @@ -1,6 +1,8 @@ ## 0.3.2 - Fixed package namespaces +- Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +- Add `Channel` helpers for Realtime. ## 0.3.1 diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index 84adfbff11..9d0f2fa82f 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -3,6 +3,8 @@ ## 21.0.0 * Add array-based enum parameters (e.g., `permissions: List`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `Channel` helpers for Realtime. ## 20.3.3 diff --git a/docs/sdks/go/CHANGELOG.md b/docs/sdks/go/CHANGELOG.md index f177f1f9ac..e70923db19 100644 --- a/docs/sdks/go/CHANGELOG.md +++ b/docs/sdks/go/CHANGELOG.md @@ -3,6 +3,8 @@ ## v0.16.0 * Added ability to create columns and indexes synchronously while creating a table +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `getQueueAudits` support to `Health` service. ## v0.15.0 diff --git a/docs/sdks/kotlin/CHANGELOG.md b/docs/sdks/kotlin/CHANGELOG.md index 9713daba23..849d921e23 100644 --- a/docs/sdks/kotlin/CHANGELOG.md +++ b/docs/sdks/kotlin/CHANGELOG.md @@ -3,6 +3,8 @@ ## 14.0.0 * Add array-based enum parameters (e.g., `permissions: List`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `getQueueAudits` support to `Health` service. ## 13.1.0 diff --git a/docs/sdks/markdown/CHANGELOG.md b/docs/sdks/markdown/CHANGELOG.md index f657f583b6..d1457764af 100644 --- a/docs/sdks/markdown/CHANGELOG.md +++ b/docs/sdks/markdown/CHANGELOG.md @@ -3,6 +3,7 @@ ## 0.2.0 * Document array-based enum parameters in Markdown examples (e.g., `permissions: BrowserPermission[]`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. ## 0.1.0 diff --git a/docs/sdks/nodejs/CHANGELOG.md b/docs/sdks/nodejs/CHANGELOG.md index 864ca38025..2f4c61f11c 100644 --- a/docs/sdks/nodejs/CHANGELOG.md +++ b/docs/sdks/nodejs/CHANGELOG.md @@ -3,6 +3,8 @@ ## 22.0.0 * Add array-based enum parameters (e.g., `permissions: BrowserPermission[]`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `getQueueAudits` support to `Health` service. ## 21.1.0 diff --git a/docs/sdks/objective-c/CHANGELOG.md b/docs/sdks/objective-c/CHANGELOG.md index fa4d35e687..420e6f23d0 100644 --- a/docs/sdks/objective-c/CHANGELOG.md +++ b/docs/sdks/objective-c/CHANGELOG.md @@ -1 +1 @@ -# Change Log \ No newline at end of file +# Change Log diff --git a/docs/sdks/php/CHANGELOG.md b/docs/sdks/php/CHANGELOG.md index 14cf753df8..f91f69dc0f 100644 --- a/docs/sdks/php/CHANGELOG.md +++ b/docs/sdks/php/CHANGELOG.md @@ -3,6 +3,8 @@ ## 20.0.0 * Add array-based enum parameters (e.g., `permissions: array`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `getQueueAudits` support to `Health` service. ## 19.1.0 diff --git a/docs/sdks/python/CHANGELOG.md b/docs/sdks/python/CHANGELOG.md index 27567bb78f..4c9daa1a13 100644 --- a/docs/sdks/python/CHANGELOG.md +++ b/docs/sdks/python/CHANGELOG.md @@ -3,6 +3,8 @@ ## 15.0.0 * Add array-based enum parameters (e.g., `permissions: list[BrowserPermission]`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `getQueueAudits` support to `Health` service. ## 14.1.0 diff --git a/docs/sdks/react-native/CHANGELOG.md b/docs/sdks/react-native/CHANGELOG.md index 02d4efe0ca..737ef947cd 100644 --- a/docs/sdks/react-native/CHANGELOG.md +++ b/docs/sdks/react-native/CHANGELOG.md @@ -3,6 +3,8 @@ ## 0.20.0 * Add array-based enum parameters (e.g., `permissions: BrowserPermission[]`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `Channel` helpers for Realtime. ## 0.19.0 diff --git a/docs/sdks/ruby/CHANGELOG.md b/docs/sdks/ruby/CHANGELOG.md index 3c19c0f119..9ce9b3afa2 100644 --- a/docs/sdks/ruby/CHANGELOG.md +++ b/docs/sdks/ruby/CHANGELOG.md @@ -3,6 +3,8 @@ ## 21.0.0 * Add array-based enum parameters (e.g., `permissions: Array`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `getQueueAudits` support to `Health` service. ## 20.1.0 diff --git a/docs/sdks/swift/CHANGELOG.md b/docs/sdks/swift/CHANGELOG.md index e0fbda9f87..275dba9db5 100644 --- a/docs/sdks/swift/CHANGELOG.md +++ b/docs/sdks/swift/CHANGELOG.md @@ -3,6 +3,8 @@ ## 15.0.0 * Add array-based enum parameters (e.g., `permissions: [BrowserPermission]`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `getQueueAudits` support to `Health` service. ## 14.1.0 diff --git a/docs/sdks/web/CHANGELOG.md b/docs/sdks/web/CHANGELOG.md index b14198fe06..5f70fe5574 100644 --- a/docs/sdks/web/CHANGELOG.md +++ b/docs/sdks/web/CHANGELOG.md @@ -3,6 +3,8 @@ ## 22.0.0 * Add array-based enum parameters (e.g., `permissions: BrowserPermission[]`). +* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. +* Add `Channel` helpers for Realtime. ## 21.5.0 From 02c92d95b7306a5d7a33ad628ab8e17f5573428e Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 2 Feb 2026 18:04:02 +0530 Subject: [PATCH 5/6] examples and changelog --- .../databases/create-longtext-attribute.md | 5 ++++ .../databases/create-mediumtext-attribute.md | 5 ++++ .../databases/create-text-attribute.md | 5 ++++ .../databases/create-varchar-attribute.md | 6 ++++ .../databases/update-longtext-attribute.md | 6 ++++ .../databases/update-mediumtext-attribute.md | 6 ++++ .../databases/update-text-attribute.md | 6 ++++ .../databases/update-varchar-attribute.md | 6 ++++ .../tablesdb/create-longtext-column.md | 5 ++++ .../tablesdb/create-mediumtext-column.md | 5 ++++ .../examples/tablesdb/create-text-column.md | 5 ++++ .../tablesdb/create-varchar-column.md | 6 ++++ .../tablesdb/update-longtext-column.md | 6 ++++ .../tablesdb/update-mediumtext-column.md | 6 ++++ .../examples/tablesdb/update-text-column.md | 6 ++++ .../tablesdb/update-varchar-column.md | 6 ++++ .../databases/create-longtext-attribute.md | 18 ++++++++++++ .../databases/create-mediumtext-attribute.md | 18 ++++++++++++ .../databases/create-text-attribute.md | 18 ++++++++++++ .../databases/create-varchar-attribute.md | 19 ++++++++++++ .../databases/update-longtext-attribute.md | 18 ++++++++++++ .../databases/update-mediumtext-attribute.md | 18 ++++++++++++ .../databases/update-text-attribute.md | 18 ++++++++++++ .../databases/update-varchar-attribute.md | 19 ++++++++++++ .../examples/functions/list-templates.md | 2 +- .../examples/sites/list-templates.md | 2 +- .../tablesdb/create-longtext-column.md | 18 ++++++++++++ .../tablesdb/create-mediumtext-column.md | 18 ++++++++++++ .../examples/tablesdb/create-text-column.md | 18 ++++++++++++ .../tablesdb/create-varchar-column.md | 19 ++++++++++++ .../tablesdb/update-longtext-column.md | 18 ++++++++++++ .../tablesdb/update-mediumtext-column.md | 18 ++++++++++++ .../examples/tablesdb/update-text-column.md | 18 ++++++++++++ .../tablesdb/update-varchar-column.md | 19 ++++++++++++ .../databases/create-longtext-attribute.md | 17 +++++++++++ .../databases/create-mediumtext-attribute.md | 17 +++++++++++ .../databases/create-text-attribute.md | 17 +++++++++++ .../databases/create-varchar-attribute.md | 18 ++++++++++++ .../databases/update-longtext-attribute.md | 17 +++++++++++ .../databases/update-mediumtext-attribute.md | 17 +++++++++++ .../databases/update-text-attribute.md | 17 +++++++++++ .../databases/update-varchar-attribute.md | 18 ++++++++++++ .../tablesdb/create-longtext-column.md | 17 +++++++++++ .../tablesdb/create-mediumtext-column.md | 17 +++++++++++ .../examples/tablesdb/create-text-column.md | 17 +++++++++++ .../tablesdb/create-varchar-column.md | 18 ++++++++++++ .../tablesdb/update-longtext-column.md | 17 +++++++++++ .../tablesdb/update-mediumtext-column.md | 17 +++++++++++ .../examples/tablesdb/update-text-column.md | 17 +++++++++++ .../tablesdb/update-varchar-column.md | 18 ++++++++++++ .../databases/create-longtext-attribute.md | 19 ++++++++++++ .../databases/create-mediumtext-attribute.md | 19 ++++++++++++ .../databases/create-text-attribute.md | 19 ++++++++++++ .../databases/create-varchar-attribute.md | 20 +++++++++++++ .../databases/update-longtext-attribute.md | 19 ++++++++++++ .../databases/update-mediumtext-attribute.md | 19 ++++++++++++ .../databases/update-text-attribute.md | 19 ++++++++++++ .../databases/update-varchar-attribute.md | 20 +++++++++++++ .../tablesdb/create-longtext-column.md | 19 ++++++++++++ .../tablesdb/create-mediumtext-column.md | 19 ++++++++++++ .../examples/tablesdb/create-text-column.md | 19 ++++++++++++ .../tablesdb/create-varchar-column.md | 20 +++++++++++++ .../tablesdb/update-longtext-column.md | 19 ++++++++++++ .../tablesdb/update-mediumtext-column.md | 19 ++++++++++++ .../examples/tablesdb/update-text-column.md | 19 ++++++++++++ .../tablesdb/update-varchar-column.md | 20 +++++++++++++ .../databases/create-longtext-attribute.md | 24 +++++++++++++++ .../databases/create-mediumtext-attribute.md | 24 +++++++++++++++ .../databases/create-text-attribute.md | 24 +++++++++++++++ .../databases/create-varchar-attribute.md | 25 ++++++++++++++++ .../databases/update-longtext-attribute.md | 24 +++++++++++++++ .../databases/update-mediumtext-attribute.md | 24 +++++++++++++++ .../databases/update-text-attribute.md | 24 +++++++++++++++ .../databases/update-varchar-attribute.md | 25 ++++++++++++++++ .../tablesdb/create-longtext-column.md | 24 +++++++++++++++ .../tablesdb/create-mediumtext-column.md | 24 +++++++++++++++ .../examples/tablesdb/create-text-column.md | 24 +++++++++++++++ .../tablesdb/create-varchar-column.md | 25 ++++++++++++++++ .../tablesdb/update-longtext-column.md | 24 +++++++++++++++ .../tablesdb/update-mediumtext-column.md | 24 +++++++++++++++ .../examples/tablesdb/update-text-column.md | 24 +++++++++++++++ .../tablesdb/update-varchar-column.md | 25 ++++++++++++++++ .../databases/create-longtext-attribute.md | 20 +++++++++++++ .../databases/create-mediumtext-attribute.md | 20 +++++++++++++ .../databases/create-text-attribute.md | 20 +++++++++++++ .../databases/create-varchar-attribute.md | 22 ++++++++++++++ .../databases/update-longtext-attribute.md | 20 +++++++++++++ .../databases/update-mediumtext-attribute.md | 20 +++++++++++++ .../databases/update-text-attribute.md | 20 +++++++++++++ .../databases/update-varchar-attribute.md | 22 ++++++++++++++ .../tablesdb/create-longtext-column.md | 20 +++++++++++++ .../tablesdb/create-mediumtext-column.md | 20 +++++++++++++ .../examples/tablesdb/create-text-column.md | 20 +++++++++++++ .../tablesdb/create-varchar-column.md | 22 ++++++++++++++ .../tablesdb/update-longtext-column.md | 20 +++++++++++++ .../tablesdb/update-mediumtext-column.md | 20 +++++++++++++ .../examples/tablesdb/update-text-column.md | 20 +++++++++++++ .../tablesdb/update-varchar-column.md | 22 ++++++++++++++ .../databases/create-longtext-attribute.md | 28 ++++++++++++++++++ .../databases/create-mediumtext-attribute.md | 28 ++++++++++++++++++ .../java/databases/create-text-attribute.md | 28 ++++++++++++++++++ .../databases/create-varchar-attribute.md | 29 +++++++++++++++++++ .../databases/update-longtext-attribute.md | 28 ++++++++++++++++++ .../databases/update-mediumtext-attribute.md | 28 ++++++++++++++++++ .../java/databases/update-text-attribute.md | 28 ++++++++++++++++++ .../databases/update-varchar-attribute.md | 29 +++++++++++++++++++ .../java/tablesdb/create-longtext-column.md | 28 ++++++++++++++++++ .../java/tablesdb/create-mediumtext-column.md | 28 ++++++++++++++++++ .../java/tablesdb/create-text-column.md | 28 ++++++++++++++++++ .../java/tablesdb/create-varchar-column.md | 29 +++++++++++++++++++ .../java/tablesdb/update-longtext-column.md | 28 ++++++++++++++++++ .../java/tablesdb/update-mediumtext-column.md | 28 ++++++++++++++++++ .../java/tablesdb/update-text-column.md | 28 ++++++++++++++++++ .../java/tablesdb/update-varchar-column.md | 29 +++++++++++++++++++ .../databases/create-longtext-attribute.md | 19 ++++++++++++ .../databases/create-mediumtext-attribute.md | 19 ++++++++++++ .../kotlin/databases/create-text-attribute.md | 19 ++++++++++++ .../databases/create-varchar-attribute.md | 20 +++++++++++++ .../databases/update-longtext-attribute.md | 19 ++++++++++++ .../databases/update-mediumtext-attribute.md | 19 ++++++++++++ .../kotlin/databases/update-text-attribute.md | 19 ++++++++++++ .../databases/update-varchar-attribute.md | 20 +++++++++++++ .../kotlin/tablesdb/create-longtext-column.md | 19 ++++++++++++ .../tablesdb/create-mediumtext-column.md | 19 ++++++++++++ .../kotlin/tablesdb/create-text-column.md | 19 ++++++++++++ .../kotlin/tablesdb/create-varchar-column.md | 20 +++++++++++++ .../kotlin/tablesdb/update-longtext-column.md | 19 ++++++++++++ .../tablesdb/update-mediumtext-column.md | 19 ++++++++++++ .../kotlin/tablesdb/update-text-column.md | 19 ++++++++++++ .../kotlin/tablesdb/update-varchar-column.md | 20 +++++++++++++ .../databases/create-longtext-attribute.md | 17 +++++++++++ .../databases/create-mediumtext-attribute.md | 17 +++++++++++ .../databases/create-text-attribute.md | 17 +++++++++++ .../databases/create-varchar-attribute.md | 18 ++++++++++++ .../databases/update-longtext-attribute.md | 17 +++++++++++ .../databases/update-mediumtext-attribute.md | 17 +++++++++++ .../databases/update-text-attribute.md | 17 +++++++++++ .../databases/update-varchar-attribute.md | 18 ++++++++++++ .../tablesdb/create-longtext-column.md | 17 +++++++++++ .../tablesdb/create-mediumtext-column.md | 17 +++++++++++ .../examples/tablesdb/create-text-column.md | 17 +++++++++++ .../tablesdb/create-varchar-column.md | 18 ++++++++++++ .../tablesdb/update-longtext-column.md | 17 +++++++++++ .../tablesdb/update-mediumtext-column.md | 17 +++++++++++ .../examples/tablesdb/update-text-column.md | 17 +++++++++++ .../tablesdb/update-varchar-column.md | 18 ++++++++++++ .../databases/create-longtext-attribute.md | 20 +++++++++++++ .../databases/create-mediumtext-attribute.md | 20 +++++++++++++ .../databases/create-text-attribute.md | 20 +++++++++++++ .../databases/create-varchar-attribute.md | 21 ++++++++++++++ .../databases/update-longtext-attribute.md | 20 +++++++++++++ .../databases/update-mediumtext-attribute.md | 20 +++++++++++++ .../databases/update-text-attribute.md | 20 +++++++++++++ .../databases/update-varchar-attribute.md | 21 ++++++++++++++ .../tablesdb/create-longtext-column.md | 20 +++++++++++++ .../tablesdb/create-mediumtext-column.md | 20 +++++++++++++ .../examples/tablesdb/create-text-column.md | 20 +++++++++++++ .../tablesdb/create-varchar-column.md | 21 ++++++++++++++ .../tablesdb/update-longtext-column.md | 20 +++++++++++++ .../tablesdb/update-mediumtext-column.md | 20 +++++++++++++ .../examples/tablesdb/update-text-column.md | 20 +++++++++++++ .../tablesdb/update-varchar-column.md | 21 ++++++++++++++ .../databases/create-longtext-attribute.md | 18 ++++++++++++ .../databases/create-mediumtext-attribute.md | 18 ++++++++++++ .../databases/create-text-attribute.md | 18 ++++++++++++ .../databases/create-varchar-attribute.md | 19 ++++++++++++ .../databases/update-longtext-attribute.md | 18 ++++++++++++ .../databases/update-mediumtext-attribute.md | 18 ++++++++++++ .../databases/update-text-attribute.md | 18 ++++++++++++ .../databases/update-varchar-attribute.md | 19 ++++++++++++ .../tablesdb/create-longtext-column.md | 18 ++++++++++++ .../tablesdb/create-mediumtext-column.md | 18 ++++++++++++ .../examples/tablesdb/create-text-column.md | 18 ++++++++++++ .../tablesdb/create-varchar-column.md | 19 ++++++++++++ .../tablesdb/update-longtext-column.md | 18 ++++++++++++ .../tablesdb/update-mediumtext-column.md | 18 ++++++++++++ .../examples/tablesdb/update-text-column.md | 18 ++++++++++++ .../tablesdb/update-varchar-column.md | 19 ++++++++++++ .../databases/create-longtext-attribute.md | 13 +++++++++ .../databases/create-mediumtext-attribute.md | 13 +++++++++ .../databases/create-text-attribute.md | 13 +++++++++ .../databases/create-varchar-attribute.md | 14 +++++++++ .../databases/update-longtext-attribute.md | 12 ++++++++ .../databases/update-mediumtext-attribute.md | 12 ++++++++ .../databases/update-text-attribute.md | 12 ++++++++ .../databases/update-varchar-attribute.md | 13 +++++++++ .../tablesdb/create-longtext-column.md | 13 +++++++++ .../tablesdb/create-mediumtext-column.md | 13 +++++++++ .../examples/tablesdb/create-text-column.md | 13 +++++++++ .../tablesdb/create-varchar-column.md | 14 +++++++++ .../tablesdb/update-longtext-column.md | 12 ++++++++ .../tablesdb/update-mediumtext-column.md | 12 ++++++++ .../examples/tablesdb/update-text-column.md | 12 ++++++++ .../tablesdb/update-varchar-column.md | 13 +++++++++ .../databases/create-longtext-attribute.md | 19 ++++++++++++ .../databases/create-mediumtext-attribute.md | 19 ++++++++++++ .../databases/create-text-attribute.md | 19 ++++++++++++ .../databases/create-varchar-attribute.md | 20 +++++++++++++ .../databases/update-longtext-attribute.md | 19 ++++++++++++ .../databases/update-mediumtext-attribute.md | 19 ++++++++++++ .../databases/update-text-attribute.md | 19 ++++++++++++ .../databases/update-varchar-attribute.md | 20 +++++++++++++ .../tablesdb/create-longtext-column.md | 19 ++++++++++++ .../tablesdb/create-mediumtext-column.md | 19 ++++++++++++ .../examples/tablesdb/create-text-column.md | 19 ++++++++++++ .../tablesdb/create-varchar-column.md | 20 +++++++++++++ .../tablesdb/update-longtext-column.md | 19 ++++++++++++ .../tablesdb/update-mediumtext-column.md | 19 ++++++++++++ .../examples/tablesdb/update-text-column.md | 19 ++++++++++++ .../tablesdb/update-varchar-column.md | 20 +++++++++++++ .../databases/create-longtext-attribute.md | 18 ++++++++++++ .../databases/create-mediumtext-attribute.md | 18 ++++++++++++ .../databases/create-text-attribute.md | 18 ++++++++++++ .../databases/create-varchar-attribute.md | 19 ++++++++++++ .../databases/update-longtext-attribute.md | 18 ++++++++++++ .../databases/update-mediumtext-attribute.md | 18 ++++++++++++ .../databases/update-text-attribute.md | 18 ++++++++++++ .../databases/update-varchar-attribute.md | 19 ++++++++++++ .../tablesdb/create-longtext-column.md | 18 ++++++++++++ .../tablesdb/create-mediumtext-column.md | 18 ++++++++++++ .../examples/tablesdb/create-text-column.md | 18 ++++++++++++ .../tablesdb/create-varchar-column.md | 19 ++++++++++++ .../tablesdb/update-longtext-column.md | 18 ++++++++++++ .../tablesdb/update-mediumtext-column.md | 18 ++++++++++++ .../examples/tablesdb/update-text-column.md | 18 ++++++++++++ .../tablesdb/update-varchar-column.md | 19 ++++++++++++ docs/sdks/dart/CHANGELOG.md | 3 +- docs/sdks/deno/CHANGELOG.md | 3 +- docs/sdks/dotnet/CHANGELOG.md | 3 +- docs/sdks/go/CHANGELOG.md | 3 +- docs/sdks/kotlin/CHANGELOG.md | 3 +- docs/sdks/nodejs/CHANGELOG.md | 3 +- docs/sdks/php/CHANGELOG.md | 3 +- docs/sdks/python/CHANGELOG.md | 3 +- docs/sdks/ruby/CHANGELOG.md | 3 +- docs/sdks/swift/CHANGELOG.md | 3 +- 236 files changed, 4160 insertions(+), 12 deletions(-) create mode 100644 docs/examples/1.8.x/console-cli/examples/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/console-cli/examples/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/console-cli/examples/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/console-cli/examples/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/console-cli/examples/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/console-cli/examples/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/console-cli/examples/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/console-cli/examples/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/update-varchar-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/create-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/create-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/create-text-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/create-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/update-longtext-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/update-mediumtext-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/update-text-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/update-varchar-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/create-longtext-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/create-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/create-text-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/create-varchar-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/update-longtext-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/update-mediumtext-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/update-text-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/update-varchar-column.md diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-longtext-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..884ba9d5e2 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-longtext-attribute.md @@ -0,0 +1,5 @@ +appwrite databases create-longtext-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..f937072f36 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-mediumtext-attribute.md @@ -0,0 +1,5 @@ +appwrite databases create-mediumtext-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-text-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-text-attribute.md new file mode 100644 index 0000000000..85cc370914 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-text-attribute.md @@ -0,0 +1,5 @@ +appwrite databases create-text-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-varchar-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..07dea67ccb --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-varchar-attribute.md @@ -0,0 +1,6 @@ +appwrite databases create-varchar-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --size 1 \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-longtext-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..0996d181c5 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-longtext-attribute.md @@ -0,0 +1,6 @@ +appwrite databases update-longtext-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false \ + --default diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-mediumtext-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..d870ac1c1c --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-mediumtext-attribute.md @@ -0,0 +1,6 @@ +appwrite databases update-mediumtext-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false \ + --default diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-text-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-text-attribute.md new file mode 100644 index 0000000000..561da4a4e1 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-text-attribute.md @@ -0,0 +1,6 @@ +appwrite databases update-text-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false \ + --default diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-varchar-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..d0a524ec41 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-varchar-attribute.md @@ -0,0 +1,6 @@ +appwrite databases update-varchar-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false \ + --default diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..fdc497ed66 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-longtext-column.md @@ -0,0 +1,5 @@ +appwrite tables-db create-longtext-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..37ae05ffab --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-mediumtext-column.md @@ -0,0 +1,5 @@ +appwrite tables-db create-mediumtext-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-text-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-text-column.md new file mode 100644 index 0000000000..76e799af6d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-text-column.md @@ -0,0 +1,5 @@ +appwrite tables-db create-text-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..9e946fc059 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-varchar-column.md @@ -0,0 +1,6 @@ +appwrite tables-db create-varchar-column \ + --database-id \ + --table-id \ + --key '' \ + --size 1 \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..5a5941393d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-longtext-column.md @@ -0,0 +1,6 @@ +appwrite tables-db update-longtext-column \ + --database-id \ + --table-id \ + --key '' \ + --required false \ + --default diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-mediumtext-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..09d8607898 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-mediumtext-column.md @@ -0,0 +1,6 @@ +appwrite tables-db update-mediumtext-column \ + --database-id \ + --table-id \ + --key '' \ + --required false \ + --default diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-text-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-text-column.md new file mode 100644 index 0000000000..f07a97ce62 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-text-column.md @@ -0,0 +1,6 @@ +appwrite tables-db update-text-column \ + --database-id \ + --table-id \ + --key '' \ + --required false \ + --default diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-varchar-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..ef2ebd01dc --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-varchar-column.md @@ -0,0 +1,6 @@ +appwrite tables-db update-varchar-column \ + --database-id \ + --table-id \ + --key '' \ + --required false \ + --default diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-longtext-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..05f5baa55a --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-longtext-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.createLongtextAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..e82388797f --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-mediumtext-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.createMediumtextAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-text-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-text-attribute.md new file mode 100644 index 0000000000..c0be49a3d3 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-text-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.createTextAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-varchar-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..7d1d70cc49 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-varchar-attribute.md @@ -0,0 +1,19 @@ +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.createVarcharAttribute({ + databaseId: '', + collectionId: '', + key: '', + size: 1, + required: false, + default: '', // optional + array: false // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-longtext-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..ee48d67c6d --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-longtext-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.updateLongtextAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-mediumtext-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..8bace29a54 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-mediumtext-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.updateMediumtextAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-text-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-text-attribute.md new file mode 100644 index 0000000000..138572a940 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-text-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.updateTextAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-varchar-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..623a3c5606 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-varchar-attribute.md @@ -0,0 +1,19 @@ +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.updateVarcharAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', + size: 1, // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/list-templates.md b/docs/examples/1.8.x/console-web/examples/functions/list-templates.md index 1bd4306c4f..672b006f29 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/list-templates.md +++ b/docs/examples/1.8.x/console-web/examples/functions/list-templates.md @@ -8,7 +8,7 @@ const functions = new Functions(client); const result = await functions.listTemplates({ runtimes: [Runtimes.Node145], // optional - useCases: [UseCases.DevTools], // optional + useCases: [UseCases.Starter], // optional limit: 1, // optional offset: 0, // optional total: false // optional diff --git a/docs/examples/1.8.x/console-web/examples/sites/list-templates.md b/docs/examples/1.8.x/console-web/examples/sites/list-templates.md index 3043031b6c..4e3dcb7937 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/list-templates.md +++ b/docs/examples/1.8.x/console-web/examples/sites/list-templates.md @@ -8,7 +8,7 @@ const sites = new Sites(client); const result = await sites.listTemplates({ frameworks: [Frameworks.Analog], // optional - useCases: [UseCases.DevTools], // optional + useCases: [UseCases.Portfolio], // optional limit: 1, // optional offset: 0 // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..3fae43796c --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-longtext-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.createLongtextColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..a52dbe9404 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-mediumtext-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.createMediumtextColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-text-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-text-column.md new file mode 100644 index 0000000000..8c39e53d06 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-text-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.createTextColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..97c15ab4f1 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-varchar-column.md @@ -0,0 +1,19 @@ +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.createVarcharColumn({ + databaseId: '', + tableId: '', + key: '', + size: 1, + required: false, + default: '', // optional + array: false // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..3b1aa13caf --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-longtext-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.updateLongtextColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-mediumtext-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..ed8b5fd281 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-mediumtext-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.updateMediumtextColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-text-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-text-column.md new file mode 100644 index 0000000000..1c36caeb7f --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-text-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.updateTextColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-varchar-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..3ca2024d2c --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-varchar-column.md @@ -0,0 +1,19 @@ +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.updateVarcharColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + size: 1, // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-longtext-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..63540f044e --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-longtext-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); + +AttributeLongtext result = await databases.createLongtextAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..a79acbcd5d --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-mediumtext-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); + +AttributeMediumtext result = await databases.createMediumtextAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-text-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-text-attribute.md new file mode 100644 index 0000000000..1095decbcc --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-text-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); + +AttributeText result = await databases.createTextAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-varchar-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..1fc70515a4 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-varchar-attribute.md @@ -0,0 +1,18 @@ +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); + +AttributeVarchar result = await databases.createVarcharAttribute( + databaseId: '', + collectionId: '', + key: '', + size: 1, + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-longtext-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..a79072b37e --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-longtext-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); + +AttributeLongtext result = await databases.updateLongtextAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-mediumtext-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..88c8392ea4 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-mediumtext-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); + +AttributeMediumtext result = await databases.updateMediumtextAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-text-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-text-attribute.md new file mode 100644 index 0000000000..18495e7f86 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-text-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); + +AttributeText result = await databases.updateTextAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-varchar-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..3a1d621159 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-varchar-attribute.md @@ -0,0 +1,18 @@ +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); + +AttributeVarchar result = await databases.updateVarcharAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', + size: 1, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..60bbba9aee --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-longtext-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); + +ColumnLongtext result = await tablesDB.createLongtextColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..d27d8a9eb9 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-mediumtext-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); + +ColumnMediumtext result = await tablesDB.createMediumtextColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-text-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-text-column.md new file mode 100644 index 0000000000..b3c0159404 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-text-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); + +ColumnText result = await tablesDB.createTextColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..ef44dafa97 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-varchar-column.md @@ -0,0 +1,18 @@ +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); + +ColumnVarchar result = await tablesDB.createVarcharColumn( + databaseId: '', + tableId: '', + key: '', + size: 1, + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..443a21873b --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-longtext-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); + +ColumnLongtext result = await tablesDB.updateLongtextColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-mediumtext-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..7e2e5c99c2 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-mediumtext-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); + +ColumnMediumtext result = await tablesDB.updateMediumtextColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-text-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-text-column.md new file mode 100644 index 0000000000..6bd2cf8f88 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-text-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); + +ColumnText result = await tablesDB.updateTextColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-varchar-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..952bd445f4 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-varchar-column.md @@ -0,0 +1,18 @@ +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); + +ColumnVarchar result = await tablesDB.updateVarcharColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + size: 1, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-longtext-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..5e9b4aa47b --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-longtext-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); + +AttributeLongtext result = await databases.CreateLongtextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..672bd1b526 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-mediumtext-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); + +AttributeMediumtext result = await databases.CreateMediumtextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-text-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-text-attribute.md new file mode 100644 index 0000000000..80d5e4fcf9 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-text-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); + +AttributeText result = await databases.CreateTextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-varchar-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..c86beb26b4 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-varchar-attribute.md @@ -0,0 +1,20 @@ +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); + +AttributeVarchar result = await databases.CreateVarcharAttribute( + databaseId: "", + collectionId: "", + key: "", + size: 1, + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-longtext-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..970e6b3192 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-longtext-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); + +AttributeLongtext result = await databases.UpdateLongtextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-mediumtext-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..f26b4e49ac --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-mediumtext-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); + +AttributeMediumtext result = await databases.UpdateMediumtextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-text-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-text-attribute.md new file mode 100644 index 0000000000..2133c6def3 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-text-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); + +AttributeText result = await databases.UpdateTextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-varchar-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..ce7f331d4b --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-varchar-attribute.md @@ -0,0 +1,20 @@ +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); + +AttributeVarchar result = await databases.UpdateVarcharAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + size: 1, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..86e5bca129 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-longtext-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); + +ColumnLongtext result = await tablesDB.CreateLongtextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..54e3bea513 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-mediumtext-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); + +ColumnMediumtext result = await tablesDB.CreateMediumtextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-text-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-text-column.md new file mode 100644 index 0000000000..b1487e7d1d --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-text-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); + +ColumnText result = await tablesDB.CreateTextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..86c3a78de7 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-varchar-column.md @@ -0,0 +1,20 @@ +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); + +ColumnVarchar result = await tablesDB.CreateVarcharColumn( + databaseId: "", + tableId: "", + key: "", + size: 1, + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..b73907bf5d --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-longtext-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); + +ColumnLongtext result = await tablesDB.UpdateLongtextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-mediumtext-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..3bd20fac99 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-mediumtext-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); + +ColumnMediumtext result = await tablesDB.UpdateMediumtextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-text-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-text-column.md new file mode 100644 index 0000000000..6a88a5434f --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-text-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); + +ColumnText result = await tablesDB.UpdateTextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-varchar-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..87bbed3810 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-varchar-column.md @@ -0,0 +1,20 @@ +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); + +ColumnVarchar result = await tablesDB.UpdateVarcharColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + size: 1, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-longtext-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..630412d091 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-longtext-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.CreateLongtextAttribute( + "", + "", + "", + false, + databases.WithCreateLongtextAttributeDefault(""), + databases.WithCreateLongtextAttributeArray(false), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..0b6c21bcdb --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-mediumtext-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.CreateMediumtextAttribute( + "", + "", + "", + false, + databases.WithCreateMediumtextAttributeDefault(""), + databases.WithCreateMediumtextAttributeArray(false), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-text-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-text-attribute.md new file mode 100644 index 0000000000..40bde804b4 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-text-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.CreateTextAttribute( + "", + "", + "", + false, + databases.WithCreateTextAttributeDefault(""), + databases.WithCreateTextAttributeArray(false), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-varchar-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..53a8099095 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-varchar-attribute.md @@ -0,0 +1,25 @@ +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.CreateVarcharAttribute( + "", + "", + "", + 1, + false, + databases.WithCreateVarcharAttributeDefault(""), + databases.WithCreateVarcharAttributeArray(false), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-longtext-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..c6898226f6 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-longtext-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.UpdateLongtextAttribute( + "", + "", + "", + false, + "", + databases.WithUpdateLongtextAttributeNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-mediumtext-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..6519c6ff6d --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-mediumtext-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.UpdateMediumtextAttribute( + "", + "", + "", + false, + "", + databases.WithUpdateMediumtextAttributeNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-text-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-text-attribute.md new file mode 100644 index 0000000000..ab2148b303 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-text-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.UpdateTextAttribute( + "", + "", + "", + false, + "", + databases.WithUpdateTextAttributeNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-varchar-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..18ba57dc78 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-varchar-attribute.md @@ -0,0 +1,25 @@ +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.UpdateVarcharAttribute( + "", + "", + "", + false, + "", + databases.WithUpdateVarcharAttributeSize(1), + databases.WithUpdateVarcharAttributeNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..910816db82 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-longtext-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.CreateLongtextColumn( + "", + "", + "", + false, + tablesdb.WithCreateLongtextColumnDefault(""), + tablesdb.WithCreateLongtextColumnArray(false), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..caed197595 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-mediumtext-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.CreateMediumtextColumn( + "", + "", + "", + false, + tablesdb.WithCreateMediumtextColumnDefault(""), + tablesdb.WithCreateMediumtextColumnArray(false), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-text-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-text-column.md new file mode 100644 index 0000000000..2b989d4a87 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-text-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.CreateTextColumn( + "", + "", + "", + false, + tablesdb.WithCreateTextColumnDefault(""), + tablesdb.WithCreateTextColumnArray(false), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..99cce5dcc5 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-varchar-column.md @@ -0,0 +1,25 @@ +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.CreateVarcharColumn( + "", + "", + "", + 1, + false, + tablesdb.WithCreateVarcharColumnDefault(""), + tablesdb.WithCreateVarcharColumnArray(false), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..604e35c06f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-longtext-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.UpdateLongtextColumn( + "", + "", + "", + false, + "", + tablesdb.WithUpdateLongtextColumnNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-mediumtext-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..144cd74457 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-mediumtext-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.UpdateMediumtextColumn( + "", + "", + "", + false, + "", + tablesdb.WithUpdateMediumtextColumnNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-text-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-text-column.md new file mode 100644 index 0000000000..dc41787252 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-text-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.UpdateTextColumn( + "", + "", + "", + false, + "", + tablesdb.WithUpdateTextColumnNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-varchar-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..97dfb74489 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-varchar-column.md @@ -0,0 +1,25 @@ +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.UpdateVarcharColumn( + "", + "", + "", + false, + "", + tablesdb.WithUpdateVarcharColumnSize(1), + tablesdb.WithUpdateVarcharColumnNewKey(""), +) diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-longtext-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..6678df3df2 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-longtext-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesCreateLongtextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..422cb6c4ec --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-mediumtext-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesCreateMediumtextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-text-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-text-attribute.md new file mode 100644 index 0000000000..200ac0a5f6 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-text-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesCreateTextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-varchar-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..8e0ee11f34 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-varchar-attribute.md @@ -0,0 +1,22 @@ +mutation { + databasesCreateVarcharAttribute( + databaseId: "", + collectionId: "", + key: "", + size: 1, + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + size + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-longtext-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..51ba97a3e0 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-longtext-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdateLongtextAttribute( + 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-mediumtext-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..f62e29e7b6 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-mediumtext-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdateMediumtextAttribute( + 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-text-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-text-attribute.md new file mode 100644 index 0000000000..c1b7a8aab3 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-text-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdateTextAttribute( + 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-varchar-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..bf75a8263d --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-varchar-attribute.md @@ -0,0 +1,22 @@ +mutation { + databasesUpdateVarcharAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + size: 1, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + size + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..a09deeefee --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-longtext-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBCreateLongtextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..55c5389caf --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-mediumtext-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBCreateMediumtextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-text-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-text-column.md new file mode 100644 index 0000000000..dc9a3c53bb --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-text-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBCreateTextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..d53f7efa2a --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-varchar-column.md @@ -0,0 +1,22 @@ +mutation { + tablesDBCreateVarcharColumn( + databaseId: "", + tableId: "", + key: "", + size: 1, + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + size + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..11cb0f3d47 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-longtext-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBUpdateLongtextColumn( + 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-mediumtext-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..57484ecb26 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-mediumtext-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBUpdateMediumtextColumn( + 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-text-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-text-column.md new file mode 100644 index 0000000000..1939abe03d --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-text-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBUpdateTextColumn( + 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-varchar-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..2ddc608e7c --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-varchar-column.md @@ -0,0 +1,22 @@ +mutation { + tablesDBUpdateVarcharColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + size: 1, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + size + default + } +} diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-longtext-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..20357dfbb5 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-longtext-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.createLongtextAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default (optional) + false, // array (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-mediumtext-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..64ebbe57a9 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-mediumtext-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.createMediumtextAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default (optional) + false, // array (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-text-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-text-attribute.md new file mode 100644 index 0000000000..0d196f0353 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-text-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.createTextAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default (optional) + false, // array (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-varchar-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..4794cd5d00 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-varchar-attribute.md @@ -0,0 +1,29 @@ +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.createVarcharAttribute( + "", // databaseId + "", // collectionId + "", // key + 1, // size + false, // required + "", // default (optional) + false, // array (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-longtext-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..a59ada5a77 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-longtext-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.updateLongtextAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default + "", // 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-mediumtext-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..44f1964323 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-mediumtext-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.updateMediumtextAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default + "", // 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-text-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-text-attribute.md new file mode 100644 index 0000000000..83a293f213 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-text-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.updateTextAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default + "", // 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-varchar-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..2011010b3d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-varchar-attribute.md @@ -0,0 +1,29 @@ +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.updateVarcharAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + "", // default + 1, // size (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-longtext-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..6b3826fe91 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-longtext-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.createLongtextColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + false, // array (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-mediumtext-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..11d6ad5c7a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-mediumtext-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.createMediumtextColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + false, // array (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-text-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-text-column.md new file mode 100644 index 0000000000..a13c66d010 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-text-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.createTextColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + false, // array (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-varchar-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..5fc30e06f0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-varchar-column.md @@ -0,0 +1,29 @@ +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.createVarcharColumn( + "", // databaseId + "", // tableId + "", // key + 1, // size + false, // required + "", // default (optional) + false, // array (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-longtext-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..a6d2331b99 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-longtext-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.updateLongtextColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + "", // 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-mediumtext-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..ed096898e4 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-mediumtext-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.updateMediumtextColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + "", // 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-text-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-text-column.md new file mode 100644 index 0000000000..0f8ac656e7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-text-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.updateTextColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + "", // 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-varchar-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..45451316dc --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-varchar-column.md @@ -0,0 +1,29 @@ +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.updateVarcharColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + 1, // size (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/databases/create-longtext-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..b10e681019 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-longtext-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.createLongtextAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..ccd6188960 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-mediumtext-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.createMediumtextAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-text-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-text-attribute.md new file mode 100644 index 0000000000..7de27ed924 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-text-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.createTextAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-varchar-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..bb936484bf --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-varchar-attribute.md @@ -0,0 +1,20 @@ +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.createVarcharAttribute( + databaseId = "", + collectionId = "", + key = "", + size = 1, + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-longtext-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..e054e7360d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-longtext-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.updateLongtextAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-mediumtext-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..1b4fb91950 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-mediumtext-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.updateMediumtextAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-text-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-text-attribute.md new file mode 100644 index 0000000000..54b389fdd2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-text-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.updateTextAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-varchar-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..cfe193499b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-varchar-attribute.md @@ -0,0 +1,20 @@ +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.updateVarcharAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = "", + size = 1, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..784171b83e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-longtext-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.createLongtextColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..4a4df44776 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-mediumtext-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.createMediumtextColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-text-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-text-column.md new file mode 100644 index 0000000000..f85c7c8bca --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-text-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.createTextColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..de884df57a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-varchar-column.md @@ -0,0 +1,20 @@ +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.createVarcharColumn( + databaseId = "", + tableId = "", + key = "", + size = 1, + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..8a4794f71a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-longtext-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.updateLongtextColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-mediumtext-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..1eb2b4610a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-mediumtext-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.updateMediumtextColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-text-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-text-column.md new file mode 100644 index 0000000000..4949bea8f5 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-text-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.updateTextColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-varchar-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..c563455b1a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-varchar-column.md @@ -0,0 +1,20 @@ +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.updateVarcharColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + size = 1, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-longtext-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..f3b8874e9b --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-longtext-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.createLongtextAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..5fbda08ee0 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-mediumtext-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.createMediumtextAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-text-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-text-attribute.md new file mode 100644 index 0000000000..4a2af55b3a --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-text-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.createTextAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-varchar-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..3c443aeb55 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-varchar-attribute.md @@ -0,0 +1,18 @@ +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.createVarcharAttribute({ + databaseId: '', + collectionId: '', + key: '', + size: 1, + required: false, + default: '', // optional + array: false // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-longtext-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..efb82f462d --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-longtext-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.updateLongtextAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-mediumtext-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..aea41d08a1 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-mediumtext-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.updateMediumtextAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-text-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-text-attribute.md new file mode 100644 index 0000000000..9d1453eeec --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-text-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.updateTextAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-varchar-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..d28a3067f4 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-varchar-attribute.md @@ -0,0 +1,18 @@ +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.updateVarcharAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', + size: 1, // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..fd16d70ef1 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-longtext-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.createLongtextColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..109db51cf9 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-mediumtext-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.createMediumtextColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-text-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-text-column.md new file mode 100644 index 0000000000..a1d0ca89f6 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-text-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.createTextColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..34ccacd17c --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-varchar-column.md @@ -0,0 +1,18 @@ +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.createVarcharColumn({ + databaseId: '', + tableId: '', + key: '', + size: 1, + required: false, + default: '', // optional + array: false // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..9888bbaece --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-longtext-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.updateLongtextColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-mediumtext-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..84befdd095 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-mediumtext-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.updateMediumtextColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-text-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-text-column.md new file mode 100644 index 0000000000..0324b9cd90 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-text-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.updateTextColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-varchar-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..7dd2a1a602 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-varchar-column.md @@ -0,0 +1,18 @@ +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.updateVarcharColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + size: 1, // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-longtext-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..bb97b18b78 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-longtext-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->createLongtextAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..d225d95bb4 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-mediumtext-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->createMediumtextAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-text-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-text-attribute.md new file mode 100644 index 0000000000..3b1316f4e7 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-text-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->createTextAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-varchar-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..811e47b000 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-varchar-attribute.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createVarcharAttribute( + databaseId: '', + collectionId: '', + key: '', + size: 1, + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-longtext-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..6d5ade20a7 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-longtext-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->updateLongtextAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-mediumtext-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..7671c556aa --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-mediumtext-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->updateMediumtextAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-text-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-text-attribute.md new file mode 100644 index 0000000000..eef06699ba --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-text-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->updateTextAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-varchar-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..df9832288f --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-varchar-attribute.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateVarcharAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', + size: 1, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..48c5747bf2 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-longtext-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->createLongtextColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..f2472fbfe2 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-mediumtext-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->createMediumtextColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-text-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-text-column.md new file mode 100644 index 0000000000..00f1611ba3 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-text-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->createTextColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..bbd865088b --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-varchar-column.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->createVarcharColumn( + databaseId: '', + tableId: '', + key: '', + size: 1, + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..0ba81d6727 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-longtext-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->updateLongtextColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-mediumtext-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..5ff6424054 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-mediumtext-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->updateMediumtextColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-text-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-text-column.md new file mode 100644 index 0000000000..56aa217f8c --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-text-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->updateTextColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-varchar-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..077e8c4f89 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-varchar-column.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->updateVarcharColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + size: 1, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-longtext-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..348af9d9e6 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-longtext-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.create_longtext_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..f7bf2a074e --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-mediumtext-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.create_mediumtext_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-text-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-text-attribute.md new file mode 100644 index 0000000000..3a3804ee93 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-text-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.create_text_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-varchar-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..01823809b9 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-varchar-attribute.md @@ -0,0 +1,19 @@ +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_varchar_attribute( + database_id = '', + collection_id = '', + key = '', + size = 1, + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-longtext-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..8f2b5deb6c --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-longtext-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_longtext_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-mediumtext-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..a368cf19fc --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-mediumtext-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_mediumtext_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-text-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-text-attribute.md new file mode 100644 index 0000000000..cfbbd8c64c --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-text-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_text_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-varchar-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..359e307127 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-varchar-attribute.md @@ -0,0 +1,19 @@ +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_varchar_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = '', + size = 1, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..e060642578 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-longtext-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.create_longtext_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..2582649400 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-mediumtext-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.create_mediumtext_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-text-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-text-column.md new file mode 100644 index 0000000000..d4b2364665 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-text-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.create_text_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..385c77767a --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-varchar-column.md @@ -0,0 +1,19 @@ +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_varchar_column( + database_id = '', + table_id = '', + key = '', + size = 1, + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..d4abf30c00 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-longtext-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_longtext_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-mediumtext-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..a7aa045b55 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-mediumtext-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_mediumtext_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-text-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-text-column.md new file mode 100644 index 0000000000..5dd4b4a059 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-text-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_text_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-varchar-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..5e16a2e085 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-varchar-column.md @@ -0,0 +1,19 @@ +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_varchar_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + size = 1, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-longtext-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..233bea3c1c --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-longtext-attribute.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/longtext 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": "", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..e570fc2aa0 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-mediumtext-attribute.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/mediumtext 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": "", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-text-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-text-attribute.md new file mode 100644 index 0000000000..b1ba26d8a6 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-text-attribute.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/text 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": "", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-varchar-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..c857e3c6af --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-varchar-attribute.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/varchar 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": "", + "size": 1, + "required": false, + "default": "", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-longtext-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..905f83e5b3 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-longtext-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/longtext/{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-mediumtext-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..11e3162288 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-mediumtext-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/mediumtext/{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-text-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-text-attribute.md new file mode 100644 index 0000000000..b7253d63dc --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-text-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/text/{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-varchar-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..9165092f55 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-varchar-attribute.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/varchar/{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": "", + "size": 1, + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..0e847f0045 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-longtext-column.md @@ -0,0 +1,13 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/longtext 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": "", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..7bb0d27352 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-mediumtext-column.md @@ -0,0 +1,13 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext 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": "", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-text-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-text-column.md new file mode 100644 index 0000000000..9e80a7d380 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-text-column.md @@ -0,0 +1,13 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/text 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": "", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..d7905c974b --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-varchar-column.md @@ -0,0 +1,14 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/varchar 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": "", + "size": 1, + "required": false, + "default": "", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..f128451428 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-longtext-column.md @@ -0,0 +1,12 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/longtext/{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-mediumtext-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..5012588288 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-mediumtext-column.md @@ -0,0 +1,12 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext/{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-text-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-text-column.md new file mode 100644 index 0000000000..1b40044d27 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-text-column.md @@ -0,0 +1,12 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/text/{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-varchar-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..4b5399458a --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-varchar-column.md @@ -0,0 +1,13 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/varchar/{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": "", + "size": 1, + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-longtext-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..eac095dad5 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-longtext-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.create_longtext_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..d5e11074ba --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-mediumtext-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.create_mediumtext_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-text-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-text-attribute.md new file mode 100644 index 0000000000..01aa1275e3 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-text-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.create_text_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-varchar-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..a7c5318859 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-varchar-attribute.md @@ -0,0 +1,20 @@ +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_varchar_attribute( + database_id: '', + collection_id: '', + key: '', + size: 1, + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-longtext-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..694a0a3150 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-longtext-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_longtext_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-mediumtext-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..b60d615150 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-mediumtext-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_mediumtext_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-text-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-text-attribute.md new file mode 100644 index 0000000000..e75621ba79 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-text-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_text_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-varchar-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..1ba5df4b77 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-varchar-attribute.md @@ -0,0 +1,20 @@ +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_varchar_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: '', + size: 1, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..080d3936d9 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-longtext-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.create_longtext_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..8e67af2be2 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-mediumtext-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.create_mediumtext_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-text-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-text-column.md new file mode 100644 index 0000000000..21100cc5f6 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-text-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.create_text_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..8699da747b --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-varchar-column.md @@ -0,0 +1,20 @@ +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_varchar_column( + database_id: '', + table_id: '', + key: '', + size: 1, + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..0fe87ae163 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-longtext-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_longtext_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-mediumtext-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..b9ab3e50e4 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-mediumtext-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_mediumtext_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-text-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-text-column.md new file mode 100644 index 0000000000..ef189a2a08 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-text-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_text_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-varchar-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..fcf83376ab --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-varchar-column.md @@ -0,0 +1,20 @@ +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_varchar_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + size: 1, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-longtext-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-longtext-attribute.md new file mode 100644 index 0000000000..06b1d7ceca --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-longtext-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 attributeLongtext = try await databases.createLongtextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-mediumtext-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-mediumtext-attribute.md new file mode 100644 index 0000000000..ba48fe35e4 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-mediumtext-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 attributeMediumtext = try await databases.createMediumtextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-text-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-text-attribute.md new file mode 100644 index 0000000000..f8a925fd19 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-text-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 attributeText = try await databases.createTextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-varchar-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-varchar-attribute.md new file mode 100644 index 0000000000..786f70d328 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-varchar-attribute.md @@ -0,0 +1,19 @@ +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 attributeVarchar = try await databases.createVarcharAttribute( + databaseId: "", + collectionId: "", + key: "", + size: 1, + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-longtext-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-longtext-attribute.md new file mode 100644 index 0000000000..ed4c481565 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-longtext-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 attributeLongtext = try await databases.updateLongtextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-mediumtext-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-mediumtext-attribute.md new file mode 100644 index 0000000000..dd039b009c --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-mediumtext-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 attributeMediumtext = try await databases.updateMediumtextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-text-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-text-attribute.md new file mode 100644 index 0000000000..904c577980 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-text-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 attributeText = try await databases.updateTextAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-varchar-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-varchar-attribute.md new file mode 100644 index 0000000000..2317d81f3e --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-varchar-attribute.md @@ -0,0 +1,19 @@ +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 attributeVarchar = try await databases.updateVarcharAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + size: 1, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-longtext-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-longtext-column.md new file mode 100644 index 0000000000..121a919ca2 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-longtext-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 columnLongtext = try await tablesDB.createLongtextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-mediumtext-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-mediumtext-column.md new file mode 100644 index 0000000000..a5d967ca34 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-mediumtext-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 columnMediumtext = try await tablesDB.createMediumtextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-text-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-text-column.md new file mode 100644 index 0000000000..d39b947871 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-text-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 columnText = try await tablesDB.createTextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-varchar-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-varchar-column.md new file mode 100644 index 0000000000..f2a55d472f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-varchar-column.md @@ -0,0 +1,19 @@ +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 columnVarchar = try await tablesDB.createVarcharColumn( + databaseId: "", + tableId: "", + key: "", + size: 1, + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-longtext-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-longtext-column.md new file mode 100644 index 0000000000..647d0c52dd --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-longtext-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 columnLongtext = try await tablesDB.updateLongtextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-mediumtext-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-mediumtext-column.md new file mode 100644 index 0000000000..895269aa03 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-mediumtext-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 columnMediumtext = try await tablesDB.updateMediumtextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-text-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-text-column.md new file mode 100644 index 0000000000..d6f2e1c56a --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-text-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 columnText = try await tablesDB.updateTextColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-varchar-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-varchar-column.md new file mode 100644 index 0000000000..c932d8b250 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-varchar-column.md @@ -0,0 +1,19 @@ +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 columnVarchar = try await tablesDB.updateVarcharColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + size: 1, // optional + newKey: "" // optional +) + diff --git a/docs/sdks/dart/CHANGELOG.md b/docs/sdks/dart/CHANGELOG.md index 503df42f48..db028b042d 100644 --- a/docs/sdks/dart/CHANGELOG.md +++ b/docs/sdks/dart/CHANGELOG.md @@ -5,6 +5,7 @@ * Add array-based enum parameters (e.g., `permissions: List`). * Breaking change: `Output` enum has been removed; use `ImageFormat` instead. * Add `getQueueAudits` support to `Health` service. +* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services. ## 20.1.1 @@ -373,4 +374,4 @@ You can find the new syntax for breaking changes in the [Appwrite API references ## 0.1.0 -- First release +- First release \ No newline at end of file diff --git a/docs/sdks/deno/CHANGELOG.md b/docs/sdks/deno/CHANGELOG.md index f706794005..4319fb6d59 100644 --- a/docs/sdks/deno/CHANGELOG.md +++ b/docs/sdks/deno/CHANGELOG.md @@ -5,6 +5,7 @@ * Add array-based enum parameters (e.g., `permissions: BrowserPermission[]`). * Breaking change: `Output` enum has been removed; use `ImageFormat` instead. * Add `getQueueAudits` support to `Health` service. +* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services. ## 15.1.0 @@ -25,4 +26,4 @@ * Updates enum for `runtimes` with Pythonml312, Dart219, Flutter327 and Flutter329 * Add `token` param to `getFilePreview` and `getFileView` for File tokens usage * Add `queries` and `search` params to `listMemberships` method -* Removes `search` param from `listExecutions` method +* Removes `search` param from `listExecutions` method \ No newline at end of file diff --git a/docs/sdks/dotnet/CHANGELOG.md b/docs/sdks/dotnet/CHANGELOG.md index d3f47122c7..b6a07e12cd 100644 --- a/docs/sdks/dotnet/CHANGELOG.md +++ b/docs/sdks/dotnet/CHANGELOG.md @@ -5,6 +5,7 @@ * Add array-based enum parameters (e.g., `permissions: IReadOnlyList`). * Breaking change: `Output` enum has been removed; use `ImageFormat` instead. * Add `getQueueAudits` support to `Health` service. +* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services. ## 0.24.0 @@ -103,4 +104,4 @@ You can find the new syntax for breaking changes in the [Appwrite API references * Renamed `templateBranch` to `templateVersion` in `createFunction()`. * Renamed `downloadDeployment()` to `getDeploymentDownload()` -> **Please note: This version is compatible with Appwrite 1.6 and later only. If you do not update your Appwrite SDK, old SDKs will not break your app. Appwrite APIs are backwards compatible.** +> **Please note: This version is compatible with Appwrite 1.6 and later only. If you do not update your Appwrite SDK, old SDKs will not break your app. Appwrite APIs are backwards compatible.** \ No newline at end of file diff --git a/docs/sdks/go/CHANGELOG.md b/docs/sdks/go/CHANGELOG.md index e70923db19..3fc4483ca4 100644 --- a/docs/sdks/go/CHANGELOG.md +++ b/docs/sdks/go/CHANGELOG.md @@ -5,6 +5,7 @@ * Added ability to create columns and indexes synchronously while creating a table * Breaking change: `Output` enum has been removed; use `ImageFormat` instead. * Add `getQueueAudits` support to `Health` service. +* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services. ## v0.15.0 @@ -65,4 +66,4 @@ ## 0.3.0 -* Add new push message parameters +* Add new push message parameters \ No newline at end of file diff --git a/docs/sdks/kotlin/CHANGELOG.md b/docs/sdks/kotlin/CHANGELOG.md index 849d921e23..6bfce74f1b 100644 --- a/docs/sdks/kotlin/CHANGELOG.md +++ b/docs/sdks/kotlin/CHANGELOG.md @@ -5,6 +5,7 @@ * Add array-based enum parameters (e.g., `permissions: List`). * Breaking change: `Output` enum has been removed; use `ImageFormat` instead. * Add `getQueueAudits` support to `Health` service. +* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services. ## 13.1.0 @@ -58,4 +59,4 @@ ## 7.0.0 -* Fix pong response & chunked upload +* Fix pong response & chunked upload \ No newline at end of file diff --git a/docs/sdks/nodejs/CHANGELOG.md b/docs/sdks/nodejs/CHANGELOG.md index 2f4c61f11c..a6755c3f89 100644 --- a/docs/sdks/nodejs/CHANGELOG.md +++ b/docs/sdks/nodejs/CHANGELOG.md @@ -5,6 +5,7 @@ * Add array-based enum parameters (e.g., `permissions: BrowserPermission[]`). * Breaking change: `Output` enum has been removed; use `ImageFormat` instead. * Add `getQueueAudits` support to `Health` service. +* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services. ## 21.1.0 @@ -102,4 +103,4 @@ * Rename `templateBranch` to `templateVersion` in `createFunction()`. * Rename `downloadDeployment()` to `getDeploymentDownload()` -> You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`. +> You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`. \ No newline at end of file diff --git a/docs/sdks/php/CHANGELOG.md b/docs/sdks/php/CHANGELOG.md index f91f69dc0f..e7443565bf 100644 --- a/docs/sdks/php/CHANGELOG.md +++ b/docs/sdks/php/CHANGELOG.md @@ -5,6 +5,7 @@ * Add array-based enum parameters (e.g., `permissions: array`). * Breaking change: `Output` enum has been removed; use `ImageFormat` instead. * Add `getQueueAudits` support to `Health` service. +* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services. ## 19.1.0 @@ -47,4 +48,4 @@ * Add `dart38` and `flutter332` support to runtime models * Add `gif` support to `ImageFormat` enum * Add `upsertDocument` support to `Databases` service -* Add `sequence` support to `Document` model +* Add `sequence` support to `Document` model \ No newline at end of file diff --git a/docs/sdks/python/CHANGELOG.md b/docs/sdks/python/CHANGELOG.md index 4c9daa1a13..f662f5f217 100644 --- a/docs/sdks/python/CHANGELOG.md +++ b/docs/sdks/python/CHANGELOG.md @@ -5,6 +5,7 @@ * Add array-based enum parameters (e.g., `permissions: list[BrowserPermission]`). * Breaking change: `Output` enum has been removed; use `ImageFormat` instead. * Add `getQueueAudits` support to `Health` service. +* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services. ## 14.1.0 @@ -68,4 +69,4 @@ ## 9.0.3 -* Update sdk to use Numpy-style docstrings +* Update sdk to use Numpy-style docstrings \ No newline at end of file diff --git a/docs/sdks/ruby/CHANGELOG.md b/docs/sdks/ruby/CHANGELOG.md index 9ce9b3afa2..58a3cbac04 100644 --- a/docs/sdks/ruby/CHANGELOG.md +++ b/docs/sdks/ruby/CHANGELOG.md @@ -5,6 +5,7 @@ * Add array-based enum parameters (e.g., `permissions: Array`). * Breaking change: `Output` enum has been removed; use `ImageFormat` instead. * Add `getQueueAudits` support to `Health` service. +* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services. ## 20.1.0 @@ -59,4 +60,4 @@ ## 14.0.0 -* Fix pong response & chunked upload +* Fix pong response & chunked upload \ No newline at end of file diff --git a/docs/sdks/swift/CHANGELOG.md b/docs/sdks/swift/CHANGELOG.md index 275dba9db5..458f5f8817 100644 --- a/docs/sdks/swift/CHANGELOG.md +++ b/docs/sdks/swift/CHANGELOG.md @@ -5,6 +5,7 @@ * Add array-based enum parameters (e.g., `permissions: [BrowserPermission]`). * Breaking change: `Output` enum has been removed; use `ImageFormat` instead. * Add `getQueueAudits` support to `Health` service. +* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services. ## 14.1.0 @@ -78,4 +79,4 @@ ## 7.0.0 -* Fix pong response & chunked upload +* Fix pong response & chunked upload \ No newline at end of file From 2ac265baea30f28a3edae2b82d9ff086919ac71e Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 2 Feb 2026 18:34:24 +0530 Subject: [PATCH 6/6] update composer --- composer.json | 2 +- composer.lock | 30 ++++++++++++++---------------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/composer.json b/composer.json index ef6928df2e..4d9e779c94 100644 --- a/composer.json +++ b/composer.json @@ -89,7 +89,7 @@ }, "require-dev": { "ext-fileinfo": "*", - "appwrite/sdk-generator": "dev-fix/enum-example-from-x-example", + "appwrite/sdk-generator": "*", "phpunit/phpunit": "9.*", "swoole/ide-helper": "6.*", "phpstan/phpstan": "1.8.*", diff --git a/composer.lock b/composer.lock index 5edcc2e8eb..bb76605743 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "3ffe6e9557a18c7f96b3cfc1faa55399", + "content-hash": "2aca1c8eeaa9fa338e389e3527cb6bd6", "packages": [ { "name": "adhocore/jwt", @@ -4902,16 +4902,16 @@ }, { "name": "utopia-php/queue", - "version": "0.15.1", + "version": "0.15.2", "source": { "type": "git", "url": "https://github.com/utopia-php/queue.git", - "reference": "e551606385990ec7901d222017c4cfc2749a518c" + "reference": "5051c08d9f50ff4aa78c0eb2f7ca74b328509c81" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/queue/zipball/e551606385990ec7901d222017c4cfc2749a518c", - "reference": "e551606385990ec7901d222017c4cfc2749a518c", + "url": "https://api.github.com/repos/utopia-php/queue/zipball/5051c08d9f50ff4aa78c0eb2f7ca74b328509c81", + "reference": "5051c08d9f50ff4aa78c0eb2f7ca74b328509c81", "shasum": "" }, "require": { @@ -4962,9 +4962,9 @@ ], "support": { "issues": "https://github.com/utopia-php/queue/issues", - "source": "https://github.com/utopia-php/queue/tree/0.15.1" + "source": "https://github.com/utopia-php/queue/tree/0.15.2" }, - "time": "2026-01-16T07:54:54+00:00" + "time": "2026-02-02T11:56:51+00:00" }, { "name": "utopia-php/registry", @@ -5546,16 +5546,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "dev-fix/enum-example-from-x-example", + "version": "1.8.22", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "b1a44e2bb35fb74ad0f5b5bb6ad945d98cd15315" + "reference": "2888fa2abd820dca24f3d967ba54d498999e3caf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/b1a44e2bb35fb74ad0f5b5bb6ad945d98cd15315", - "reference": "b1a44e2bb35fb74ad0f5b5bb6ad945d98cd15315", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/2888fa2abd820dca24f3d967ba54d498999e3caf", + "reference": "2888fa2abd820dca24f3d967ba54d498999e3caf", "shasum": "" }, "require": { @@ -5591,9 +5591,9 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/fix/enum-example-from-x-example" + "source": "https://github.com/appwrite/sdk-generator/tree/1.8.22" }, - "time": "2026-02-02T11:47:45+00:00" + "time": "2026-02-02T13:02:47+00:00" }, { "name": "doctrine/annotations", @@ -9052,9 +9052,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": { - "appwrite/sdk-generator": 20 - }, + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": {