From 21d53096442ff547a7e7798d5e3cb6efe94b6730 Mon Sep 17 00:00:00 2001 From: Matej Baco Date: Tue, 14 Jun 2022 17:22:06 +0200 Subject: [PATCH] Removed 0.15 --- app/config/specs/open-api3-0.15.x-client.json | 1 - .../specs/open-api3-0.15.x-console.json | 1 - app/config/specs/open-api3-0.15.x-server.json | 1 - app/config/specs/swagger2-0.15.x-client.json | 1 - app/config/specs/swagger2-0.15.x-console.json | 1 - app/config/specs/swagger2-0.15.x-server.json | 1 - app/init.php | 2 +- app/tasks/sdks.php | 2 +- .../java/account/create-anonymous-session.md | 46 ----------------- .../java/account/create-j-w-t.md | 46 ----------------- .../account/create-magic-u-r-l-session.md | 49 ------------------ .../java/account/create-o-auth2session.md | 46 ----------------- .../java/account/create-recovery.md | 49 ------------------ .../java/account/create-session.md | 49 ------------------ .../java/account/create-verification.md | 48 ----------------- .../client-android/java/account/create.md | 50 ------------------ .../java/account/delete-session.md | 48 ----------------- .../java/account/delete-sessions.md | 46 ----------------- .../client-android/java/account/delete.md | 46 ----------------- .../client-android/java/account/get-logs.md | 47 ----------------- .../client-android/java/account/get-prefs.md | 46 ----------------- .../java/account/get-session.md | 48 ----------------- .../java/account/get-sessions.md | 46 ----------------- .../0.15.x/client-android/java/account/get.md | 46 ----------------- .../java/account/update-email.md | 49 ------------------ .../account/update-magic-u-r-l-session.md | 49 ------------------ .../java/account/update-name.md | 48 ----------------- .../java/account/update-o-auth2tokens.md | 48 ----------------- .../java/account/update-password.md | 48 ----------------- .../java/account/update-prefs.md | 48 ----------------- .../java/account/update-recovery.md | 51 ------------------- .../java/account/update-session.md | 48 ----------------- .../java/account/update-status.md | 46 ----------------- .../java/account/update-verification.md | 49 ------------------ .../java/avatars/get-browser.md | 48 ----------------- .../java/avatars/get-credit-card.md | 48 ----------------- .../java/avatars/get-favicon.md | 48 ----------------- .../client-android/java/avatars/get-flag.md | 48 ----------------- .../client-android/java/avatars/get-image.md | 48 ----------------- .../java/avatars/get-initials.md | 47 ----------------- .../client-android/java/avatars/get-q-r.md | 48 ----------------- .../java/database/create-document.md | 50 ------------------ .../java/database/delete-document.md | 49 ------------------ .../java/database/get-document.md | 49 ------------------ .../java/database/list-documents.md | 48 ----------------- .../java/database/update-document.md | 50 ------------------ .../java/functions/create-execution.md | 48 ----------------- .../java/functions/get-build.md | 50 ------------------ .../java/functions/get-execution.md | 49 ------------------ .../java/functions/list-executions.md | 48 ----------------- .../java/functions/retry-build.md | 50 ------------------ .../java/locale/get-continents.md | 46 ----------------- .../java/locale/get-countries-e-u.md | 46 ----------------- .../java/locale/get-countries-phones.md | 46 ----------------- .../java/locale/get-countries.md | 46 ----------------- .../java/locale/get-currencies.md | 46 ----------------- .../java/locale/get-languages.md | 46 ----------------- .../0.15.x/client-android/java/locale/get.md | 46 ----------------- .../java/storage/create-file.md | 50 ------------------ .../java/storage/delete-file.md | 49 ------------------ .../java/storage/get-file-download.md | 49 ------------------ .../java/storage/get-file-preview.md | 49 ------------------ .../java/storage/get-file-view.md | 49 ------------------ .../client-android/java/storage/get-file.md | 49 ------------------ .../client-android/java/storage/list-files.md | 48 ----------------- .../java/storage/update-file.md | 49 ------------------ .../java/teams/create-membership.md | 51 ------------------- .../client-android/java/teams/create.md | 49 ------------------ .../java/teams/delete-membership.md | 49 ------------------ .../client-android/java/teams/delete.md | 48 ----------------- .../java/teams/get-membership.md | 49 ------------------ .../java/teams/get-memberships.md | 48 ----------------- .../0.15.x/client-android/java/teams/get.md | 48 ----------------- .../0.15.x/client-android/java/teams/list.md | 47 ----------------- .../java/teams/update-membership-roles.md | 50 ------------------ .../java/teams/update-membership-status.md | 51 ------------------- .../client-android/java/teams/update.md | 49 ------------------ .../account/create-anonymous-session.md | 24 --------- .../kotlin/account/create-j-w-t.md | 24 --------- .../account/create-magic-u-r-l-session.md | 27 ---------- .../kotlin/account/create-o-auth2session.md | 27 ---------- .../kotlin/account/create-recovery.md | 27 ---------- .../kotlin/account/create-session.md | 27 ---------- .../kotlin/account/create-verification.md | 26 ---------- .../client-android/kotlin/account/create.md | 28 ---------- .../kotlin/account/delete-session.md | 26 ---------- .../kotlin/account/delete-sessions.md | 24 --------- .../client-android/kotlin/account/delete.md | 24 --------- .../client-android/kotlin/account/get-logs.md | 25 --------- .../kotlin/account/get-prefs.md | 24 --------- .../kotlin/account/get-session.md | 26 ---------- .../kotlin/account/get-sessions.md | 24 --------- .../client-android/kotlin/account/get.md | 24 --------- .../kotlin/account/update-email.md | 27 ---------- .../account/update-magic-u-r-l-session.md | 27 ---------- .../kotlin/account/update-name.md | 26 ---------- .../kotlin/account/update-o-auth2tokens.md | 26 ---------- .../kotlin/account/update-password.md | 26 ---------- .../kotlin/account/update-prefs.md | 26 ---------- .../kotlin/account/update-recovery.md | 29 ----------- .../kotlin/account/update-session.md | 26 ---------- .../kotlin/account/update-status.md | 24 --------- .../kotlin/account/update-verification.md | 27 ---------- .../kotlin/avatars/get-browser.md | 26 ---------- .../kotlin/avatars/get-credit-card.md | 26 ---------- .../kotlin/avatars/get-favicon.md | 26 ---------- .../client-android/kotlin/avatars/get-flag.md | 26 ---------- .../kotlin/avatars/get-image.md | 26 ---------- .../kotlin/avatars/get-initials.md | 25 --------- .../client-android/kotlin/avatars/get-q-r.md | 26 ---------- .../kotlin/database/create-document.md | 28 ---------- .../kotlin/database/delete-document.md | 27 ---------- .../kotlin/database/get-document.md | 27 ---------- .../kotlin/database/list-documents.md | 26 ---------- .../kotlin/database/update-document.md | 28 ---------- .../kotlin/functions/create-execution.md | 26 ---------- .../kotlin/functions/get-build.md | 28 ---------- .../kotlin/functions/get-execution.md | 27 ---------- .../kotlin/functions/list-executions.md | 26 ---------- .../kotlin/functions/retry-build.md | 28 ---------- .../kotlin/locale/get-continents.md | 24 --------- .../kotlin/locale/get-countries-e-u.md | 24 --------- .../kotlin/locale/get-countries-phones.md | 24 --------- .../kotlin/locale/get-countries.md | 24 --------- .../kotlin/locale/get-currencies.md | 24 --------- .../kotlin/locale/get-languages.md | 24 --------- .../client-android/kotlin/locale/get.md | 24 --------- .../kotlin/storage/create-file.md | 28 ---------- .../kotlin/storage/delete-file.md | 27 ---------- .../kotlin/storage/get-file-download.md | 27 ---------- .../kotlin/storage/get-file-preview.md | 27 ---------- .../kotlin/storage/get-file-view.md | 27 ---------- .../client-android/kotlin/storage/get-file.md | 27 ---------- .../kotlin/storage/list-files.md | 26 ---------- .../kotlin/storage/update-file.md | 27 ---------- .../kotlin/teams/create-membership.md | 29 ----------- .../client-android/kotlin/teams/create.md | 27 ---------- .../kotlin/teams/delete-membership.md | 27 ---------- .../client-android/kotlin/teams/delete.md | 26 ---------- .../kotlin/teams/get-membership.md | 27 ---------- .../kotlin/teams/get-memberships.md | 26 ---------- .../0.15.x/client-android/kotlin/teams/get.md | 26 ---------- .../client-android/kotlin/teams/list.md | 25 --------- .../kotlin/teams/update-membership-roles.md | 28 ---------- .../kotlin/teams/update-membership-status.md | 29 ----------- .../client-android/kotlin/teams/update.md | 27 ---------- .../account/create-anonymous-session.md | 11 ---- .../examples/account/create-j-w-t.md | 11 ---- .../account/create-magic-u-r-l-session.md | 14 ----- .../examples/account/create-o-auth2session.md | 13 ----- .../examples/account/create-recovery.md | 14 ----- .../examples/account/create-session.md | 14 ----- .../examples/account/create-verification.md | 13 ----- .../client-apple/examples/account/create.md | 15 ------ .../examples/account/delete-session.md | 13 ----- .../examples/account/delete-sessions.md | 11 ---- .../client-apple/examples/account/delete.md | 17 ------- .../client-apple/examples/account/get-logs.md | 11 ---- .../examples/account/get-prefs.md | 11 ---- .../examples/account/get-session.md | 13 ----- .../examples/account/get-sessions.md | 11 ---- .../client-apple/examples/account/get.md | 11 ---- .../examples/account/update-email.md | 14 ----- .../account/update-magic-u-r-l-session.md | 14 ----- .../examples/account/update-name.md | 13 ----- .../examples/account/update-o-auth2tokens.md | 19 ------- .../examples/account/update-password.md | 13 ----- .../examples/account/update-prefs.md | 13 ----- .../examples/account/update-recovery.md | 16 ------ .../examples/account/update-session.md | 13 ----- .../examples/account/update-status.md | 11 ---- .../examples/account/update-verification.md | 14 ----- .../examples/avatars/get-browser.md | 13 ----- .../examples/avatars/get-credit-card.md | 13 ----- .../examples/avatars/get-favicon.md | 13 ----- .../client-apple/examples/avatars/get-flag.md | 13 ----- .../examples/avatars/get-image.md | 13 ----- .../examples/avatars/get-initials.md | 11 ---- .../client-apple/examples/avatars/get-q-r.md | 13 ----- .../examples/database/create-document.md | 15 ------ .../examples/database/delete-document.md | 14 ----- .../examples/database/get-document.md | 14 ----- .../examples/database/list-documents.md | 13 ----- .../examples/database/update-document.md | 15 ------ .../examples/functions/create-execution.md | 13 ----- .../examples/functions/get-build.md | 21 -------- .../examples/functions/get-execution.md | 14 ----- .../examples/functions/list-executions.md | 13 ----- .../examples/functions/retry-build.md | 15 ------ .../examples/locale/get-continents.md | 11 ---- .../examples/locale/get-countries-e-u.md | 11 ---- .../examples/locale/get-countries-phones.md | 11 ---- .../examples/locale/get-countries.md | 11 ---- .../examples/locale/get-currencies.md | 11 ---- .../examples/locale/get-languages.md | 11 ---- .../client-apple/examples/locale/get.md | 11 ---- .../examples/storage/create-file.md | 15 ------ .../examples/storage/delete-file.md | 14 ----- .../examples/storage/get-file-download.md | 14 ----- .../examples/storage/get-file-preview.md | 14 ----- .../examples/storage/get-file-view.md | 14 ----- .../client-apple/examples/storage/get-file.md | 14 ----- .../examples/storage/list-files.md | 13 ----- .../examples/storage/update-file.md | 14 ----- .../examples/teams/create-membership.md | 16 ------ .../client-apple/examples/teams/create.md | 14 ----- .../examples/teams/delete-membership.md | 14 ----- .../client-apple/examples/teams/delete.md | 13 ----- .../examples/teams/get-membership.md | 14 ----- .../examples/teams/get-memberships.md | 13 ----- .../0.15.x/client-apple/examples/teams/get.md | 13 ----- .../client-apple/examples/teams/list.md | 11 ---- .../examples/teams/update-membership-roles.md | 15 ------ .../teams/update-membership-status.md | 16 ------ .../client-apple/examples/teams/update.md | 14 ----- .../account/create-anonymous-session.md | 19 ------- .../examples/account/create-j-w-t.md | 19 ------- .../account/create-magic-u-r-l-session.md | 22 -------- .../examples/account/create-o-auth2session.md | 21 -------- .../examples/account/create-recovery.md | 22 -------- .../examples/account/create-session.md | 22 -------- .../examples/account/create-verification.md | 21 -------- .../client-flutter/examples/account/create.md | 23 --------- .../examples/account/delete-session.md | 21 -------- .../examples/account/delete-sessions.md | 19 ------- .../client-flutter/examples/account/delete.md | 19 ------- .../examples/account/get-logs.md | 20 -------- .../examples/account/get-prefs.md | 19 ------- .../examples/account/get-session.md | 21 -------- .../examples/account/get-sessions.md | 19 ------- .../client-flutter/examples/account/get.md | 19 ------- .../examples/account/update-email.md | 22 -------- .../account/update-magic-u-r-l-session.md | 22 -------- .../examples/account/update-name.md | 21 -------- .../examples/account/update-o-auth2tokens.md | 21 -------- .../examples/account/update-password.md | 21 -------- .../examples/account/update-prefs.md | 21 -------- .../examples/account/update-recovery.md | 24 --------- .../examples/account/update-session.md | 21 -------- .../examples/account/update-status.md | 19 ------- .../examples/account/update-verification.md | 22 -------- .../examples/avatars/get-browser.md | 34 ------------- .../examples/avatars/get-credit-card.md | 34 ------------- .../examples/avatars/get-favicon.md | 34 ------------- .../examples/avatars/get-flag.md | 34 ------------- .../examples/avatars/get-image.md | 34 ------------- .../examples/avatars/get-initials.md | 32 ------------ .../examples/avatars/get-q-r.md | 34 ------------- .../examples/database/create-document.md | 23 --------- .../examples/database/delete-document.md | 22 -------- .../examples/database/get-document.md | 22 -------- .../examples/database/list-documents.md | 21 -------- .../examples/database/update-document.md | 23 --------- .../examples/functions/create-execution.md | 21 -------- .../examples/functions/get-build.md | 23 --------- .../examples/functions/get-execution.md | 22 -------- .../examples/functions/list-executions.md | 21 -------- .../examples/functions/retry-build.md | 23 --------- .../examples/locale/get-continents.md | 19 ------- .../examples/locale/get-countries-e-u.md | 19 ------- .../examples/locale/get-countries-phones.md | 19 ------- .../examples/locale/get-countries.md | 19 ------- .../examples/locale/get-currencies.md | 19 ------- .../examples/locale/get-languages.md | 19 ------- .../client-flutter/examples/locale/get.md | 19 ------- .../examples/storage/create-file.md | 24 --------- .../examples/storage/delete-file.md | 22 -------- .../examples/storage/get-file-download.md | 36 ------------- .../examples/storage/get-file-preview.md | 36 ------------- .../examples/storage/get-file-view.md | 36 ------------- .../examples/storage/get-file.md | 22 -------- .../examples/storage/list-files.md | 21 -------- .../examples/storage/update-file.md | 22 -------- .../examples/teams/create-membership.md | 24 --------- .../client-flutter/examples/teams/create.md | 22 -------- .../examples/teams/delete-membership.md | 22 -------- .../client-flutter/examples/teams/delete.md | 21 -------- .../examples/teams/get-membership.md | 22 -------- .../examples/teams/get-memberships.md | 21 -------- .../client-flutter/examples/teams/get.md | 21 -------- .../client-flutter/examples/teams/list.md | 20 -------- .../examples/teams/update-membership-roles.md | 23 --------- .../teams/update-membership-status.md | 24 --------- .../client-flutter/examples/teams/update.md | 22 -------- .../account/create-anonymous-session.md | 14 ----- .../examples/account/create-j-w-t.md | 14 ----- .../account/create-magic-u-r-l-session.md | 14 ----- .../examples/account/create-o-auth2session.md | 10 ---- .../examples/account/create-recovery.md | 14 ----- .../examples/account/create-session.md | 14 ----- .../examples/account/create-verification.md | 14 ----- .../client-web/examples/account/create.md | 14 ----- .../examples/account/delete-session.md | 14 ----- .../examples/account/delete-sessions.md | 14 ----- .../client-web/examples/account/delete.md | 14 ----- .../client-web/examples/account/get-logs.md | 14 ----- .../client-web/examples/account/get-prefs.md | 14 ----- .../examples/account/get-session.md | 14 ----- .../examples/account/get-sessions.md | 14 ----- .../0.15.x/client-web/examples/account/get.md | 14 ----- .../examples/account/update-email.md | 14 ----- .../account/update-magic-u-r-l-session.md | 14 ----- .../examples/account/update-name.md | 14 ----- .../examples/account/update-o-auth2tokens.md | 14 ----- .../examples/account/update-password.md | 14 ----- .../examples/account/update-prefs.md | 14 ----- .../examples/account/update-recovery.md | 14 ----- .../examples/account/update-session.md | 14 ----- .../examples/account/update-status.md | 14 ----- .../examples/account/update-verification.md | 14 ----- .../examples/avatars/get-browser.md | 10 ---- .../examples/avatars/get-credit-card.md | 10 ---- .../examples/avatars/get-favicon.md | 10 ---- .../client-web/examples/avatars/get-flag.md | 10 ---- .../client-web/examples/avatars/get-image.md | 10 ---- .../examples/avatars/get-initials.md | 10 ---- .../client-web/examples/avatars/get-q-r.md | 10 ---- .../examples/database/create-document.md | 14 ----- .../examples/database/delete-document.md | 14 ----- .../examples/database/get-document.md | 14 ----- .../examples/database/list-documents.md | 14 ----- .../examples/database/update-document.md | 14 ----- .../examples/functions/create-execution.md | 14 ----- .../examples/functions/get-build.md | 14 ----- .../examples/functions/get-execution.md | 14 ----- .../examples/functions/list-executions.md | 14 ----- .../examples/functions/retry-build.md | 14 ----- .../examples/locale/get-continents.md | 14 ----- .../examples/locale/get-countries-e-u.md | 14 ----- .../examples/locale/get-countries-phones.md | 14 ----- .../examples/locale/get-countries.md | 14 ----- .../examples/locale/get-currencies.md | 14 ----- .../examples/locale/get-languages.md | 14 ----- .../0.15.x/client-web/examples/locale/get.md | 14 ----- .../examples/storage/create-file.md | 14 ----- .../examples/storage/delete-file.md | 14 ----- .../examples/storage/get-file-download.md | 10 ---- .../examples/storage/get-file-preview.md | 10 ---- .../examples/storage/get-file-view.md | 10 ---- .../client-web/examples/storage/get-file.md | 14 ----- .../client-web/examples/storage/list-files.md | 14 ----- .../examples/storage/update-file.md | 14 ----- .../examples/teams/create-membership.md | 14 ----- .../client-web/examples/teams/create.md | 14 ----- .../examples/teams/delete-membership.md | 14 ----- .../client-web/examples/teams/delete.md | 14 ----- .../examples/teams/get-membership.md | 14 ----- .../examples/teams/get-memberships.md | 14 ----- .../0.15.x/client-web/examples/teams/get.md | 14 ----- .../0.15.x/client-web/examples/teams/list.md | 14 ----- .../examples/teams/update-membership-roles.md | 14 ----- .../teams/update-membership-status.md | 14 ----- .../client-web/examples/teams/update.md | 14 ----- .../account/create-anonymous-session.md | 1 - .../examples/account/create-j-w-t.md | 1 - .../account/create-magic-u-r-l-session.md | 4 -- .../examples/account/create-o-auth2session.md | 5 -- .../examples/account/create-recovery.md | 3 -- .../examples/account/create-session.md | 3 -- .../examples/account/create-verification.md | 2 - .../console-cli/examples/account/create.md | 5 -- .../examples/account/delete-session.md | 2 - .../examples/account/delete-sessions.md | 1 - .../console-cli/examples/account/get-logs.md | 3 -- .../console-cli/examples/account/get-prefs.md | 1 - .../examples/account/get-session.md | 2 - .../examples/account/get-sessions.md | 1 - .../console-cli/examples/account/get.md | 1 - .../examples/account/update-email.md | 3 -- .../account/update-magic-u-r-l-session.md | 3 -- .../examples/account/update-name.md | 2 - .../examples/account/update-password.md | 3 -- .../examples/account/update-prefs.md | 2 - .../examples/account/update-recovery.md | 5 -- .../examples/account/update-session.md | 2 - .../examples/account/update-status.md | 1 - .../examples/account/update-verification.md | 3 -- .../examples/avatars/get-browser.md | 5 -- .../examples/avatars/get-credit-card.md | 5 -- .../examples/avatars/get-favicon.md | 2 - .../console-cli/examples/avatars/get-flag.md | 5 -- .../console-cli/examples/avatars/get-image.md | 4 -- .../examples/avatars/get-initials.md | 6 --- .../console-cli/examples/avatars/get-q-r.md | 5 -- .../database/create-boolean-attribute.md | 6 --- .../examples/database/create-collection.md | 6 --- .../examples/database/create-document.md | 6 --- .../database/create-email-attribute.md | 6 --- .../database/create-enum-attribute.md | 7 --- .../database/create-float-attribute.md | 8 --- .../examples/database/create-index.md | 6 --- .../database/create-integer-attribute.md | 8 --- .../examples/database/create-ip-attribute.md | 6 --- .../database/create-string-attribute.md | 7 --- .../examples/database/create-url-attribute.md | 6 --- .../examples/database/delete-attribute.md | 3 -- .../examples/database/delete-collection.md | 2 - .../examples/database/delete-document.md | 3 -- .../examples/database/delete-index.md | 3 -- .../examples/database/get-attribute.md | 3 -- .../examples/database/get-collection-usage.md | 3 -- .../examples/database/get-collection.md | 2 - .../examples/database/get-document.md | 3 -- .../examples/database/get-index.md | 3 -- .../examples/database/get-usage.md | 2 - .../examples/database/list-attributes.md | 2 - .../examples/database/list-collection-logs.md | 4 -- .../examples/database/list-collections.md | 7 --- .../examples/database/list-document-logs.md | 5 -- .../examples/database/list-documents.md | 9 ---- .../examples/database/list-indexes.md | 2 - .../examples/database/update-collection.md | 7 --- .../examples/database/update-document.md | 6 --- .../examples/functions/create-deployment.md | 5 -- .../examples/functions/create-execution.md | 4 -- .../console-cli/examples/functions/create.md | 9 ---- .../examples/functions/delete-deployment.md | 3 -- .../console-cli/examples/functions/delete.md | 2 - .../examples/functions/get-deployment.md | 3 -- .../examples/functions/get-execution.md | 3 -- .../examples/functions/get-usage.md | 3 -- .../console-cli/examples/functions/get.md | 2 - .../examples/functions/list-deployments.md | 8 --- .../examples/functions/list-executions.md | 7 --- .../examples/functions/list-runtimes.md | 1 - .../console-cli/examples/functions/list.md | 7 --- .../examples/functions/retry-build.md | 4 -- .../examples/functions/update-deployment.md | 3 -- .../console-cli/examples/functions/update.md | 8 --- .../examples/health/get-antivirus.md | 1 - .../console-cli/examples/health/get-cache.md | 1 - .../console-cli/examples/health/get-d-b.md | 1 - .../examples/health/get-queue-certificates.md | 1 - .../examples/health/get-queue-functions.md | 1 - .../examples/health/get-queue-logs.md | 1 - .../examples/health/get-queue-webhooks.md | 1 - .../examples/health/get-storage-local.md | 1 - .../console-cli/examples/health/get-time.md | 1 - .../0.15.x/console-cli/examples/health/get.md | 1 - .../examples/locale/get-continents.md | 1 - .../examples/locale/get-countries-e-u.md | 1 - .../examples/locale/get-countries-phones.md | 1 - .../examples/locale/get-countries.md | 1 - .../examples/locale/get-currencies.md | 1 - .../examples/locale/get-languages.md | 1 - .../0.15.x/console-cli/examples/locale/get.md | 1 - .../examples/projects/create-domain.md | 3 -- .../examples/projects/create-key.md | 5 -- .../examples/projects/create-platform.md | 7 --- .../examples/projects/create-webhook.md | 8 --- .../console-cli/examples/projects/create.md | 13 ----- .../examples/projects/delete-domain.md | 3 -- .../examples/projects/delete-key.md | 3 -- .../examples/projects/delete-platform.md | 3 -- .../examples/projects/delete-webhook.md | 3 -- .../console-cli/examples/projects/delete.md | 3 -- .../examples/projects/get-domain.md | 3 -- .../console-cli/examples/projects/get-key.md | 3 -- .../examples/projects/get-platform.md | 3 -- .../examples/projects/get-usage.md | 3 -- .../examples/projects/get-webhook.md | 3 -- .../console-cli/examples/projects/get.md | 2 - .../examples/projects/list-domains.md | 2 - .../examples/projects/list-keys.md | 2 - .../examples/projects/list-platforms.md | 2 - .../examples/projects/list-webhooks.md | 2 - .../console-cli/examples/projects/list.md | 7 --- .../examples/projects/update-auth-limit.md | 3 -- .../examples/projects/update-auth-status.md | 4 -- .../projects/update-domain-verification.md | 3 -- .../examples/projects/update-key.md | 6 --- .../examples/projects/update-o-auth2.md | 5 -- .../examples/projects/update-platform.md | 7 --- .../projects/update-service-status.md | 4 -- .../examples/projects/update-webhook.md | 10 ---- .../console-cli/examples/projects/update.md | 12 ----- .../examples/storage/create-bucket.md | 11 ---- .../examples/storage/create-file.md | 6 --- .../examples/storage/delete-bucket.md | 2 - .../examples/storage/delete-file.md | 3 -- .../examples/storage/get-bucket-usage.md | 3 -- .../examples/storage/get-bucket.md | 2 - .../examples/storage/get-file-download.md | 3 -- .../examples/storage/get-file-preview.md | 14 ----- .../examples/storage/get-file-view.md | 3 -- .../console-cli/examples/storage/get-file.md | 3 -- .../console-cli/examples/storage/get-usage.md | 2 - .../examples/storage/list-buckets.md | 7 --- .../examples/storage/list-files.md | 8 --- .../examples/storage/update-bucket.md | 11 ---- .../examples/storage/update-file.md | 5 -- .../examples/teams/create-membership.md | 6 --- .../console-cli/examples/teams/create.md | 4 -- .../examples/teams/delete-membership.md | 3 -- .../console-cli/examples/teams/delete.md | 2 - .../examples/teams/get-membership.md | 3 -- .../examples/teams/get-memberships.md | 8 --- .../0.15.x/console-cli/examples/teams/get.md | 2 - .../console-cli/examples/teams/list-logs.md | 4 -- .../0.15.x/console-cli/examples/teams/list.md | 7 --- .../examples/teams/update-membership-roles.md | 4 -- .../teams/update-membership-status.md | 5 -- .../console-cli/examples/teams/update.md | 3 -- .../examples/users/create-argon2user.md | 5 -- .../examples/users/create-bcrypt-user.md | 5 -- .../examples/users/create-m-d5user.md | 5 -- .../examples/users/create-p-h-pass-user.md | 5 -- .../users/create-s-crypt-modified-user.md | 8 --- .../examples/users/create-s-crypt-user.md | 10 ---- .../examples/users/create-s-h-a-user.md | 6 --- .../console-cli/examples/users/create.md | 5 -- .../examples/users/delete-session.md | 3 -- .../examples/users/delete-sessions.md | 2 - .../console-cli/examples/users/delete.md | 2 - .../console-cli/examples/users/get-logs.md | 4 -- .../examples/users/get-memberships.md | 2 - .../console-cli/examples/users/get-prefs.md | 2 - .../examples/users/get-sessions.md | 2 - .../console-cli/examples/users/get-usage.md | 3 -- .../0.15.x/console-cli/examples/users/get.md | 2 - .../0.15.x/console-cli/examples/users/list.md | 7 --- .../examples/users/update-email.md | 3 -- .../console-cli/examples/users/update-name.md | 3 -- .../examples/users/update-password.md | 3 -- .../examples/users/update-prefs.md | 3 -- .../examples/users/update-status.md | 3 -- .../examples/users/update-verification.md | 3 -- .../account/create-anonymous-session.md | 14 ----- .../examples/account/create-j-w-t.md | 14 ----- .../account/create-magic-u-r-l-session.md | 14 ----- .../examples/account/create-o-auth2session.md | 10 ---- .../examples/account/create-recovery.md | 14 ----- .../examples/account/create-session.md | 14 ----- .../examples/account/create-verification.md | 14 ----- .../console-web/examples/account/create.md | 14 ----- .../examples/account/delete-session.md | 14 ----- .../examples/account/delete-sessions.md | 14 ----- .../console-web/examples/account/delete.md | 14 ----- .../console-web/examples/account/get-logs.md | 14 ----- .../console-web/examples/account/get-prefs.md | 14 ----- .../examples/account/get-session.md | 14 ----- .../examples/account/get-sessions.md | 14 ----- .../console-web/examples/account/get.md | 14 ----- .../examples/account/update-email.md | 14 ----- .../account/update-magic-u-r-l-session.md | 14 ----- .../examples/account/update-name.md | 14 ----- .../examples/account/update-o-auth2tokens.md | 14 ----- .../examples/account/update-password.md | 14 ----- .../examples/account/update-prefs.md | 14 ----- .../examples/account/update-recovery.md | 14 ----- .../examples/account/update-session.md | 14 ----- .../examples/account/update-status.md | 14 ----- .../examples/account/update-verification.md | 14 ----- .../examples/avatars/get-browser.md | 10 ---- .../examples/avatars/get-credit-card.md | 10 ---- .../examples/avatars/get-favicon.md | 10 ---- .../console-web/examples/avatars/get-flag.md | 10 ---- .../console-web/examples/avatars/get-image.md | 10 ---- .../examples/avatars/get-initials.md | 10 ---- .../console-web/examples/avatars/get-q-r.md | 10 ---- .../database/create-boolean-attribute.md | 14 ----- .../examples/database/create-collection.md | 14 ----- .../examples/database/create-document.md | 14 ----- .../database/create-email-attribute.md | 14 ----- .../database/create-enum-attribute.md | 14 ----- .../database/create-float-attribute.md | 14 ----- .../examples/database/create-index.md | 14 ----- .../database/create-integer-attribute.md | 14 ----- .../examples/database/create-ip-attribute.md | 14 ----- .../database/create-string-attribute.md | 14 ----- .../examples/database/create-url-attribute.md | 14 ----- .../examples/database/delete-attribute.md | 14 ----- .../examples/database/delete-collection.md | 14 ----- .../examples/database/delete-document.md | 14 ----- .../examples/database/delete-index.md | 14 ----- .../examples/database/get-attribute.md | 14 ----- .../examples/database/get-collection-usage.md | 14 ----- .../examples/database/get-collection.md | 14 ----- .../examples/database/get-document.md | 14 ----- .../examples/database/get-index.md | 14 ----- .../examples/database/get-usage.md | 14 ----- .../examples/database/list-attributes.md | 14 ----- .../examples/database/list-collection-logs.md | 14 ----- .../examples/database/list-collections.md | 14 ----- .../examples/database/list-document-logs.md | 14 ----- .../examples/database/list-documents.md | 14 ----- .../examples/database/list-indexes.md | 14 ----- .../examples/database/update-collection.md | 14 ----- .../examples/database/update-document.md | 14 ----- .../console-web/examples/functions/builds.md | 14 ----- .../examples/functions/create-deployment.md | 14 ----- .../examples/functions/create-execution.md | 14 ----- .../examples/functions/create-tag.md | 14 ----- .../console-web/examples/functions/create.md | 14 ----- .../examples/functions/delete-deployment.md | 14 ----- .../examples/functions/delete-tag.md | 14 ----- .../console-web/examples/functions/delete.md | 14 ----- .../examples/functions/get-build.md | 14 ----- .../examples/functions/get-deployment.md | 14 ----- .../examples/functions/get-execution.md | 14 ----- .../console-web/examples/functions/get-tag.md | 14 ----- .../examples/functions/get-usage.md | 14 ----- .../console-web/examples/functions/get.md | 14 ----- .../examples/functions/list-deployments.md | 14 ----- .../examples/functions/list-executions.md | 14 ----- .../examples/functions/list-runtimes.md | 14 ----- .../examples/functions/list-tags.md | 14 ----- .../console-web/examples/functions/list.md | 14 ----- .../examples/functions/retry-build.md | 14 ----- .../examples/functions/update-deployment.md | 14 ----- .../examples/functions/update-tag.md | 14 ----- .../console-web/examples/functions/update.md | 14 ----- .../examples/health/get-antivirus.md | 14 ----- .../console-web/examples/health/get-cache.md | 14 ----- .../console-web/examples/health/get-d-b.md | 14 ----- .../examples/health/get-queue-certificates.md | 14 ----- .../examples/health/get-queue-functions.md | 14 ----- .../examples/health/get-queue-logs.md | 14 ----- .../examples/health/get-queue-usage.md | 14 ----- .../examples/health/get-queue-webhooks.md | 14 ----- .../examples/health/get-storage-local.md | 14 ----- .../console-web/examples/health/get-time.md | 14 ----- .../0.15.x/console-web/examples/health/get.md | 14 ----- .../examples/locale/get-continents.md | 14 ----- .../examples/locale/get-countries-e-u.md | 14 ----- .../examples/locale/get-countries-phones.md | 14 ----- .../examples/locale/get-countries.md | 14 ----- .../examples/locale/get-currencies.md | 14 ----- .../examples/locale/get-languages.md | 14 ----- .../0.15.x/console-web/examples/locale/get.md | 14 ----- .../examples/projects/create-domain.md | 14 ----- .../examples/projects/create-key.md | 14 ----- .../examples/projects/create-platform.md | 14 ----- .../examples/projects/create-webhook.md | 14 ----- .../console-web/examples/projects/create.md | 14 ----- .../examples/projects/delete-domain.md | 14 ----- .../examples/projects/delete-key.md | 14 ----- .../examples/projects/delete-platform.md | 14 ----- .../examples/projects/delete-webhook.md | 14 ----- .../console-web/examples/projects/delete.md | 14 ----- .../examples/projects/get-domain.md | 14 ----- .../console-web/examples/projects/get-key.md | 14 ----- .../examples/projects/get-platform.md | 14 ----- .../examples/projects/get-usage.md | 14 ----- .../examples/projects/get-webhook.md | 14 ----- .../console-web/examples/projects/get.md | 14 ----- .../examples/projects/list-domains.md | 14 ----- .../examples/projects/list-keys.md | 14 ----- .../examples/projects/list-platforms.md | 14 ----- .../examples/projects/list-webhooks.md | 14 ----- .../console-web/examples/projects/list.md | 14 ----- .../examples/projects/update-auth-limit.md | 14 ----- .../examples/projects/update-auth-status.md | 14 ----- .../projects/update-domain-verification.md | 14 ----- .../examples/projects/update-key.md | 14 ----- .../examples/projects/update-o-auth2.md | 14 ----- .../examples/projects/update-platform.md | 14 ----- .../projects/update-service-status.md | 14 ----- .../examples/projects/update-webhook.md | 14 ----- .../console-web/examples/projects/update.md | 14 ----- .../examples/storage/create-bucket.md | 14 ----- .../examples/storage/create-file.md | 14 ----- .../examples/storage/delete-bucket.md | 14 ----- .../examples/storage/delete-file.md | 14 ----- .../examples/storage/get-bucket-usage.md | 14 ----- .../examples/storage/get-bucket.md | 14 ----- .../examples/storage/get-file-download.md | 10 ---- .../examples/storage/get-file-preview.md | 10 ---- .../examples/storage/get-file-view.md | 10 ---- .../console-web/examples/storage/get-file.md | 14 ----- .../console-web/examples/storage/get-usage.md | 14 ----- .../examples/storage/list-buckets.md | 14 ----- .../examples/storage/list-files.md | 14 ----- .../examples/storage/update-bucket.md | 14 ----- .../examples/storage/update-file.md | 14 ----- .../examples/teams/create-membership.md | 14 ----- .../console-web/examples/teams/create.md | 14 ----- .../examples/teams/delete-membership.md | 14 ----- .../console-web/examples/teams/delete.md | 14 ----- .../examples/teams/get-membership.md | 14 ----- .../examples/teams/get-memberships.md | 14 ----- .../0.15.x/console-web/examples/teams/get.md | 14 ----- .../console-web/examples/teams/list-logs.md | 14 ----- .../0.15.x/console-web/examples/teams/list.md | 14 ----- .../examples/teams/update-membership-roles.md | 14 ----- .../teams/update-membership-status.md | 14 ----- .../console-web/examples/teams/update.md | 14 ----- .../examples/users/create-argon2user.md | 14 ----- .../examples/users/create-bcrypt-user.md | 14 ----- .../examples/users/create-m-d5user.md | 14 ----- .../examples/users/create-p-h-pass-user.md | 14 ----- .../users/create-s-crypt-modified-user.md | 14 ----- .../examples/users/create-s-crypt-user.md | 14 ----- .../examples/users/create-s-h-a-user.md | 14 ----- .../console-web/examples/users/create.md | 14 ----- .../examples/users/delete-session.md | 14 ----- .../examples/users/delete-sessions.md | 14 ----- .../console-web/examples/users/delete.md | 14 ----- .../console-web/examples/users/get-logs.md | 14 ----- .../examples/users/get-memberships.md | 14 ----- .../console-web/examples/users/get-prefs.md | 14 ----- .../examples/users/get-sessions.md | 14 ----- .../console-web/examples/users/get-usage.md | 14 ----- .../0.15.x/console-web/examples/users/get.md | 14 ----- .../0.15.x/console-web/examples/users/list.md | 14 ----- .../examples/users/update-email.md | 14 ----- .../console-web/examples/users/update-name.md | 14 ----- .../examples/users/update-password.md | 14 ----- .../examples/users/update-prefs.md | 14 ----- .../examples/users/update-status.md | 14 ----- .../examples/users/update-verification.md | 14 ----- .../examples/account/create-recovery.md | 24 --------- .../examples/account/create-verification.md | 23 --------- .../examples/account/delete-session.md | 23 --------- .../examples/account/delete-sessions.md | 21 -------- .../server-dart/examples/account/delete.md | 21 -------- .../server-dart/examples/account/get-logs.md | 22 -------- .../server-dart/examples/account/get-prefs.md | 21 -------- .../examples/account/get-session.md | 23 --------- .../examples/account/get-sessions.md | 21 -------- .../server-dart/examples/account/get.md | 21 -------- .../examples/account/update-email.md | 24 --------- .../examples/account/update-name.md | 23 --------- .../examples/account/update-o-auth2tokens.md | 23 --------- .../examples/account/update-password.md | 23 --------- .../examples/account/update-prefs.md | 23 --------- .../examples/account/update-recovery.md | 26 ---------- .../examples/account/update-session.md | 23 --------- .../examples/account/update-status.md | 21 -------- .../examples/account/update-verification.md | 24 --------- .../examples/avatars/get-browser.md | 23 --------- .../examples/avatars/get-credit-card.md | 23 --------- .../examples/avatars/get-favicon.md | 23 --------- .../server-dart/examples/avatars/get-flag.md | 23 --------- .../server-dart/examples/avatars/get-image.md | 23 --------- .../examples/avatars/get-initials.md | 22 -------- .../server-dart/examples/avatars/get-q-r.md | 23 --------- .../database/create-boolean-attribute.md | 25 --------- .../examples/database/create-collection.md | 27 ---------- .../examples/database/create-document.md | 25 --------- .../database/create-email-attribute.md | 25 --------- .../database/create-enum-attribute.md | 26 ---------- .../database/create-float-attribute.md | 25 --------- .../examples/database/create-index.md | 26 ---------- .../database/create-integer-attribute.md | 25 --------- .../examples/database/create-ip-attribute.md | 25 --------- .../database/create-string-attribute.md | 26 ---------- .../examples/database/create-url-attribute.md | 25 --------- .../examples/database/delete-attribute.md | 24 --------- .../examples/database/delete-collection.md | 23 --------- .../examples/database/delete-document.md | 24 --------- .../examples/database/delete-index.md | 24 --------- .../examples/database/get-attribute.md | 24 --------- .../examples/database/get-collection.md | 23 --------- .../examples/database/get-document.md | 24 --------- .../examples/database/get-index.md | 24 --------- .../examples/database/list-attributes.md | 23 --------- .../examples/database/list-collections.md | 22 -------- .../examples/database/list-documents.md | 23 --------- .../examples/database/list-indexes.md | 23 --------- .../examples/database/update-collection.md | 25 --------- .../examples/database/update-document.md | 25 --------- .../server-dart/examples/functions/builds.md | 24 --------- .../examples/functions/create-deployment.md | 26 ---------- .../examples/functions/create-execution.md | 23 --------- .../examples/functions/create-tag.md | 25 --------- .../server-dart/examples/functions/create.md | 26 ---------- .../examples/functions/delete-deployment.md | 24 --------- .../examples/functions/delete-tag.md | 24 --------- .../server-dart/examples/functions/delete.md | 23 --------- .../examples/functions/get-build.md | 25 --------- .../examples/functions/get-deployment.md | 24 --------- .../examples/functions/get-execution.md | 24 --------- .../server-dart/examples/functions/get-tag.md | 24 --------- .../server-dart/examples/functions/get.md | 23 --------- .../examples/functions/list-deployments.md | 23 --------- .../examples/functions/list-executions.md | 23 --------- .../examples/functions/list-runtimes.md | 21 -------- .../examples/functions/list-tags.md | 23 --------- .../server-dart/examples/functions/list.md | 22 -------- .../examples/functions/retry-build.md | 25 --------- .../examples/functions/update-deployment.md | 24 --------- .../examples/functions/update-tag.md | 24 --------- .../server-dart/examples/functions/update.md | 25 --------- .../examples/health/get-antivirus.md | 21 -------- .../server-dart/examples/health/get-cache.md | 21 -------- .../server-dart/examples/health/get-d-b.md | 21 -------- .../examples/health/get-queue-certificates.md | 21 -------- .../examples/health/get-queue-functions.md | 21 -------- .../examples/health/get-queue-logs.md | 21 -------- .../examples/health/get-queue-usage.md | 21 -------- .../examples/health/get-queue-webhooks.md | 21 -------- .../examples/health/get-storage-local.md | 21 -------- .../server-dart/examples/health/get-time.md | 21 -------- .../0.15.x/server-dart/examples/health/get.md | 21 -------- .../examples/locale/get-continents.md | 21 -------- .../examples/locale/get-countries-e-u.md | 21 -------- .../examples/locale/get-countries-phones.md | 21 -------- .../examples/locale/get-countries.md | 21 -------- .../examples/locale/get-currencies.md | 21 -------- .../examples/locale/get-languages.md | 21 -------- .../0.15.x/server-dart/examples/locale/get.md | 21 -------- .../examples/storage/create-bucket.md | 25 --------- .../examples/storage/create-file.md | 26 ---------- .../examples/storage/delete-bucket.md | 23 --------- .../examples/storage/delete-file.md | 24 --------- .../examples/storage/get-bucket.md | 23 --------- .../examples/storage/get-file-download.md | 24 --------- .../examples/storage/get-file-preview.md | 24 --------- .../examples/storage/get-file-view.md | 24 --------- .../server-dart/examples/storage/get-file.md | 24 --------- .../examples/storage/list-buckets.md | 22 -------- .../examples/storage/list-files.md | 23 --------- .../examples/storage/update-bucket.md | 25 --------- .../examples/storage/update-file.md | 24 --------- .../examples/teams/create-membership.md | 26 ---------- .../server-dart/examples/teams/create.md | 24 --------- .../examples/teams/delete-membership.md | 24 --------- .../server-dart/examples/teams/delete.md | 23 --------- .../examples/teams/get-membership.md | 24 --------- .../examples/teams/get-memberships.md | 23 --------- .../0.15.x/server-dart/examples/teams/get.md | 23 --------- .../0.15.x/server-dart/examples/teams/list.md | 22 -------- .../examples/teams/update-membership-roles.md | 25 --------- .../teams/update-membership-status.md | 26 ---------- .../server-dart/examples/teams/update.md | 24 --------- .../examples/users/create-argon2user.md | 25 --------- .../examples/users/create-bcrypt-user.md | 25 --------- .../examples/users/create-m-d5user.md | 25 --------- .../examples/users/create-p-h-pass-user.md | 25 --------- .../users/create-s-crypt-modified-user.md | 28 ---------- .../examples/users/create-s-crypt-user.md | 25 --------- .../examples/users/create-s-h-a-user.md | 25 --------- .../server-dart/examples/users/create.md | 25 --------- .../examples/users/delete-session.md | 24 --------- .../examples/users/delete-sessions.md | 23 --------- .../server-dart/examples/users/delete.md | 23 --------- .../server-dart/examples/users/get-logs.md | 23 --------- .../examples/users/get-memberships.md | 23 --------- .../server-dart/examples/users/get-prefs.md | 23 --------- .../examples/users/get-sessions.md | 23 --------- .../0.15.x/server-dart/examples/users/get.md | 23 --------- .../0.15.x/server-dart/examples/users/list.md | 22 -------- .../examples/users/update-email.md | 24 --------- .../server-dart/examples/users/update-name.md | 24 --------- .../examples/users/update-password.md | 24 --------- .../examples/users/update-prefs.md | 24 --------- .../examples/users/update-status.md | 24 --------- .../examples/users/update-verification.md | 24 --------- .../examples/account/create-recovery.md | 21 -------- .../examples/account/create-verification.md | 21 -------- .../examples/account/delete-session.md | 21 -------- .../examples/account/delete-sessions.md | 21 -------- .../server-deno/examples/account/delete.md | 21 -------- .../server-deno/examples/account/get-logs.md | 21 -------- .../server-deno/examples/account/get-prefs.md | 21 -------- .../examples/account/get-session.md | 21 -------- .../examples/account/get-sessions.md | 21 -------- .../server-deno/examples/account/get.md | 21 -------- .../examples/account/update-email.md | 21 -------- .../examples/account/update-name.md | 21 -------- .../examples/account/update-o-auth2tokens.md | 21 -------- .../examples/account/update-password.md | 21 -------- .../examples/account/update-prefs.md | 21 -------- .../examples/account/update-recovery.md | 21 -------- .../examples/account/update-session.md | 21 -------- .../examples/account/update-status.md | 21 -------- .../examples/account/update-verification.md | 21 -------- .../examples/avatars/get-browser.md | 21 -------- .../examples/avatars/get-credit-card.md | 21 -------- .../examples/avatars/get-favicon.md | 21 -------- .../server-deno/examples/avatars/get-flag.md | 21 -------- .../server-deno/examples/avatars/get-image.md | 21 -------- .../examples/avatars/get-initials.md | 21 -------- .../server-deno/examples/avatars/get-q-r.md | 21 -------- .../database/create-boolean-attribute.md | 21 -------- .../examples/database/create-collection.md | 21 -------- .../examples/database/create-document.md | 21 -------- .../database/create-email-attribute.md | 21 -------- .../database/create-enum-attribute.md | 21 -------- .../database/create-float-attribute.md | 21 -------- .../examples/database/create-index.md | 21 -------- .../database/create-integer-attribute.md | 21 -------- .../examples/database/create-ip-attribute.md | 21 -------- .../database/create-string-attribute.md | 21 -------- .../examples/database/create-url-attribute.md | 21 -------- .../examples/database/delete-attribute.md | 21 -------- .../examples/database/delete-collection.md | 21 -------- .../examples/database/delete-document.md | 21 -------- .../examples/database/delete-index.md | 21 -------- .../examples/database/get-attribute.md | 21 -------- .../examples/database/get-collection.md | 21 -------- .../examples/database/get-document.md | 21 -------- .../examples/database/get-index.md | 21 -------- .../examples/database/list-attributes.md | 21 -------- .../examples/database/list-collections.md | 21 -------- .../examples/database/list-documents.md | 21 -------- .../examples/database/list-indexes.md | 21 -------- .../examples/database/update-collection.md | 21 -------- .../examples/database/update-document.md | 21 -------- .../server-deno/examples/functions/builds.md | 21 -------- .../examples/functions/create-deployment.md | 21 -------- .../examples/functions/create-execution.md | 21 -------- .../examples/functions/create-tag.md | 21 -------- .../server-deno/examples/functions/create.md | 21 -------- .../examples/functions/delete-deployment.md | 21 -------- .../examples/functions/delete-tag.md | 21 -------- .../server-deno/examples/functions/delete.md | 21 -------- .../examples/functions/get-build.md | 21 -------- .../examples/functions/get-deployment.md | 21 -------- .../examples/functions/get-execution.md | 21 -------- .../server-deno/examples/functions/get-tag.md | 21 -------- .../server-deno/examples/functions/get.md | 21 -------- .../examples/functions/list-deployments.md | 21 -------- .../examples/functions/list-executions.md | 21 -------- .../examples/functions/list-runtimes.md | 21 -------- .../examples/functions/list-tags.md | 21 -------- .../server-deno/examples/functions/list.md | 21 -------- .../examples/functions/retry-build.md | 21 -------- .../examples/functions/update-deployment.md | 21 -------- .../examples/functions/update-tag.md | 21 -------- .../server-deno/examples/functions/update.md | 21 -------- .../examples/health/get-antivirus.md | 21 -------- .../server-deno/examples/health/get-cache.md | 21 -------- .../server-deno/examples/health/get-d-b.md | 21 -------- .../examples/health/get-queue-certificates.md | 21 -------- .../examples/health/get-queue-functions.md | 21 -------- .../examples/health/get-queue-logs.md | 21 -------- .../examples/health/get-queue-usage.md | 21 -------- .../examples/health/get-queue-webhooks.md | 21 -------- .../examples/health/get-storage-local.md | 21 -------- .../server-deno/examples/health/get-time.md | 21 -------- .../0.15.x/server-deno/examples/health/get.md | 21 -------- .../examples/locale/get-continents.md | 21 -------- .../examples/locale/get-countries-e-u.md | 21 -------- .../examples/locale/get-countries-phones.md | 21 -------- .../examples/locale/get-countries.md | 21 -------- .../examples/locale/get-currencies.md | 21 -------- .../examples/locale/get-languages.md | 21 -------- .../0.15.x/server-deno/examples/locale/get.md | 21 -------- .../examples/storage/create-bucket.md | 21 -------- .../examples/storage/create-file.md | 21 -------- .../examples/storage/delete-bucket.md | 21 -------- .../examples/storage/delete-file.md | 21 -------- .../examples/storage/get-bucket.md | 21 -------- .../examples/storage/get-file-download.md | 21 -------- .../examples/storage/get-file-preview.md | 21 -------- .../examples/storage/get-file-view.md | 21 -------- .../server-deno/examples/storage/get-file.md | 21 -------- .../examples/storage/list-buckets.md | 21 -------- .../examples/storage/list-files.md | 21 -------- .../examples/storage/update-bucket.md | 21 -------- .../examples/storage/update-file.md | 21 -------- .../examples/teams/create-membership.md | 21 -------- .../server-deno/examples/teams/create.md | 21 -------- .../examples/teams/delete-membership.md | 21 -------- .../server-deno/examples/teams/delete.md | 21 -------- .../examples/teams/get-membership.md | 21 -------- .../examples/teams/get-memberships.md | 21 -------- .../0.15.x/server-deno/examples/teams/get.md | 21 -------- .../0.15.x/server-deno/examples/teams/list.md | 21 -------- .../examples/teams/update-membership-roles.md | 21 -------- .../teams/update-membership-status.md | 21 -------- .../server-deno/examples/teams/update.md | 21 -------- .../examples/users/create-argon2user.md | 21 -------- .../examples/users/create-bcrypt-user.md | 21 -------- .../examples/users/create-m-d5user.md | 21 -------- .../examples/users/create-p-h-pass-user.md | 21 -------- .../users/create-s-crypt-modified-user.md | 21 -------- .../examples/users/create-s-crypt-user.md | 21 -------- .../examples/users/create-s-h-a-user.md | 21 -------- .../server-deno/examples/users/create.md | 21 -------- .../examples/users/delete-session.md | 21 -------- .../examples/users/delete-sessions.md | 21 -------- .../server-deno/examples/users/delete.md | 21 -------- .../server-deno/examples/users/get-logs.md | 21 -------- .../examples/users/get-memberships.md | 21 -------- .../server-deno/examples/users/get-prefs.md | 21 -------- .../examples/users/get-sessions.md | 21 -------- .../0.15.x/server-deno/examples/users/get.md | 21 -------- .../0.15.x/server-deno/examples/users/list.md | 21 -------- .../examples/users/update-email.md | 21 -------- .../server-deno/examples/users/update-name.md | 21 -------- .../examples/users/update-password.md | 21 -------- .../examples/users/update-prefs.md | 21 -------- .../examples/users/update-status.md | 21 -------- .../examples/users/update-verification.md | 21 -------- .../java/account/create-recovery.md | 37 -------------- .../java/account/create-verification.md | 36 ------------- .../java/account/delete-session.md | 36 ------------- .../java/account/delete-sessions.md | 33 ------------ .../server-kotlin/java/account/delete.md | 33 ------------ .../server-kotlin/java/account/get-logs.md | 35 ------------- .../server-kotlin/java/account/get-prefs.md | 33 ------------ .../server-kotlin/java/account/get-session.md | 36 ------------- .../java/account/get-sessions.md | 33 ------------ .../0.15.x/server-kotlin/java/account/get.md | 33 ------------ .../java/account/update-email.md | 37 -------------- .../server-kotlin/java/account/update-name.md | 36 ------------- .../java/account/update-o-auth2tokens.md | 36 ------------- .../java/account/update-password.md | 36 ------------- .../java/account/update-prefs.md | 36 ------------- .../java/account/update-recovery.md | 39 -------------- .../java/account/update-session.md | 36 ------------- .../java/account/update-status.md | 33 ------------ .../java/account/update-verification.md | 37 -------------- .../server-kotlin/java/avatars/get-browser.md | 36 ------------- .../java/avatars/get-credit-card.md | 36 ------------- .../server-kotlin/java/avatars/get-favicon.md | 36 ------------- .../server-kotlin/java/avatars/get-flag.md | 36 ------------- .../server-kotlin/java/avatars/get-image.md | 36 ------------- .../java/avatars/get-initials.md | 35 ------------- .../server-kotlin/java/avatars/get-q-r.md | 36 ------------- .../java/database/create-boolean-attribute.md | 38 -------------- .../java/database/create-collection.md | 40 --------------- .../java/database/create-document.md | 38 -------------- .../java/database/create-email-attribute.md | 38 -------------- .../java/database/create-enum-attribute.md | 39 -------------- .../java/database/create-float-attribute.md | 38 -------------- .../java/database/create-index.md | 39 -------------- .../java/database/create-integer-attribute.md | 38 -------------- .../java/database/create-ip-attribute.md | 38 -------------- .../java/database/create-string-attribute.md | 39 -------------- .../java/database/create-url-attribute.md | 38 -------------- .../java/database/delete-attribute.md | 37 -------------- .../java/database/delete-collection.md | 36 ------------- .../java/database/delete-document.md | 37 -------------- .../java/database/delete-index.md | 37 -------------- .../java/database/get-attribute.md | 37 -------------- .../java/database/get-collection.md | 36 ------------- .../java/database/get-document.md | 37 -------------- .../server-kotlin/java/database/get-index.md | 37 -------------- .../java/database/list-attributes.md | 36 ------------- .../java/database/list-collections.md | 35 ------------- .../java/database/list-documents.md | 36 ------------- .../java/database/list-indexes.md | 36 ------------- .../java/database/update-collection.md | 38 -------------- .../java/database/update-document.md | 38 -------------- .../server-kotlin/java/functions/builds.md | 37 -------------- .../java/functions/create-deployment.md | 39 -------------- .../java/functions/create-execution.md | 36 ------------- .../java/functions/create-tag.md | 38 -------------- .../server-kotlin/java/functions/create.md | 39 -------------- .../java/functions/delete-deployment.md | 37 -------------- .../java/functions/delete-tag.md | 37 -------------- .../server-kotlin/java/functions/delete.md | 36 ------------- .../server-kotlin/java/functions/get-build.md | 38 -------------- .../java/functions/get-deployment.md | 37 -------------- .../java/functions/get-execution.md | 37 -------------- .../server-kotlin/java/functions/get-tag.md | 37 -------------- .../server-kotlin/java/functions/get.md | 36 ------------- .../java/functions/list-deployments.md | 36 ------------- .../java/functions/list-executions.md | 36 ------------- .../java/functions/list-runtimes.md | 33 ------------ .../server-kotlin/java/functions/list-tags.md | 36 ------------- .../server-kotlin/java/functions/list.md | 35 ------------- .../java/functions/retry-build.md | 38 -------------- .../java/functions/update-deployment.md | 37 -------------- .../java/functions/update-tag.md | 37 -------------- .../server-kotlin/java/functions/update.md | 38 -------------- .../java/health/get-antivirus.md | 33 ------------ .../server-kotlin/java/health/get-cache.md | 33 ------------ .../server-kotlin/java/health/get-d-b.md | 33 ------------ .../java/health/get-queue-certificates.md | 33 ------------ .../java/health/get-queue-functions.md | 33 ------------ .../java/health/get-queue-logs.md | 33 ------------ .../java/health/get-queue-usage.md | 33 ------------ .../java/health/get-queue-webhooks.md | 33 ------------ .../java/health/get-storage-local.md | 33 ------------ .../server-kotlin/java/health/get-time.md | 33 ------------ .../0.15.x/server-kotlin/java/health/get.md | 33 ------------ .../java/locale/get-continents.md | 33 ------------ .../java/locale/get-countries-e-u.md | 33 ------------ .../java/locale/get-countries-phones.md | 33 ------------ .../java/locale/get-countries.md | 33 ------------ .../java/locale/get-currencies.md | 33 ------------ .../java/locale/get-languages.md | 33 ------------ .../0.15.x/server-kotlin/java/locale/get.md | 33 ------------ .../java/storage/create-bucket.md | 38 -------------- .../server-kotlin/java/storage/create-file.md | 38 -------------- .../java/storage/delete-bucket.md | 36 ------------- .../server-kotlin/java/storage/delete-file.md | 37 -------------- .../server-kotlin/java/storage/get-bucket.md | 36 ------------- .../java/storage/get-file-download.md | 37 -------------- .../java/storage/get-file-preview.md | 37 -------------- .../java/storage/get-file-view.md | 37 -------------- .../server-kotlin/java/storage/get-file.md | 37 -------------- .../java/storage/list-buckets.md | 35 ------------- .../server-kotlin/java/storage/list-files.md | 36 ------------- .../java/storage/update-bucket.md | 38 -------------- .../server-kotlin/java/storage/update-file.md | 37 -------------- .../java/teams/create-membership.md | 39 -------------- .../0.15.x/server-kotlin/java/teams/create.md | 37 -------------- .../java/teams/delete-membership.md | 37 -------------- .../0.15.x/server-kotlin/java/teams/delete.md | 36 ------------- .../java/teams/get-membership.md | 37 -------------- .../java/teams/get-memberships.md | 36 ------------- .../0.15.x/server-kotlin/java/teams/get.md | 36 ------------- .../0.15.x/server-kotlin/java/teams/list.md | 35 ------------- .../java/teams/update-membership-roles.md | 38 -------------- .../java/teams/update-membership-status.md | 39 -------------- .../0.15.x/server-kotlin/java/teams/update.md | 37 -------------- .../java/users/create-argon2user.md | 38 -------------- .../java/users/create-bcrypt-user.md | 38 -------------- .../java/users/create-m-d5user.md | 38 -------------- .../java/users/create-p-h-pass-user.md | 38 -------------- .../users/create-s-crypt-modified-user.md | 41 --------------- .../java/users/create-s-crypt-user.md | 38 -------------- .../java/users/create-s-h-a-user.md | 38 -------------- .../0.15.x/server-kotlin/java/users/create.md | 38 -------------- .../java/users/delete-session.md | 37 -------------- .../java/users/delete-sessions.md | 36 ------------- .../0.15.x/server-kotlin/java/users/delete.md | 36 ------------- .../server-kotlin/java/users/get-logs.md | 36 ------------- .../java/users/get-memberships.md | 36 ------------- .../server-kotlin/java/users/get-prefs.md | 36 ------------- .../server-kotlin/java/users/get-sessions.md | 36 ------------- .../0.15.x/server-kotlin/java/users/get.md | 36 ------------- .../0.15.x/server-kotlin/java/users/list.md | 35 ------------- .../server-kotlin/java/users/update-email.md | 37 -------------- .../server-kotlin/java/users/update-name.md | 37 -------------- .../java/users/update-password.md | 37 -------------- .../server-kotlin/java/users/update-prefs.md | 37 -------------- .../server-kotlin/java/users/update-status.md | 37 -------------- .../java/users/update-verification.md | 37 -------------- .../kotlin/account/create-recovery.md | 16 ------ .../kotlin/account/create-verification.md | 15 ------ .../kotlin/account/delete-session.md | 15 ------ .../kotlin/account/delete-sessions.md | 13 ----- .../server-kotlin/kotlin/account/delete.md | 13 ----- .../server-kotlin/kotlin/account/get-logs.md | 14 ----- .../server-kotlin/kotlin/account/get-prefs.md | 13 ----- .../kotlin/account/get-session.md | 15 ------ .../kotlin/account/get-sessions.md | 13 ----- .../server-kotlin/kotlin/account/get.md | 13 ----- .../kotlin/account/update-email.md | 16 ------ .../kotlin/account/update-name.md | 15 ------ .../kotlin/account/update-o-auth2tokens.md | 15 ------ .../kotlin/account/update-password.md | 15 ------ .../kotlin/account/update-prefs.md | 15 ------ .../kotlin/account/update-recovery.md | 18 ------- .../kotlin/account/update-session.md | 15 ------ .../kotlin/account/update-status.md | 13 ----- .../kotlin/account/update-verification.md | 16 ------ .../kotlin/avatars/get-browser.md | 15 ------ .../kotlin/avatars/get-credit-card.md | 15 ------ .../kotlin/avatars/get-favicon.md | 15 ------ .../server-kotlin/kotlin/avatars/get-flag.md | 15 ------ .../server-kotlin/kotlin/avatars/get-image.md | 15 ------ .../kotlin/avatars/get-initials.md | 14 ----- .../server-kotlin/kotlin/avatars/get-q-r.md | 15 ------ .../database/create-boolean-attribute.md | 17 ------- .../kotlin/database/create-collection.md | 19 ------- .../kotlin/database/create-document.md | 17 ------- .../kotlin/database/create-email-attribute.md | 17 ------- .../kotlin/database/create-enum-attribute.md | 18 ------- .../kotlin/database/create-float-attribute.md | 17 ------- .../kotlin/database/create-index.md | 18 ------- .../database/create-integer-attribute.md | 17 ------- .../kotlin/database/create-ip-attribute.md | 17 ------- .../database/create-string-attribute.md | 18 ------- .../kotlin/database/create-url-attribute.md | 17 ------- .../kotlin/database/delete-attribute.md | 16 ------ .../kotlin/database/delete-collection.md | 15 ------ .../kotlin/database/delete-document.md | 16 ------ .../kotlin/database/delete-index.md | 16 ------ .../kotlin/database/get-attribute.md | 16 ------ .../kotlin/database/get-collection.md | 15 ------ .../kotlin/database/get-document.md | 16 ------ .../kotlin/database/get-index.md | 16 ------ .../kotlin/database/list-attributes.md | 15 ------ .../kotlin/database/list-collections.md | 14 ----- .../kotlin/database/list-documents.md | 15 ------ .../kotlin/database/list-indexes.md | 15 ------ .../kotlin/database/update-collection.md | 17 ------- .../kotlin/database/update-document.md | 17 ------- .../server-kotlin/kotlin/functions/builds.md | 16 ------ .../kotlin/functions/create-deployment.md | 18 ------- .../kotlin/functions/create-execution.md | 15 ------ .../kotlin/functions/create-tag.md | 17 ------- .../server-kotlin/kotlin/functions/create.md | 18 ------- .../kotlin/functions/delete-deployment.md | 16 ------ .../kotlin/functions/delete-tag.md | 16 ------ .../server-kotlin/kotlin/functions/delete.md | 15 ------ .../kotlin/functions/get-build.md | 17 ------- .../kotlin/functions/get-deployment.md | 16 ------ .../kotlin/functions/get-execution.md | 16 ------ .../server-kotlin/kotlin/functions/get-tag.md | 16 ------ .../server-kotlin/kotlin/functions/get.md | 15 ------ .../kotlin/functions/list-deployments.md | 15 ------ .../kotlin/functions/list-executions.md | 15 ------ .../kotlin/functions/list-runtimes.md | 13 ----- .../kotlin/functions/list-tags.md | 15 ------ .../server-kotlin/kotlin/functions/list.md | 14 ----- .../kotlin/functions/retry-build.md | 17 ------- .../kotlin/functions/update-deployment.md | 16 ------ .../kotlin/functions/update-tag.md | 16 ------ .../server-kotlin/kotlin/functions/update.md | 17 ------- .../kotlin/health/get-antivirus.md | 13 ----- .../server-kotlin/kotlin/health/get-cache.md | 13 ----- .../server-kotlin/kotlin/health/get-d-b.md | 13 ----- .../kotlin/health/get-queue-certificates.md | 13 ----- .../kotlin/health/get-queue-functions.md | 13 ----- .../kotlin/health/get-queue-logs.md | 13 ----- .../kotlin/health/get-queue-usage.md | 13 ----- .../kotlin/health/get-queue-webhooks.md | 13 ----- .../kotlin/health/get-storage-local.md | 13 ----- .../server-kotlin/kotlin/health/get-time.md | 13 ----- .../0.15.x/server-kotlin/kotlin/health/get.md | 13 ----- .../kotlin/locale/get-continents.md | 13 ----- .../kotlin/locale/get-countries-e-u.md | 13 ----- .../kotlin/locale/get-countries-phones.md | 13 ----- .../kotlin/locale/get-countries.md | 13 ----- .../kotlin/locale/get-currencies.md | 13 ----- .../kotlin/locale/get-languages.md | 13 ----- .../0.15.x/server-kotlin/kotlin/locale/get.md | 13 ----- .../kotlin/storage/create-bucket.md | 17 ------- .../kotlin/storage/create-file.md | 17 ------- .../kotlin/storage/delete-bucket.md | 15 ------ .../kotlin/storage/delete-file.md | 16 ------ .../kotlin/storage/get-bucket.md | 15 ------ .../kotlin/storage/get-file-download.md | 16 ------ .../kotlin/storage/get-file-preview.md | 16 ------ .../kotlin/storage/get-file-view.md | 16 ------ .../server-kotlin/kotlin/storage/get-file.md | 16 ------ .../kotlin/storage/list-buckets.md | 14 ----- .../kotlin/storage/list-files.md | 15 ------ .../kotlin/storage/update-bucket.md | 17 ------- .../kotlin/storage/update-file.md | 16 ------ .../kotlin/teams/create-membership.md | 18 ------- .../server-kotlin/kotlin/teams/create.md | 16 ------ .../kotlin/teams/delete-membership.md | 16 ------ .../server-kotlin/kotlin/teams/delete.md | 15 ------ .../kotlin/teams/get-membership.md | 16 ------ .../kotlin/teams/get-memberships.md | 15 ------ .../0.15.x/server-kotlin/kotlin/teams/get.md | 15 ------ .../0.15.x/server-kotlin/kotlin/teams/list.md | 14 ----- .../kotlin/teams/update-membership-roles.md | 17 ------- .../kotlin/teams/update-membership-status.md | 18 ------- .../server-kotlin/kotlin/teams/update.md | 16 ------ .../kotlin/users/create-argon2user.md | 17 ------- .../kotlin/users/create-bcrypt-user.md | 17 ------- .../kotlin/users/create-m-d5user.md | 17 ------- .../kotlin/users/create-p-h-pass-user.md | 17 ------- .../users/create-s-crypt-modified-user.md | 20 -------- .../kotlin/users/create-s-crypt-user.md | 17 ------- .../kotlin/users/create-s-h-a-user.md | 17 ------- .../server-kotlin/kotlin/users/create.md | 17 ------- .../kotlin/users/delete-session.md | 16 ------ .../kotlin/users/delete-sessions.md | 15 ------ .../server-kotlin/kotlin/users/delete.md | 15 ------ .../server-kotlin/kotlin/users/get-logs.md | 15 ------ .../kotlin/users/get-memberships.md | 15 ------ .../server-kotlin/kotlin/users/get-prefs.md | 15 ------ .../kotlin/users/get-sessions.md | 15 ------ .../0.15.x/server-kotlin/kotlin/users/get.md | 15 ------ .../0.15.x/server-kotlin/kotlin/users/list.md | 14 ----- .../kotlin/users/update-email.md | 16 ------ .../server-kotlin/kotlin/users/update-name.md | 16 ------ .../kotlin/users/update-password.md | 16 ------ .../kotlin/users/update-prefs.md | 16 ------ .../kotlin/users/update-status.md | 16 ------ .../kotlin/users/update-verification.md | 16 ------ .../examples/account/create-recovery.md | 20 -------- .../examples/account/create-verification.md | 20 -------- .../examples/account/delete-session.md | 20 -------- .../examples/account/delete-sessions.md | 20 -------- .../server-nodejs/examples/account/delete.md | 20 -------- .../examples/account/get-logs.md | 20 -------- .../examples/account/get-prefs.md | 20 -------- .../examples/account/get-session.md | 20 -------- .../examples/account/get-sessions.md | 20 -------- .../server-nodejs/examples/account/get.md | 20 -------- .../examples/account/update-email.md | 20 -------- .../examples/account/update-name.md | 20 -------- .../examples/account/update-o-auth2tokens.md | 20 -------- .../examples/account/update-password.md | 20 -------- .../examples/account/update-prefs.md | 20 -------- .../examples/account/update-recovery.md | 20 -------- .../examples/account/update-session.md | 20 -------- .../examples/account/update-status.md | 20 -------- .../examples/account/update-verification.md | 20 -------- .../examples/avatars/get-browser.md | 20 -------- .../examples/avatars/get-credit-card.md | 20 -------- .../examples/avatars/get-favicon.md | 20 -------- .../examples/avatars/get-flag.md | 20 -------- .../examples/avatars/get-image.md | 20 -------- .../examples/avatars/get-initials.md | 20 -------- .../server-nodejs/examples/avatars/get-q-r.md | 20 -------- .../database/create-boolean-attribute.md | 20 -------- .../examples/database/create-collection.md | 20 -------- .../examples/database/create-document.md | 20 -------- .../database/create-email-attribute.md | 20 -------- .../database/create-enum-attribute.md | 20 -------- .../database/create-float-attribute.md | 20 -------- .../examples/database/create-index.md | 20 -------- .../database/create-integer-attribute.md | 20 -------- .../examples/database/create-ip-attribute.md | 20 -------- .../database/create-string-attribute.md | 20 -------- .../examples/database/create-url-attribute.md | 20 -------- .../examples/database/delete-attribute.md | 20 -------- .../examples/database/delete-collection.md | 20 -------- .../examples/database/delete-document.md | 20 -------- .../examples/database/delete-index.md | 20 -------- .../examples/database/get-attribute.md | 20 -------- .../examples/database/get-collection.md | 20 -------- .../examples/database/get-document.md | 20 -------- .../examples/database/get-index.md | 20 -------- .../examples/database/list-attributes.md | 20 -------- .../examples/database/list-collections.md | 20 -------- .../examples/database/list-documents.md | 20 -------- .../examples/database/list-indexes.md | 20 -------- .../examples/database/update-collection.md | 20 -------- .../examples/database/update-document.md | 20 -------- .../examples/functions/builds.md | 20 -------- .../examples/functions/create-deployment.md | 21 -------- .../examples/functions/create-execution.md | 20 -------- .../examples/functions/create-tag.md | 21 -------- .../examples/functions/create.md | 20 -------- .../examples/functions/delete-deployment.md | 20 -------- .../examples/functions/delete-tag.md | 20 -------- .../examples/functions/delete.md | 20 -------- .../examples/functions/get-build.md | 20 -------- .../examples/functions/get-deployment.md | 20 -------- .../examples/functions/get-execution.md | 20 -------- .../examples/functions/get-tag.md | 20 -------- .../server-nodejs/examples/functions/get.md | 20 -------- .../examples/functions/list-deployments.md | 20 -------- .../examples/functions/list-executions.md | 20 -------- .../examples/functions/list-runtimes.md | 20 -------- .../examples/functions/list-tags.md | 20 -------- .../server-nodejs/examples/functions/list.md | 20 -------- .../examples/functions/retry-build.md | 20 -------- .../examples/functions/update-deployment.md | 20 -------- .../examples/functions/update-tag.md | 20 -------- .../examples/functions/update.md | 20 -------- .../examples/health/get-antivirus.md | 20 -------- .../examples/health/get-cache.md | 20 -------- .../server-nodejs/examples/health/get-d-b.md | 20 -------- .../examples/health/get-queue-certificates.md | 20 -------- .../examples/health/get-queue-functions.md | 20 -------- .../examples/health/get-queue-logs.md | 20 -------- .../examples/health/get-queue-usage.md | 20 -------- .../examples/health/get-queue-webhooks.md | 20 -------- .../examples/health/get-storage-local.md | 20 -------- .../server-nodejs/examples/health/get-time.md | 20 -------- .../server-nodejs/examples/health/get.md | 20 -------- .../examples/locale/get-continents.md | 20 -------- .../examples/locale/get-countries-e-u.md | 20 -------- .../examples/locale/get-countries-phones.md | 20 -------- .../examples/locale/get-countries.md | 20 -------- .../examples/locale/get-currencies.md | 20 -------- .../examples/locale/get-languages.md | 20 -------- .../server-nodejs/examples/locale/get.md | 20 -------- .../examples/storage/create-bucket.md | 20 -------- .../examples/storage/create-file.md | 21 -------- .../examples/storage/delete-bucket.md | 20 -------- .../examples/storage/delete-file.md | 20 -------- .../examples/storage/get-bucket.md | 20 -------- .../examples/storage/get-file-download.md | 20 -------- .../examples/storage/get-file-preview.md | 20 -------- .../examples/storage/get-file-view.md | 20 -------- .../examples/storage/get-file.md | 20 -------- .../examples/storage/list-buckets.md | 20 -------- .../examples/storage/list-files.md | 20 -------- .../examples/storage/update-bucket.md | 20 -------- .../examples/storage/update-file.md | 20 -------- .../examples/teams/create-membership.md | 20 -------- .../server-nodejs/examples/teams/create.md | 20 -------- .../examples/teams/delete-membership.md | 20 -------- .../server-nodejs/examples/teams/delete.md | 20 -------- .../examples/teams/get-membership.md | 20 -------- .../examples/teams/get-memberships.md | 20 -------- .../server-nodejs/examples/teams/get.md | 20 -------- .../server-nodejs/examples/teams/list.md | 20 -------- .../examples/teams/update-membership-roles.md | 20 -------- .../teams/update-membership-status.md | 20 -------- .../server-nodejs/examples/teams/update.md | 20 -------- .../examples/users/create-argon2user.md | 20 -------- .../examples/users/create-bcrypt-user.md | 20 -------- .../examples/users/create-m-d5user.md | 20 -------- .../examples/users/create-p-h-pass-user.md | 20 -------- .../users/create-s-crypt-modified-user.md | 20 -------- .../examples/users/create-s-crypt-user.md | 20 -------- .../examples/users/create-s-h-a-user.md | 20 -------- .../server-nodejs/examples/users/create.md | 20 -------- .../examples/users/delete-session.md | 20 -------- .../examples/users/delete-sessions.md | 20 -------- .../server-nodejs/examples/users/delete.md | 20 -------- .../server-nodejs/examples/users/get-logs.md | 20 -------- .../examples/users/get-memberships.md | 20 -------- .../server-nodejs/examples/users/get-prefs.md | 20 -------- .../examples/users/get-sessions.md | 20 -------- .../server-nodejs/examples/users/get.md | 20 -------- .../server-nodejs/examples/users/list.md | 20 -------- .../examples/users/update-email.md | 20 -------- .../examples/users/update-name.md | 20 -------- .../examples/users/update-password.md | 20 -------- .../examples/users/update-prefs.md | 20 -------- .../examples/users/update-status.md | 20 -------- .../examples/users/update-verification.md | 20 -------- .../examples/account/create-recovery.md | 16 ------ .../examples/account/create-verification.md | 16 ------ .../examples/account/delete-session.md | 16 ------ .../examples/account/delete-sessions.md | 16 ------ .../server-php/examples/account/delete.md | 16 ------ .../server-php/examples/account/get-logs.md | 16 ------ .../server-php/examples/account/get-prefs.md | 16 ------ .../examples/account/get-session.md | 16 ------ .../examples/account/get-sessions.md | 16 ------ .../0.15.x/server-php/examples/account/get.md | 16 ------ .../examples/account/update-email.md | 16 ------ .../examples/account/update-name.md | 16 ------ .../examples/account/update-o-auth2tokens.md | 16 ------ .../examples/account/update-password.md | 16 ------ .../examples/account/update-prefs.md | 16 ------ .../examples/account/update-recovery.md | 16 ------ .../examples/account/update-session.md | 16 ------ .../examples/account/update-status.md | 16 ------ .../examples/account/update-verification.md | 16 ------ .../examples/avatars/get-browser.md | 16 ------ .../examples/avatars/get-credit-card.md | 16 ------ .../examples/avatars/get-favicon.md | 16 ------ .../server-php/examples/avatars/get-flag.md | 16 ------ .../server-php/examples/avatars/get-image.md | 16 ------ .../examples/avatars/get-initials.md | 16 ------ .../server-php/examples/avatars/get-q-r.md | 16 ------ .../database/create-boolean-attribute.md | 16 ------ .../examples/database/create-collection.md | 16 ------ .../examples/database/create-document.md | 16 ------ .../database/create-email-attribute.md | 16 ------ .../database/create-enum-attribute.md | 16 ------ .../database/create-float-attribute.md | 16 ------ .../examples/database/create-index.md | 16 ------ .../database/create-integer-attribute.md | 16 ------ .../examples/database/create-ip-attribute.md | 16 ------ .../database/create-string-attribute.md | 16 ------ .../examples/database/create-url-attribute.md | 16 ------ .../examples/database/delete-attribute.md | 16 ------ .../examples/database/delete-collection.md | 16 ------ .../examples/database/delete-document.md | 16 ------ .../examples/database/delete-index.md | 16 ------ .../examples/database/get-attribute.md | 16 ------ .../examples/database/get-collection.md | 16 ------ .../examples/database/get-document.md | 16 ------ .../server-php/examples/database/get-index.md | 16 ------ .../examples/database/list-attributes.md | 16 ------ .../examples/database/list-collections.md | 16 ------ .../examples/database/list-documents.md | 16 ------ .../examples/database/list-indexes.md | 16 ------ .../examples/database/update-collection.md | 16 ------ .../examples/database/update-document.md | 16 ------ .../server-php/examples/functions/builds.md | 16 ------ .../examples/functions/create-deployment.md | 16 ------ .../examples/functions/create-execution.md | 16 ------ .../examples/functions/create-tag.md | 16 ------ .../server-php/examples/functions/create.md | 16 ------ .../examples/functions/delete-deployment.md | 16 ------ .../examples/functions/delete-tag.md | 16 ------ .../server-php/examples/functions/delete.md | 16 ------ .../examples/functions/get-build.md | 16 ------ .../examples/functions/get-deployment.md | 16 ------ .../examples/functions/get-execution.md | 16 ------ .../server-php/examples/functions/get-tag.md | 16 ------ .../server-php/examples/functions/get.md | 16 ------ .../examples/functions/list-deployments.md | 16 ------ .../examples/functions/list-executions.md | 16 ------ .../examples/functions/list-runtimes.md | 16 ------ .../examples/functions/list-tags.md | 16 ------ .../server-php/examples/functions/list.md | 16 ------ .../examples/functions/retry-build.md | 16 ------ .../examples/functions/update-deployment.md | 16 ------ .../examples/functions/update-tag.md | 16 ------ .../server-php/examples/functions/update.md | 16 ------ .../examples/health/get-antivirus.md | 16 ------ .../server-php/examples/health/get-cache.md | 16 ------ .../server-php/examples/health/get-d-b.md | 16 ------ .../examples/health/get-queue-certificates.md | 16 ------ .../examples/health/get-queue-functions.md | 16 ------ .../examples/health/get-queue-logs.md | 16 ------ .../examples/health/get-queue-usage.md | 16 ------ .../examples/health/get-queue-webhooks.md | 16 ------ .../examples/health/get-storage-local.md | 16 ------ .../server-php/examples/health/get-time.md | 16 ------ .../0.15.x/server-php/examples/health/get.md | 16 ------ .../examples/locale/get-continents.md | 16 ------ .../examples/locale/get-countries-e-u.md | 16 ------ .../examples/locale/get-countries-phones.md | 16 ------ .../examples/locale/get-countries.md | 16 ------ .../examples/locale/get-currencies.md | 16 ------ .../examples/locale/get-languages.md | 16 ------ .../0.15.x/server-php/examples/locale/get.md | 16 ------ .../examples/storage/create-bucket.md | 16 ------ .../examples/storage/create-file.md | 16 ------ .../examples/storage/delete-bucket.md | 16 ------ .../examples/storage/delete-file.md | 16 ------ .../server-php/examples/storage/get-bucket.md | 16 ------ .../examples/storage/get-file-download.md | 16 ------ .../examples/storage/get-file-preview.md | 16 ------ .../examples/storage/get-file-view.md | 16 ------ .../server-php/examples/storage/get-file.md | 16 ------ .../examples/storage/list-buckets.md | 16 ------ .../server-php/examples/storage/list-files.md | 16 ------ .../examples/storage/update-bucket.md | 16 ------ .../examples/storage/update-file.md | 16 ------ .../examples/teams/create-membership.md | 16 ------ .../server-php/examples/teams/create.md | 16 ------ .../examples/teams/delete-membership.md | 16 ------ .../server-php/examples/teams/delete.md | 16 ------ .../examples/teams/get-membership.md | 16 ------ .../examples/teams/get-memberships.md | 16 ------ .../0.15.x/server-php/examples/teams/get.md | 16 ------ .../0.15.x/server-php/examples/teams/list.md | 16 ------ .../examples/teams/update-membership-roles.md | 16 ------ .../teams/update-membership-status.md | 16 ------ .../server-php/examples/teams/update.md | 16 ------ .../examples/users/create-argon2user.md | 16 ------ .../examples/users/create-bcrypt-user.md | 16 ------ .../examples/users/create-m-d5user.md | 16 ------ .../examples/users/create-p-h-pass-user.md | 16 ------ .../users/create-s-crypt-modified-user.md | 16 ------ .../examples/users/create-s-crypt-user.md | 16 ------ .../examples/users/create-s-h-a-user.md | 16 ------ .../server-php/examples/users/create.md | 16 ------ .../examples/users/delete-session.md | 16 ------ .../examples/users/delete-sessions.md | 16 ------ .../server-php/examples/users/delete.md | 16 ------ .../server-php/examples/users/get-logs.md | 16 ------ .../examples/users/get-memberships.md | 16 ------ .../server-php/examples/users/get-prefs.md | 16 ------ .../server-php/examples/users/get-sessions.md | 16 ------ .../0.15.x/server-php/examples/users/get.md | 16 ------ .../0.15.x/server-php/examples/users/list.md | 16 ------ .../server-php/examples/users/update-email.md | 16 ------ .../server-php/examples/users/update-name.md | 16 ------ .../examples/users/update-password.md | 16 ------ .../server-php/examples/users/update-prefs.md | 16 ------ .../examples/users/update-status.md | 16 ------ .../examples/users/update-verification.md | 16 ------ .../examples/account/create-recovery.md | 14 ----- .../examples/account/create-verification.md | 14 ----- .../examples/account/delete-session.md | 14 ----- .../examples/account/delete-sessions.md | 14 ----- .../server-python/examples/account/delete.md | 14 ----- .../examples/account/get-logs.md | 14 ----- .../examples/account/get-prefs.md | 14 ----- .../examples/account/get-session.md | 14 ----- .../examples/account/get-sessions.md | 14 ----- .../server-python/examples/account/get.md | 14 ----- .../examples/account/update-email.md | 14 ----- .../examples/account/update-name.md | 14 ----- .../examples/account/update-o-auth2tokens.md | 14 ----- .../examples/account/update-password.md | 14 ----- .../examples/account/update-prefs.md | 14 ----- .../examples/account/update-recovery.md | 14 ----- .../examples/account/update-session.md | 14 ----- .../examples/account/update-status.md | 14 ----- .../examples/account/update-verification.md | 14 ----- .../examples/avatars/get-browser.md | 14 ----- .../examples/avatars/get-credit-card.md | 14 ----- .../examples/avatars/get-favicon.md | 14 ----- .../examples/avatars/get-flag.md | 14 ----- .../examples/avatars/get-image.md | 14 ----- .../examples/avatars/get-initials.md | 14 ----- .../server-python/examples/avatars/get-q-r.md | 14 ----- .../database/create-boolean-attribute.md | 14 ----- .../examples/database/create-collection.md | 14 ----- .../examples/database/create-document.md | 14 ----- .../database/create-email-attribute.md | 14 ----- .../database/create-enum-attribute.md | 14 ----- .../database/create-float-attribute.md | 14 ----- .../examples/database/create-index.md | 14 ----- .../database/create-integer-attribute.md | 14 ----- .../examples/database/create-ip-attribute.md | 14 ----- .../database/create-string-attribute.md | 14 ----- .../examples/database/create-url-attribute.md | 14 ----- .../examples/database/delete-attribute.md | 14 ----- .../examples/database/delete-collection.md | 14 ----- .../examples/database/delete-document.md | 14 ----- .../examples/database/delete-index.md | 14 ----- .../examples/database/get-attribute.md | 14 ----- .../examples/database/get-collection.md | 14 ----- .../examples/database/get-document.md | 14 ----- .../examples/database/get-index.md | 14 ----- .../examples/database/list-attributes.md | 14 ----- .../examples/database/list-collections.md | 14 ----- .../examples/database/list-documents.md | 14 ----- .../examples/database/list-indexes.md | 14 ----- .../examples/database/update-collection.md | 14 ----- .../examples/database/update-document.md | 14 ----- .../examples/functions/builds.md | 14 ----- .../examples/functions/create-deployment.md | 14 ----- .../examples/functions/create-execution.md | 14 ----- .../examples/functions/create-tag.md | 14 ----- .../examples/functions/create.md | 14 ----- .../examples/functions/delete-deployment.md | 14 ----- .../examples/functions/delete-tag.md | 14 ----- .../examples/functions/delete.md | 14 ----- .../examples/functions/get-build.md | 14 ----- .../examples/functions/get-deployment.md | 14 ----- .../examples/functions/get-execution.md | 14 ----- .../examples/functions/get-tag.md | 14 ----- .../server-python/examples/functions/get.md | 14 ----- .../examples/functions/list-deployments.md | 14 ----- .../examples/functions/list-executions.md | 14 ----- .../examples/functions/list-runtimes.md | 14 ----- .../examples/functions/list-tags.md | 14 ----- .../server-python/examples/functions/list.md | 14 ----- .../examples/functions/retry-build.md | 14 ----- .../examples/functions/update-deployment.md | 14 ----- .../examples/functions/update-tag.md | 14 ----- .../examples/functions/update.md | 14 ----- .../examples/health/get-antivirus.md | 14 ----- .../examples/health/get-cache.md | 14 ----- .../server-python/examples/health/get-d-b.md | 14 ----- .../examples/health/get-queue-certificates.md | 14 ----- .../examples/health/get-queue-functions.md | 14 ----- .../examples/health/get-queue-logs.md | 14 ----- .../examples/health/get-queue-usage.md | 14 ----- .../examples/health/get-queue-webhooks.md | 14 ----- .../examples/health/get-storage-local.md | 14 ----- .../server-python/examples/health/get-time.md | 14 ----- .../server-python/examples/health/get.md | 14 ----- .../examples/locale/get-continents.md | 14 ----- .../examples/locale/get-countries-e-u.md | 14 ----- .../examples/locale/get-countries-phones.md | 14 ----- .../examples/locale/get-countries.md | 14 ----- .../examples/locale/get-currencies.md | 14 ----- .../examples/locale/get-languages.md | 14 ----- .../server-python/examples/locale/get.md | 14 ----- .../examples/storage/create-bucket.md | 14 ----- .../examples/storage/create-file.md | 14 ----- .../examples/storage/delete-bucket.md | 14 ----- .../examples/storage/delete-file.md | 14 ----- .../examples/storage/get-bucket.md | 14 ----- .../examples/storage/get-file-download.md | 14 ----- .../examples/storage/get-file-preview.md | 14 ----- .../examples/storage/get-file-view.md | 14 ----- .../examples/storage/get-file.md | 14 ----- .../examples/storage/list-buckets.md | 14 ----- .../examples/storage/list-files.md | 14 ----- .../examples/storage/update-bucket.md | 14 ----- .../examples/storage/update-file.md | 14 ----- .../examples/teams/create-membership.md | 14 ----- .../server-python/examples/teams/create.md | 14 ----- .../examples/teams/delete-membership.md | 14 ----- .../server-python/examples/teams/delete.md | 14 ----- .../examples/teams/get-membership.md | 14 ----- .../examples/teams/get-memberships.md | 14 ----- .../server-python/examples/teams/get.md | 14 ----- .../server-python/examples/teams/list.md | 14 ----- .../examples/teams/update-membership-roles.md | 14 ----- .../teams/update-membership-status.md | 14 ----- .../server-python/examples/teams/update.md | 14 ----- .../examples/users/create-argon2user.md | 14 ----- .../examples/users/create-bcrypt-user.md | 14 ----- .../examples/users/create-m-d5user.md | 14 ----- .../examples/users/create-p-h-pass-user.md | 14 ----- .../users/create-s-crypt-modified-user.md | 14 ----- .../examples/users/create-s-crypt-user.md | 14 ----- .../examples/users/create-s-h-a-user.md | 14 ----- .../server-python/examples/users/create.md | 14 ----- .../examples/users/delete-session.md | 14 ----- .../examples/users/delete-sessions.md | 14 ----- .../server-python/examples/users/delete.md | 14 ----- .../server-python/examples/users/get-logs.md | 14 ----- .../examples/users/get-memberships.md | 14 ----- .../server-python/examples/users/get-prefs.md | 14 ----- .../examples/users/get-sessions.md | 14 ----- .../server-python/examples/users/get.md | 14 ----- .../server-python/examples/users/list.md | 14 ----- .../examples/users/update-email.md | 14 ----- .../examples/users/update-name.md | 14 ----- .../examples/users/update-password.md | 14 ----- .../examples/users/update-prefs.md | 14 ----- .../examples/users/update-status.md | 14 ----- .../examples/users/update-verification.md | 14 ----- .../examples/account/create-recovery.md | 14 ----- .../examples/account/create-verification.md | 14 ----- .../examples/account/delete-session.md | 14 ----- .../examples/account/delete-sessions.md | 14 ----- .../server-ruby/examples/account/delete.md | 14 ----- .../server-ruby/examples/account/get-logs.md | 14 ----- .../server-ruby/examples/account/get-prefs.md | 14 ----- .../examples/account/get-session.md | 14 ----- .../examples/account/get-sessions.md | 14 ----- .../server-ruby/examples/account/get.md | 14 ----- .../examples/account/update-email.md | 14 ----- .../examples/account/update-name.md | 14 ----- .../examples/account/update-o-auth2tokens.md | 14 ----- .../examples/account/update-password.md | 14 ----- .../examples/account/update-prefs.md | 14 ----- .../examples/account/update-recovery.md | 14 ----- .../examples/account/update-session.md | 14 ----- .../examples/account/update-status.md | 14 ----- .../examples/account/update-verification.md | 14 ----- .../examples/avatars/get-browser.md | 14 ----- .../examples/avatars/get-credit-card.md | 14 ----- .../examples/avatars/get-favicon.md | 14 ----- .../server-ruby/examples/avatars/get-flag.md | 14 ----- .../server-ruby/examples/avatars/get-image.md | 14 ----- .../examples/avatars/get-initials.md | 14 ----- .../server-ruby/examples/avatars/get-q-r.md | 14 ----- .../database/create-boolean-attribute.md | 14 ----- .../examples/database/create-collection.md | 14 ----- .../examples/database/create-document.md | 14 ----- .../database/create-email-attribute.md | 14 ----- .../database/create-enum-attribute.md | 14 ----- .../database/create-float-attribute.md | 14 ----- .../examples/database/create-index.md | 14 ----- .../database/create-integer-attribute.md | 14 ----- .../examples/database/create-ip-attribute.md | 14 ----- .../database/create-string-attribute.md | 14 ----- .../examples/database/create-url-attribute.md | 14 ----- .../examples/database/delete-attribute.md | 14 ----- .../examples/database/delete-collection.md | 14 ----- .../examples/database/delete-document.md | 14 ----- .../examples/database/delete-index.md | 14 ----- .../examples/database/get-attribute.md | 14 ----- .../examples/database/get-collection.md | 14 ----- .../examples/database/get-document.md | 14 ----- .../examples/database/get-index.md | 14 ----- .../examples/database/list-attributes.md | 14 ----- .../examples/database/list-collections.md | 14 ----- .../examples/database/list-documents.md | 14 ----- .../examples/database/list-indexes.md | 14 ----- .../examples/database/update-collection.md | 14 ----- .../examples/database/update-document.md | 14 ----- .../server-ruby/examples/functions/builds.md | 14 ----- .../examples/functions/create-deployment.md | 14 ----- .../examples/functions/create-execution.md | 14 ----- .../examples/functions/create-tag.md | 14 ----- .../server-ruby/examples/functions/create.md | 14 ----- .../examples/functions/delete-deployment.md | 14 ----- .../examples/functions/delete-tag.md | 14 ----- .../server-ruby/examples/functions/delete.md | 14 ----- .../examples/functions/get-build.md | 14 ----- .../examples/functions/get-deployment.md | 14 ----- .../examples/functions/get-execution.md | 14 ----- .../server-ruby/examples/functions/get-tag.md | 14 ----- .../server-ruby/examples/functions/get.md | 14 ----- .../examples/functions/list-deployments.md | 14 ----- .../examples/functions/list-executions.md | 14 ----- .../examples/functions/list-runtimes.md | 14 ----- .../examples/functions/list-tags.md | 14 ----- .../server-ruby/examples/functions/list.md | 14 ----- .../examples/functions/retry-build.md | 14 ----- .../examples/functions/update-deployment.md | 14 ----- .../examples/functions/update-tag.md | 14 ----- .../server-ruby/examples/functions/update.md | 14 ----- .../examples/health/get-antivirus.md | 14 ----- .../server-ruby/examples/health/get-cache.md | 14 ----- .../server-ruby/examples/health/get-d-b.md | 14 ----- .../examples/health/get-queue-certificates.md | 14 ----- .../examples/health/get-queue-functions.md | 14 ----- .../examples/health/get-queue-logs.md | 14 ----- .../examples/health/get-queue-usage.md | 14 ----- .../examples/health/get-queue-webhooks.md | 14 ----- .../examples/health/get-storage-local.md | 14 ----- .../server-ruby/examples/health/get-time.md | 14 ----- .../0.15.x/server-ruby/examples/health/get.md | 14 ----- .../examples/locale/get-continents.md | 14 ----- .../examples/locale/get-countries-e-u.md | 14 ----- .../examples/locale/get-countries-phones.md | 14 ----- .../examples/locale/get-countries.md | 14 ----- .../examples/locale/get-currencies.md | 14 ----- .../examples/locale/get-languages.md | 14 ----- .../0.15.x/server-ruby/examples/locale/get.md | 14 ----- .../examples/storage/create-bucket.md | 14 ----- .../examples/storage/create-file.md | 14 ----- .../examples/storage/delete-bucket.md | 14 ----- .../examples/storage/delete-file.md | 14 ----- .../examples/storage/get-bucket.md | 14 ----- .../examples/storage/get-file-download.md | 14 ----- .../examples/storage/get-file-preview.md | 14 ----- .../examples/storage/get-file-view.md | 14 ----- .../server-ruby/examples/storage/get-file.md | 14 ----- .../examples/storage/list-buckets.md | 14 ----- .../examples/storage/list-files.md | 14 ----- .../examples/storage/update-bucket.md | 14 ----- .../examples/storage/update-file.md | 14 ----- .../examples/teams/create-membership.md | 14 ----- .../server-ruby/examples/teams/create.md | 14 ----- .../examples/teams/delete-membership.md | 14 ----- .../server-ruby/examples/teams/delete.md | 14 ----- .../examples/teams/get-membership.md | 14 ----- .../examples/teams/get-memberships.md | 14 ----- .../0.15.x/server-ruby/examples/teams/get.md | 14 ----- .../0.15.x/server-ruby/examples/teams/list.md | 14 ----- .../examples/teams/update-membership-roles.md | 14 ----- .../teams/update-membership-status.md | 14 ----- .../server-ruby/examples/teams/update.md | 14 ----- .../examples/users/create-argon2user.md | 14 ----- .../examples/users/create-bcrypt-user.md | 14 ----- .../examples/users/create-m-d5user.md | 14 ----- .../examples/users/create-p-h-pass-user.md | 14 ----- .../users/create-s-crypt-modified-user.md | 14 ----- .../examples/users/create-s-crypt-user.md | 14 ----- .../examples/users/create-s-h-a-user.md | 14 ----- .../server-ruby/examples/users/create.md | 14 ----- .../examples/users/delete-session.md | 14 ----- .../examples/users/delete-sessions.md | 14 ----- .../server-ruby/examples/users/delete.md | 14 ----- .../server-ruby/examples/users/get-logs.md | 14 ----- .../examples/users/get-memberships.md | 14 ----- .../server-ruby/examples/users/get-prefs.md | 14 ----- .../examples/users/get-sessions.md | 14 ----- .../0.15.x/server-ruby/examples/users/get.md | 14 ----- .../0.15.x/server-ruby/examples/users/list.md | 14 ----- .../examples/users/update-email.md | 14 ----- .../server-ruby/examples/users/update-name.md | 14 ----- .../examples/users/update-password.md | 14 ----- .../examples/users/update-prefs.md | 14 ----- .../examples/users/update-status.md | 14 ----- .../examples/users/update-verification.md | 14 ----- .../examples/account/create-recovery.md | 15 ------ .../examples/account/create-verification.md | 14 ----- .../examples/account/delete-session.md | 14 ----- .../examples/account/delete-sessions.md | 12 ----- .../server-swift/examples/account/delete.md | 18 ------- .../server-swift/examples/account/get-logs.md | 12 ----- .../examples/account/get-prefs.md | 12 ----- .../examples/account/get-session.md | 14 ----- .../examples/account/get-sessions.md | 12 ----- .../server-swift/examples/account/get.md | 12 ----- .../examples/account/update-email.md | 15 ------ .../examples/account/update-name.md | 14 ----- .../examples/account/update-o-auth2tokens.md | 20 -------- .../examples/account/update-password.md | 14 ----- .../examples/account/update-prefs.md | 14 ----- .../examples/account/update-recovery.md | 17 ------- .../examples/account/update-session.md | 14 ----- .../examples/account/update-status.md | 12 ----- .../examples/account/update-verification.md | 15 ------ .../examples/avatars/get-browser.md | 14 ----- .../examples/avatars/get-credit-card.md | 14 ----- .../examples/avatars/get-favicon.md | 14 ----- .../server-swift/examples/avatars/get-flag.md | 14 ----- .../examples/avatars/get-image.md | 14 ----- .../examples/avatars/get-initials.md | 12 ----- .../server-swift/examples/avatars/get-q-r.md | 14 ----- .../database/create-boolean-attribute.md | 16 ------ .../examples/database/create-collection.md | 18 ------- .../examples/database/create-document.md | 16 ------ .../database/create-email-attribute.md | 16 ------ .../database/create-enum-attribute.md | 17 ------- .../database/create-float-attribute.md | 16 ------ .../examples/database/create-index.md | 17 ------- .../database/create-integer-attribute.md | 16 ------ .../examples/database/create-ip-attribute.md | 16 ------ .../database/create-string-attribute.md | 17 ------- .../examples/database/create-url-attribute.md | 16 ------ .../examples/database/delete-attribute.md | 15 ------ .../examples/database/delete-collection.md | 14 ----- .../examples/database/delete-document.md | 15 ------ .../examples/database/delete-index.md | 15 ------ .../examples/database/get-attribute.md | 15 ------ .../examples/database/get-collection.md | 14 ----- .../examples/database/get-document.md | 15 ------ .../examples/database/get-index.md | 15 ------ .../examples/database/list-attributes.md | 14 ----- .../examples/database/list-collections.md | 12 ----- .../examples/database/list-documents.md | 14 ----- .../examples/database/list-indexes.md | 14 ----- .../examples/database/update-collection.md | 16 ------ .../examples/database/update-document.md | 16 ------ .../server-swift/examples/functions/builds.md | 21 -------- .../examples/functions/create-deployment.md | 17 ------- .../examples/functions/create-execution.md | 14 ----- .../examples/functions/create-tag.md | 22 -------- .../server-swift/examples/functions/create.md | 17 ------- .../examples/functions/delete-deployment.md | 15 ------ .../examples/functions/delete-tag.md | 21 -------- .../server-swift/examples/functions/delete.md | 14 ----- .../examples/functions/get-build.md | 22 -------- .../examples/functions/get-deployment.md | 15 ------ .../examples/functions/get-execution.md | 15 ------ .../examples/functions/get-tag.md | 21 -------- .../server-swift/examples/functions/get.md | 14 ----- .../examples/functions/list-deployments.md | 14 ----- .../examples/functions/list-executions.md | 14 ----- .../examples/functions/list-runtimes.md | 12 ----- .../examples/functions/list-tags.md | 20 -------- .../server-swift/examples/functions/list.md | 12 ----- .../examples/functions/retry-build.md | 16 ------ .../examples/functions/update-deployment.md | 15 ------ .../examples/functions/update-tag.md | 21 -------- .../server-swift/examples/functions/update.md | 16 ------ .../examples/health/get-antivirus.md | 12 ----- .../server-swift/examples/health/get-cache.md | 12 ----- .../server-swift/examples/health/get-d-b.md | 12 ----- .../examples/health/get-queue-certificates.md | 12 ----- .../examples/health/get-queue-functions.md | 12 ----- .../examples/health/get-queue-logs.md | 12 ----- .../examples/health/get-queue-usage.md | 18 ------- .../examples/health/get-queue-webhooks.md | 12 ----- .../examples/health/get-storage-local.md | 12 ----- .../server-swift/examples/health/get-time.md | 12 ----- .../server-swift/examples/health/get.md | 12 ----- .../examples/locale/get-continents.md | 12 ----- .../examples/locale/get-countries-e-u.md | 12 ----- .../examples/locale/get-countries-phones.md | 12 ----- .../examples/locale/get-countries.md | 12 ----- .../examples/locale/get-currencies.md | 12 ----- .../examples/locale/get-languages.md | 12 ----- .../server-swift/examples/locale/get.md | 12 ----- .../examples/storage/create-bucket.md | 16 ------ .../examples/storage/create-file.md | 16 ------ .../examples/storage/delete-bucket.md | 14 ----- .../examples/storage/delete-file.md | 15 ------ .../examples/storage/get-bucket.md | 14 ----- .../examples/storage/get-file-download.md | 15 ------ .../examples/storage/get-file-preview.md | 15 ------ .../examples/storage/get-file-view.md | 15 ------ .../server-swift/examples/storage/get-file.md | 15 ------ .../examples/storage/list-buckets.md | 12 ----- .../examples/storage/list-files.md | 14 ----- .../examples/storage/update-bucket.md | 16 ------ .../examples/storage/update-file.md | 15 ------ .../examples/teams/create-membership.md | 17 ------- .../server-swift/examples/teams/create.md | 15 ------ .../examples/teams/delete-membership.md | 15 ------ .../server-swift/examples/teams/delete.md | 14 ----- .../examples/teams/get-membership.md | 15 ------ .../examples/teams/get-memberships.md | 14 ----- .../0.15.x/server-swift/examples/teams/get.md | 14 ----- .../server-swift/examples/teams/list.md | 12 ----- .../examples/teams/update-membership-roles.md | 16 ------ .../teams/update-membership-status.md | 17 ------- .../server-swift/examples/teams/update.md | 15 ------ .../examples/users/create-argon2user.md | 16 ------ .../examples/users/create-bcrypt-user.md | 16 ------ .../examples/users/create-m-d5user.md | 16 ------ .../examples/users/create-p-h-pass-user.md | 16 ------ .../users/create-s-crypt-modified-user.md | 19 ------- .../examples/users/create-s-crypt-user.md | 16 ------ .../examples/users/create-s-h-a-user.md | 16 ------ .../server-swift/examples/users/create.md | 16 ------ .../examples/users/delete-session.md | 15 ------ .../examples/users/delete-sessions.md | 14 ----- .../server-swift/examples/users/delete.md | 14 ----- .../server-swift/examples/users/get-logs.md | 14 ----- .../examples/users/get-memberships.md | 14 ----- .../server-swift/examples/users/get-prefs.md | 14 ----- .../examples/users/get-sessions.md | 14 ----- .../0.15.x/server-swift/examples/users/get.md | 14 ----- .../server-swift/examples/users/list.md | 12 ----- .../examples/users/update-email.md | 15 ------ .../examples/users/update-name.md | 15 ------ .../examples/users/update-password.md | 15 ------ .../examples/users/update-prefs.md | 15 ------ .../examples/users/update-status.md | 15 ------ .../examples/users/update-verification.md | 15 ------ 1953 files changed, 2 insertions(+), 35923 deletions(-) delete mode 100644 app/config/specs/open-api3-0.15.x-client.json delete mode 100644 app/config/specs/open-api3-0.15.x-console.json delete mode 100644 app/config/specs/open-api3-0.15.x-server.json delete mode 100644 app/config/specs/swagger2-0.15.x-client.json delete mode 100644 app/config/specs/swagger2-0.15.x-console.json delete mode 100644 app/config/specs/swagger2-0.15.x-server.json delete mode 100644 docs/examples/0.15.x/client-android/java/account/create-anonymous-session.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/create-j-w-t.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/create-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/create-o-auth2session.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/create-session.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/create-verification.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/create.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/delete-session.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/delete.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/get-logs.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/get-session.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/get.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/update-email.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/update-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/update-name.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/update-password.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/update-session.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/update-status.md delete mode 100644 docs/examples/0.15.x/client-android/java/account/update-verification.md delete mode 100644 docs/examples/0.15.x/client-android/java/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/client-android/java/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/client-android/java/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/client-android/java/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/client-android/java/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/client-android/java/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/client-android/java/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/client-android/java/database/create-document.md delete mode 100644 docs/examples/0.15.x/client-android/java/database/delete-document.md delete mode 100644 docs/examples/0.15.x/client-android/java/database/get-document.md delete mode 100644 docs/examples/0.15.x/client-android/java/database/list-documents.md delete mode 100644 docs/examples/0.15.x/client-android/java/database/update-document.md delete mode 100644 docs/examples/0.15.x/client-android/java/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/client-android/java/functions/get-build.md delete mode 100644 docs/examples/0.15.x/client-android/java/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/client-android/java/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/client-android/java/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/client-android/java/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/client-android/java/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/client-android/java/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/client-android/java/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/client-android/java/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/client-android/java/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/client-android/java/locale/get.md delete mode 100644 docs/examples/0.15.x/client-android/java/storage/create-file.md delete mode 100644 docs/examples/0.15.x/client-android/java/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/client-android/java/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/client-android/java/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/client-android/java/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/client-android/java/storage/get-file.md delete mode 100644 docs/examples/0.15.x/client-android/java/storage/list-files.md delete mode 100644 docs/examples/0.15.x/client-android/java/storage/update-file.md delete mode 100644 docs/examples/0.15.x/client-android/java/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/client-android/java/teams/create.md delete mode 100644 docs/examples/0.15.x/client-android/java/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/client-android/java/teams/delete.md delete mode 100644 docs/examples/0.15.x/client-android/java/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/client-android/java/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/client-android/java/teams/get.md delete mode 100644 docs/examples/0.15.x/client-android/java/teams/list.md delete mode 100644 docs/examples/0.15.x/client-android/java/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/client-android/java/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/client-android/java/teams/update.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/create-anonymous-session.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/create-j-w-t.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/create-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/create-o-auth2session.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/create-session.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/create-verification.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/create.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/delete-session.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/delete.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/get-logs.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/get-session.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/get.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/update-email.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/update-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/update-name.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/update-password.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/update-session.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/update-status.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/account/update-verification.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/database/create-document.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/database/delete-document.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/database/get-document.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/database/list-documents.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/database/update-document.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/functions/get-build.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/locale/get.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/storage/create-file.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/storage/get-file.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/storage/list-files.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/storage/update-file.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/teams/create.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/teams/delete.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/teams/get.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/teams/list.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/client-android/kotlin/teams/update.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/create-anonymous-session.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/create-j-w-t.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/create-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/create-o-auth2session.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/create-session.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/create-verification.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/create.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/delete-session.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/delete.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/get-logs.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/get-session.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/get.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/update-email.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/update-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/update-name.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/update-password.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/update-session.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/update-status.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/account/update-verification.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/database/create-document.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/database/delete-document.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/database/get-document.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/database/list-documents.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/database/update-document.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/functions/get-build.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/locale/get.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/storage/create-file.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/storage/get-file.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/storage/list-files.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/storage/update-file.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/teams/create.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/teams/delete.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/teams/get.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/teams/list.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/client-apple/examples/teams/update.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/create-anonymous-session.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/create-j-w-t.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/create-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/create-o-auth2session.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/create-session.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/create-verification.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/create.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/delete-session.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/delete.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/get-logs.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/get-session.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/get.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/update-email.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/update-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/update-name.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/update-password.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/update-session.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/update-status.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/account/update-verification.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/database/create-document.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/database/delete-document.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/database/get-document.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/database/list-documents.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/database/update-document.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/functions/get-build.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/locale/get.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/storage/create-file.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/storage/get-file.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/storage/list-files.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/storage/update-file.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/teams/create.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/teams/delete.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/teams/get.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/teams/list.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/client-flutter/examples/teams/update.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/create-anonymous-session.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/create-j-w-t.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/create-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/create-o-auth2session.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/create-session.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/create-verification.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/create.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/delete-session.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/delete.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/get-logs.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/get-session.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/get.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/update-email.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/update-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/update-name.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/update-password.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/update-session.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/update-status.md delete mode 100644 docs/examples/0.15.x/client-web/examples/account/update-verification.md delete mode 100644 docs/examples/0.15.x/client-web/examples/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/client-web/examples/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/client-web/examples/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/client-web/examples/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/client-web/examples/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/client-web/examples/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/client-web/examples/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/client-web/examples/database/create-document.md delete mode 100644 docs/examples/0.15.x/client-web/examples/database/delete-document.md delete mode 100644 docs/examples/0.15.x/client-web/examples/database/get-document.md delete mode 100644 docs/examples/0.15.x/client-web/examples/database/list-documents.md delete mode 100644 docs/examples/0.15.x/client-web/examples/database/update-document.md delete mode 100644 docs/examples/0.15.x/client-web/examples/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/client-web/examples/functions/get-build.md delete mode 100644 docs/examples/0.15.x/client-web/examples/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/client-web/examples/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/client-web/examples/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/client-web/examples/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/client-web/examples/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/client-web/examples/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/client-web/examples/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/client-web/examples/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/client-web/examples/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/client-web/examples/locale/get.md delete mode 100644 docs/examples/0.15.x/client-web/examples/storage/create-file.md delete mode 100644 docs/examples/0.15.x/client-web/examples/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/client-web/examples/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/client-web/examples/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/client-web/examples/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/client-web/examples/storage/get-file.md delete mode 100644 docs/examples/0.15.x/client-web/examples/storage/list-files.md delete mode 100644 docs/examples/0.15.x/client-web/examples/storage/update-file.md delete mode 100644 docs/examples/0.15.x/client-web/examples/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/client-web/examples/teams/create.md delete mode 100644 docs/examples/0.15.x/client-web/examples/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/client-web/examples/teams/delete.md delete mode 100644 docs/examples/0.15.x/client-web/examples/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/client-web/examples/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/client-web/examples/teams/get.md delete mode 100644 docs/examples/0.15.x/client-web/examples/teams/list.md delete mode 100644 docs/examples/0.15.x/client-web/examples/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/client-web/examples/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/client-web/examples/teams/update.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/create-anonymous-session.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/create-j-w-t.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/create-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/create-o-auth2session.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/create-session.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/create-verification.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/create.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/delete-session.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/get-logs.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/get-session.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/get.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/update-email.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/update-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/update-name.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/update-password.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/update-session.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/update-status.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/account/update-verification.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/create-boolean-attribute.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/create-collection.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/create-document.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/create-email-attribute.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/create-enum-attribute.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/create-float-attribute.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/create-index.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/create-integer-attribute.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/create-ip-attribute.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/create-string-attribute.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/create-url-attribute.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/delete-attribute.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/delete-collection.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/delete-document.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/delete-index.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/get-attribute.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/get-collection-usage.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/get-collection.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/get-document.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/get-index.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/get-usage.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/list-attributes.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/list-collection-logs.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/list-collections.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/list-document-logs.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/list-documents.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/list-indexes.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/update-collection.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/database/update-document.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/create-deployment.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/create.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/delete-deployment.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/delete.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/get-deployment.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/get-usage.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/get.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/list-deployments.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/list-runtimes.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/list.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/update-deployment.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/functions/update.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/health/get-antivirus.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/health/get-cache.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/health/get-d-b.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/health/get-queue-certificates.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/health/get-queue-functions.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/health/get-queue-logs.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/health/get-queue-webhooks.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/health/get-storage-local.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/health/get-time.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/health/get.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/locale/get.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/create-domain.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/create-key.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/create-platform.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/create-webhook.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/create.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/delete-domain.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/delete-key.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/delete-platform.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/delete-webhook.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/delete.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/get-domain.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/get-key.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/get-platform.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/get-usage.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/get-webhook.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/get.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/list-domains.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/list-keys.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/list-platforms.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/list-webhooks.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/list.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/update-auth-limit.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/update-auth-status.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/update-domain-verification.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/update-key.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/update-o-auth2.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/update-platform.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/update-service-status.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/update-webhook.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/projects/update.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/create-bucket.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/create-file.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/delete-bucket.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/get-bucket-usage.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/get-bucket.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/get-file.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/get-usage.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/list-buckets.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/list-files.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/update-bucket.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/storage/update-file.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/teams/create.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/teams/delete.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/teams/get.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/teams/list-logs.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/teams/list.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/teams/update.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/create-argon2user.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/create-bcrypt-user.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/create-m-d5user.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/create-p-h-pass-user.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/create-s-crypt-modified-user.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/create-s-crypt-user.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/create-s-h-a-user.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/create.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/delete-session.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/delete-sessions.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/delete.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/get-logs.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/get-memberships.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/get-prefs.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/get-sessions.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/get-usage.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/get.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/list.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/update-email.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/update-name.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/update-password.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/update-prefs.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/update-status.md delete mode 100644 docs/examples/0.15.x/console-cli/examples/users/update-verification.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/create-anonymous-session.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/create-j-w-t.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/create-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/create-o-auth2session.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/create-session.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/create-verification.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/create.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/delete-session.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/delete.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/get-logs.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/get-session.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/get.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/update-email.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/update-magic-u-r-l-session.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/update-name.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/update-password.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/update-session.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/update-status.md delete mode 100644 docs/examples/0.15.x/console-web/examples/account/update-verification.md delete mode 100644 docs/examples/0.15.x/console-web/examples/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/console-web/examples/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/console-web/examples/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/console-web/examples/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/console-web/examples/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/console-web/examples/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/console-web/examples/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/create-boolean-attribute.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/create-collection.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/create-document.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/create-email-attribute.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/create-enum-attribute.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/create-float-attribute.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/create-index.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/create-integer-attribute.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/create-ip-attribute.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/create-string-attribute.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/create-url-attribute.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/delete-attribute.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/delete-collection.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/delete-document.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/delete-index.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/get-attribute.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/get-collection-usage.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/get-collection.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/get-document.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/get-index.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/get-usage.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/list-attributes.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/list-collection-logs.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/list-collections.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/list-document-logs.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/list-documents.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/list-indexes.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/update-collection.md delete mode 100644 docs/examples/0.15.x/console-web/examples/database/update-document.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/builds.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/create-deployment.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/create-tag.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/create.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/delete-deployment.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/delete-tag.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/delete.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/get-build.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/get-deployment.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/get-tag.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/get-usage.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/get.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/list-deployments.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/list-runtimes.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/list-tags.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/list.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/update-deployment.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/update-tag.md delete mode 100644 docs/examples/0.15.x/console-web/examples/functions/update.md delete mode 100644 docs/examples/0.15.x/console-web/examples/health/get-antivirus.md delete mode 100644 docs/examples/0.15.x/console-web/examples/health/get-cache.md delete mode 100644 docs/examples/0.15.x/console-web/examples/health/get-d-b.md delete mode 100644 docs/examples/0.15.x/console-web/examples/health/get-queue-certificates.md delete mode 100644 docs/examples/0.15.x/console-web/examples/health/get-queue-functions.md delete mode 100644 docs/examples/0.15.x/console-web/examples/health/get-queue-logs.md delete mode 100644 docs/examples/0.15.x/console-web/examples/health/get-queue-usage.md delete mode 100644 docs/examples/0.15.x/console-web/examples/health/get-queue-webhooks.md delete mode 100644 docs/examples/0.15.x/console-web/examples/health/get-storage-local.md delete mode 100644 docs/examples/0.15.x/console-web/examples/health/get-time.md delete mode 100644 docs/examples/0.15.x/console-web/examples/health/get.md delete mode 100644 docs/examples/0.15.x/console-web/examples/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/console-web/examples/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/console-web/examples/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/console-web/examples/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/console-web/examples/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/console-web/examples/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/console-web/examples/locale/get.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/create-domain.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/create-key.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/create-platform.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/create-webhook.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/create.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/delete-domain.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/delete-key.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/delete-platform.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/delete-webhook.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/delete.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/get-domain.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/get-key.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/get-platform.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/get-usage.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/get-webhook.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/get.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/list-domains.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/list-keys.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/list-platforms.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/list-webhooks.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/list.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/update-auth-limit.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/update-auth-status.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/update-domain-verification.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/update-key.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/update-o-auth2.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/update-platform.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/update-service-status.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/update-webhook.md delete mode 100644 docs/examples/0.15.x/console-web/examples/projects/update.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/create-bucket.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/create-file.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/delete-bucket.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/get-bucket-usage.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/get-bucket.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/get-file.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/get-usage.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/list-buckets.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/list-files.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/update-bucket.md delete mode 100644 docs/examples/0.15.x/console-web/examples/storage/update-file.md delete mode 100644 docs/examples/0.15.x/console-web/examples/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/console-web/examples/teams/create.md delete mode 100644 docs/examples/0.15.x/console-web/examples/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/console-web/examples/teams/delete.md delete mode 100644 docs/examples/0.15.x/console-web/examples/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/console-web/examples/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/console-web/examples/teams/get.md delete mode 100644 docs/examples/0.15.x/console-web/examples/teams/list-logs.md delete mode 100644 docs/examples/0.15.x/console-web/examples/teams/list.md delete mode 100644 docs/examples/0.15.x/console-web/examples/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/console-web/examples/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/console-web/examples/teams/update.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/create-argon2user.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/create-bcrypt-user.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/create-m-d5user.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/create-p-h-pass-user.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/create-s-crypt-modified-user.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/create-s-crypt-user.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/create-s-h-a-user.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/create.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/delete-session.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/delete-sessions.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/delete.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/get-logs.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/get-memberships.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/get-prefs.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/get-sessions.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/get-usage.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/get.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/list.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/update-email.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/update-name.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/update-password.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/update-prefs.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/update-status.md delete mode 100644 docs/examples/0.15.x/console-web/examples/users/update-verification.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/create-verification.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/delete-session.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/delete.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/get-logs.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/get-session.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/get.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/update-email.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/update-name.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/update-password.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/update-session.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/update-status.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/account/update-verification.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/create-boolean-attribute.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/create-collection.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/create-document.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/create-email-attribute.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/create-enum-attribute.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/create-float-attribute.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/create-index.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/create-integer-attribute.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/create-ip-attribute.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/create-string-attribute.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/create-url-attribute.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/delete-attribute.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/delete-collection.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/delete-document.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/delete-index.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/get-attribute.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/get-collection.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/get-document.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/get-index.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/list-attributes.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/list-collections.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/list-documents.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/list-indexes.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/update-collection.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/database/update-document.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/builds.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/create-deployment.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/create-tag.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/create.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/delete-deployment.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/delete-tag.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/delete.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/get-build.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/get-deployment.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/get-tag.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/get.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/list-deployments.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/list-runtimes.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/list-tags.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/list.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/update-deployment.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/update-tag.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/functions/update.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/health/get-antivirus.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/health/get-cache.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/health/get-d-b.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/health/get-queue-certificates.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/health/get-queue-functions.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/health/get-queue-logs.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/health/get-queue-usage.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/health/get-queue-webhooks.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/health/get-storage-local.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/health/get-time.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/health/get.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/locale/get.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/create-bucket.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/create-file.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/delete-bucket.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/get-bucket.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/get-file.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/list-buckets.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/list-files.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/update-bucket.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/storage/update-file.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/teams/create.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/teams/delete.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/teams/get.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/teams/list.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/teams/update.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/create-argon2user.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/create-bcrypt-user.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/create-m-d5user.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/create-p-h-pass-user.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/create-s-crypt-modified-user.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/create-s-crypt-user.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/create-s-h-a-user.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/create.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/delete-session.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/delete.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/get-logs.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/get.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/list.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/update-email.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/update-name.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/update-password.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/update-status.md delete mode 100644 docs/examples/0.15.x/server-dart/examples/users/update-verification.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/create-verification.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/delete-session.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/delete.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/get-logs.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/get-session.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/get.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/update-email.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/update-name.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/update-password.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/update-session.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/update-status.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/account/update-verification.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/create-boolean-attribute.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/create-collection.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/create-document.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/create-email-attribute.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/create-enum-attribute.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/create-float-attribute.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/create-index.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/create-integer-attribute.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/create-ip-attribute.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/create-string-attribute.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/create-url-attribute.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/delete-attribute.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/delete-collection.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/delete-document.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/delete-index.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/get-attribute.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/get-collection.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/get-document.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/get-index.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/list-attributes.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/list-collections.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/list-documents.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/list-indexes.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/update-collection.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/database/update-document.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/builds.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/create-deployment.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/create-tag.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/create.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/delete-deployment.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/delete-tag.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/delete.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/get-build.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/get-deployment.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/get-tag.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/get.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/list-deployments.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/list-runtimes.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/list-tags.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/list.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/update-deployment.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/update-tag.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/functions/update.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/health/get-antivirus.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/health/get-cache.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/health/get-d-b.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/health/get-queue-certificates.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/health/get-queue-functions.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/health/get-queue-logs.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/health/get-queue-usage.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/health/get-queue-webhooks.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/health/get-storage-local.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/health/get-time.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/health/get.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/locale/get.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/create-bucket.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/create-file.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/delete-bucket.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/get-bucket.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/get-file.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/list-buckets.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/list-files.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/update-bucket.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/storage/update-file.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/teams/create.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/teams/delete.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/teams/get.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/teams/list.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/teams/update.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/create-argon2user.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/create-bcrypt-user.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/create-m-d5user.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/create-p-h-pass-user.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/create-s-crypt-modified-user.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/create-s-crypt-user.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/create-s-h-a-user.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/create.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/delete-session.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/delete.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/get-logs.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/get.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/list.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/update-email.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/update-name.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/update-password.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/update-status.md delete mode 100644 docs/examples/0.15.x/server-deno/examples/users/update-verification.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/create-verification.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/delete-session.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/delete.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/get-logs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/get-session.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/get.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/update-email.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/update-name.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/update-password.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/update-session.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/update-status.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/account/update-verification.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/create-boolean-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/create-collection.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/create-document.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/create-email-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/create-enum-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/create-float-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/create-index.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/create-integer-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/create-ip-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/create-string-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/create-url-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/delete-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/delete-collection.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/delete-document.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/delete-index.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/get-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/get-collection.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/get-document.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/get-index.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/list-attributes.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/list-collections.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/list-documents.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/list-indexes.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/update-collection.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/database/update-document.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/builds.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/create-deployment.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/create-tag.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/create.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/delete-deployment.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/delete-tag.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/delete.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/get-build.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/get-deployment.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/get-tag.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/get.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/list-deployments.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/list-runtimes.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/list-tags.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/list.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/update-deployment.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/update-tag.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/functions/update.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/health/get-antivirus.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/health/get-cache.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/health/get-d-b.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/health/get-queue-certificates.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/health/get-queue-functions.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/health/get-queue-logs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/health/get-queue-usage.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/health/get-queue-webhooks.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/health/get-storage-local.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/health/get-time.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/health/get.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/locale/get.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/create-bucket.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/create-file.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/delete-bucket.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/get-bucket.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/get-file.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/list-buckets.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/list-files.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/update-bucket.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/storage/update-file.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/teams/create.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/teams/delete.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/teams/get.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/teams/list.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/teams/update.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/create-argon2user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/create-bcrypt-user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/create-m-d5user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/create-p-h-pass-user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/create-s-crypt-modified-user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/create-s-crypt-user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/create-s-h-a-user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/create.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/delete-session.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/delete.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/get-logs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/get.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/list.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/update-email.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/update-name.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/update-password.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/update-status.md delete mode 100644 docs/examples/0.15.x/server-kotlin/java/users/update-verification.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/create-verification.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/delete-session.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/delete.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/get-logs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/get-session.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/get.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/update-email.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/update-name.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/update-password.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/update-session.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/update-status.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/account/update-verification.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/create-boolean-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/create-collection.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/create-document.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/create-email-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/create-enum-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/create-float-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/create-index.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/create-integer-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/create-ip-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/create-string-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/create-url-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/delete-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/delete-collection.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/delete-document.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/delete-index.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/get-attribute.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/get-collection.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/get-document.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/get-index.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/list-attributes.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/list-collections.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/list-documents.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/list-indexes.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/update-collection.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/database/update-document.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/builds.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/create-deployment.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/create-tag.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/create.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/delete-deployment.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/delete-tag.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/delete.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/get-build.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/get-deployment.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/get-tag.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/get.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/list-deployments.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/list-runtimes.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/list-tags.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/list.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/update-deployment.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/update-tag.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/functions/update.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/health/get-antivirus.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/health/get-cache.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/health/get-d-b.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-certificates.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-functions.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-logs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-usage.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-webhooks.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/health/get-storage-local.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/health/get-time.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/health/get.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/locale/get.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/create-bucket.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/create-file.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/delete-bucket.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/get-bucket.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/list-buckets.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/list-files.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/update-bucket.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/storage/update-file.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/teams/create.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/teams/delete.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/teams/get.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/teams/list.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/teams/update.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/create-argon2user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/create-bcrypt-user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/create-m-d5user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/create-p-h-pass-user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/create-s-crypt-modified-user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/create-s-crypt-user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/create-s-h-a-user.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/create.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/delete-session.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/delete.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/get-logs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/get.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/list.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/update-email.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/update-name.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/update-password.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/update-status.md delete mode 100644 docs/examples/0.15.x/server-kotlin/kotlin/users/update-verification.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/create-verification.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/delete-session.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/delete.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/get-logs.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/get-session.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/get.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/update-email.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/update-name.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/update-password.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/update-session.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/update-status.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/account/update-verification.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/create-boolean-attribute.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/create-collection.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/create-document.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/create-email-attribute.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/create-enum-attribute.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/create-float-attribute.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/create-index.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/create-integer-attribute.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/create-ip-attribute.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/create-string-attribute.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/create-url-attribute.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/delete-attribute.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/delete-collection.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/delete-document.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/delete-index.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/get-attribute.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/get-collection.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/get-document.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/get-index.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/list-attributes.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/list-collections.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/list-documents.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/list-indexes.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/update-collection.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/database/update-document.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/builds.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/create-deployment.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/create-tag.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/create.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/delete-deployment.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/delete-tag.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/delete.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/get-build.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/get-deployment.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/get-tag.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/get.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/list-deployments.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/list-runtimes.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/list-tags.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/list.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/update-deployment.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/update-tag.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/functions/update.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/health/get-antivirus.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/health/get-cache.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/health/get-d-b.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/health/get-queue-certificates.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/health/get-queue-functions.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/health/get-queue-logs.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/health/get-queue-usage.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/health/get-queue-webhooks.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/health/get-storage-local.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/health/get-time.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/health/get.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/locale/get.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/create-bucket.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/create-file.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/delete-bucket.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/get-bucket.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/get-file.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/list-buckets.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/list-files.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/update-bucket.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/storage/update-file.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/teams/create.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/teams/delete.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/teams/get.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/teams/list.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/teams/update.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/create-argon2user.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/create-bcrypt-user.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/create-m-d5user.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/create-p-h-pass-user.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/create-s-crypt-modified-user.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/create-s-crypt-user.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/create-s-h-a-user.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/create.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/delete-session.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/delete.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/get-logs.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/get.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/list.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/update-email.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/update-name.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/update-password.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/update-status.md delete mode 100644 docs/examples/0.15.x/server-nodejs/examples/users/update-verification.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/create-verification.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/delete-session.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/delete.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/get-logs.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/get-session.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/get.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/update-email.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/update-name.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/update-password.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/update-session.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/update-status.md delete mode 100644 docs/examples/0.15.x/server-php/examples/account/update-verification.md delete mode 100644 docs/examples/0.15.x/server-php/examples/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/server-php/examples/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/server-php/examples/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/server-php/examples/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/server-php/examples/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/server-php/examples/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/server-php/examples/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/create-boolean-attribute.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/create-collection.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/create-document.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/create-email-attribute.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/create-enum-attribute.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/create-float-attribute.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/create-index.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/create-integer-attribute.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/create-ip-attribute.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/create-string-attribute.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/create-url-attribute.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/delete-attribute.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/delete-collection.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/delete-document.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/delete-index.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/get-attribute.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/get-collection.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/get-document.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/get-index.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/list-attributes.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/list-collections.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/list-documents.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/list-indexes.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/update-collection.md delete mode 100644 docs/examples/0.15.x/server-php/examples/database/update-document.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/builds.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/create-deployment.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/create-tag.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/create.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/delete-deployment.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/delete-tag.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/delete.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/get-build.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/get-deployment.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/get-tag.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/get.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/list-deployments.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/list-runtimes.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/list-tags.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/list.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/update-deployment.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/update-tag.md delete mode 100644 docs/examples/0.15.x/server-php/examples/functions/update.md delete mode 100644 docs/examples/0.15.x/server-php/examples/health/get-antivirus.md delete mode 100644 docs/examples/0.15.x/server-php/examples/health/get-cache.md delete mode 100644 docs/examples/0.15.x/server-php/examples/health/get-d-b.md delete mode 100644 docs/examples/0.15.x/server-php/examples/health/get-queue-certificates.md delete mode 100644 docs/examples/0.15.x/server-php/examples/health/get-queue-functions.md delete mode 100644 docs/examples/0.15.x/server-php/examples/health/get-queue-logs.md delete mode 100644 docs/examples/0.15.x/server-php/examples/health/get-queue-usage.md delete mode 100644 docs/examples/0.15.x/server-php/examples/health/get-queue-webhooks.md delete mode 100644 docs/examples/0.15.x/server-php/examples/health/get-storage-local.md delete mode 100644 docs/examples/0.15.x/server-php/examples/health/get-time.md delete mode 100644 docs/examples/0.15.x/server-php/examples/health/get.md delete mode 100644 docs/examples/0.15.x/server-php/examples/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/server-php/examples/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/server-php/examples/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/server-php/examples/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/server-php/examples/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/server-php/examples/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/server-php/examples/locale/get.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/create-bucket.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/create-file.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/delete-bucket.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/get-bucket.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/get-file.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/list-buckets.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/list-files.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/update-bucket.md delete mode 100644 docs/examples/0.15.x/server-php/examples/storage/update-file.md delete mode 100644 docs/examples/0.15.x/server-php/examples/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/server-php/examples/teams/create.md delete mode 100644 docs/examples/0.15.x/server-php/examples/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/server-php/examples/teams/delete.md delete mode 100644 docs/examples/0.15.x/server-php/examples/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/server-php/examples/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-php/examples/teams/get.md delete mode 100644 docs/examples/0.15.x/server-php/examples/teams/list.md delete mode 100644 docs/examples/0.15.x/server-php/examples/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/server-php/examples/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/server-php/examples/teams/update.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/create-argon2user.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/create-bcrypt-user.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/create-m-d5user.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/create-p-h-pass-user.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/create-s-crypt-modified-user.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/create-s-crypt-user.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/create-s-h-a-user.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/create.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/delete-session.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/delete.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/get-logs.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/get.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/list.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/update-email.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/update-name.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/update-password.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/update-status.md delete mode 100644 docs/examples/0.15.x/server-php/examples/users/update-verification.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/create-verification.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/delete-session.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/delete.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/get-logs.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/get-session.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/get.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/update-email.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/update-name.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/update-password.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/update-session.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/update-status.md delete mode 100644 docs/examples/0.15.x/server-python/examples/account/update-verification.md delete mode 100644 docs/examples/0.15.x/server-python/examples/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/server-python/examples/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/server-python/examples/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/server-python/examples/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/server-python/examples/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/server-python/examples/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/server-python/examples/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/create-boolean-attribute.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/create-collection.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/create-document.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/create-email-attribute.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/create-enum-attribute.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/create-float-attribute.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/create-index.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/create-integer-attribute.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/create-ip-attribute.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/create-string-attribute.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/create-url-attribute.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/delete-attribute.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/delete-collection.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/delete-document.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/delete-index.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/get-attribute.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/get-collection.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/get-document.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/get-index.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/list-attributes.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/list-collections.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/list-documents.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/list-indexes.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/update-collection.md delete mode 100644 docs/examples/0.15.x/server-python/examples/database/update-document.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/builds.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/create-deployment.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/create-tag.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/create.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/delete-deployment.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/delete-tag.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/delete.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/get-build.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/get-deployment.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/get-tag.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/get.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/list-deployments.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/list-runtimes.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/list-tags.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/list.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/update-deployment.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/update-tag.md delete mode 100644 docs/examples/0.15.x/server-python/examples/functions/update.md delete mode 100644 docs/examples/0.15.x/server-python/examples/health/get-antivirus.md delete mode 100644 docs/examples/0.15.x/server-python/examples/health/get-cache.md delete mode 100644 docs/examples/0.15.x/server-python/examples/health/get-d-b.md delete mode 100644 docs/examples/0.15.x/server-python/examples/health/get-queue-certificates.md delete mode 100644 docs/examples/0.15.x/server-python/examples/health/get-queue-functions.md delete mode 100644 docs/examples/0.15.x/server-python/examples/health/get-queue-logs.md delete mode 100644 docs/examples/0.15.x/server-python/examples/health/get-queue-usage.md delete mode 100644 docs/examples/0.15.x/server-python/examples/health/get-queue-webhooks.md delete mode 100644 docs/examples/0.15.x/server-python/examples/health/get-storage-local.md delete mode 100644 docs/examples/0.15.x/server-python/examples/health/get-time.md delete mode 100644 docs/examples/0.15.x/server-python/examples/health/get.md delete mode 100644 docs/examples/0.15.x/server-python/examples/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/server-python/examples/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/server-python/examples/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/server-python/examples/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/server-python/examples/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/server-python/examples/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/server-python/examples/locale/get.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/create-bucket.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/create-file.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/delete-bucket.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/get-bucket.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/get-file.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/list-buckets.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/list-files.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/update-bucket.md delete mode 100644 docs/examples/0.15.x/server-python/examples/storage/update-file.md delete mode 100644 docs/examples/0.15.x/server-python/examples/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/server-python/examples/teams/create.md delete mode 100644 docs/examples/0.15.x/server-python/examples/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/server-python/examples/teams/delete.md delete mode 100644 docs/examples/0.15.x/server-python/examples/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/server-python/examples/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-python/examples/teams/get.md delete mode 100644 docs/examples/0.15.x/server-python/examples/teams/list.md delete mode 100644 docs/examples/0.15.x/server-python/examples/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/server-python/examples/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/server-python/examples/teams/update.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/create-argon2user.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/create-bcrypt-user.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/create-m-d5user.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/create-p-h-pass-user.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/create-s-crypt-modified-user.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/create-s-crypt-user.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/create-s-h-a-user.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/create.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/delete-session.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/delete.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/get-logs.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/get.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/list.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/update-email.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/update-name.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/update-password.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/update-status.md delete mode 100644 docs/examples/0.15.x/server-python/examples/users/update-verification.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/create-verification.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/delete-session.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/delete.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/get-logs.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/get-session.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/get.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/update-email.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/update-name.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/update-password.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/update-session.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/update-status.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/account/update-verification.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/create-boolean-attribute.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/create-collection.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/create-document.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/create-email-attribute.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/create-enum-attribute.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/create-float-attribute.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/create-index.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/create-integer-attribute.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/create-ip-attribute.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/create-string-attribute.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/create-url-attribute.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/delete-attribute.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/delete-collection.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/delete-document.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/delete-index.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/get-attribute.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/get-collection.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/get-document.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/get-index.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/list-attributes.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/list-collections.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/list-documents.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/list-indexes.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/update-collection.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/database/update-document.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/builds.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/create-deployment.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/create-tag.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/create.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/delete-deployment.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/delete-tag.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/delete.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/get-build.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/get-deployment.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/get-tag.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/get.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/list-deployments.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/list-runtimes.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/list-tags.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/list.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/update-deployment.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/update-tag.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/functions/update.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/health/get-antivirus.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/health/get-cache.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/health/get-d-b.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/health/get-queue-certificates.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/health/get-queue-functions.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/health/get-queue-logs.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/health/get-queue-usage.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/health/get-queue-webhooks.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/health/get-storage-local.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/health/get-time.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/health/get.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/locale/get.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/create-bucket.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/create-file.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/delete-bucket.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/get-bucket.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/get-file.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/list-buckets.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/list-files.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/update-bucket.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/storage/update-file.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/teams/create.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/teams/delete.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/teams/get.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/teams/list.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/teams/update.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/create-argon2user.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/create-bcrypt-user.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/create-m-d5user.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/create-p-h-pass-user.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/create-s-crypt-modified-user.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/create-s-crypt-user.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/create-s-h-a-user.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/create.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/delete-session.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/delete.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/get-logs.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/get.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/list.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/update-email.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/update-name.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/update-password.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/update-status.md delete mode 100644 docs/examples/0.15.x/server-ruby/examples/users/update-verification.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/create-recovery.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/create-verification.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/delete-session.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/delete.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/get-logs.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/get-session.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/get.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/update-email.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/update-name.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/update-o-auth2tokens.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/update-password.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/update-recovery.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/update-session.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/update-status.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/account/update-verification.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/avatars/get-browser.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/avatars/get-credit-card.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/avatars/get-favicon.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/avatars/get-flag.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/avatars/get-image.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/avatars/get-initials.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/avatars/get-q-r.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/create-boolean-attribute.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/create-collection.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/create-document.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/create-email-attribute.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/create-enum-attribute.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/create-float-attribute.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/create-index.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/create-integer-attribute.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/create-ip-attribute.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/create-string-attribute.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/create-url-attribute.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/delete-attribute.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/delete-collection.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/delete-document.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/delete-index.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/get-attribute.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/get-collection.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/get-document.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/get-index.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/list-attributes.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/list-collections.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/list-documents.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/list-indexes.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/update-collection.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/database/update-document.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/builds.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/create-deployment.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/create-execution.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/create-tag.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/create.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/delete-deployment.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/delete-tag.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/delete.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/get-build.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/get-deployment.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/get-execution.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/get-tag.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/get.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/list-deployments.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/list-executions.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/list-runtimes.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/list-tags.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/list.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/retry-build.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/update-deployment.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/update-tag.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/functions/update.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/health/get-antivirus.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/health/get-cache.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/health/get-d-b.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/health/get-queue-certificates.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/health/get-queue-functions.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/health/get-queue-logs.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/health/get-queue-usage.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/health/get-queue-webhooks.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/health/get-storage-local.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/health/get-time.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/health/get.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/locale/get-continents.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/locale/get-countries-e-u.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/locale/get-countries-phones.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/locale/get-countries.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/locale/get-currencies.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/locale/get-languages.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/locale/get.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/create-bucket.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/create-file.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/delete-bucket.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/delete-file.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/get-bucket.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/get-file-download.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/get-file-preview.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/get-file-view.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/get-file.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/list-buckets.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/list-files.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/update-bucket.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/storage/update-file.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/teams/create-membership.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/teams/create.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/teams/delete-membership.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/teams/delete.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/teams/get-membership.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/teams/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/teams/get.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/teams/list.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/teams/update-membership-roles.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/teams/update-membership-status.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/teams/update.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/create-argon2user.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/create-bcrypt-user.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/create-m-d5user.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/create-p-h-pass-user.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/create-s-crypt-modified-user.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/create-s-crypt-user.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/create-s-h-a-user.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/create.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/delete-session.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/delete-sessions.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/delete.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/get-logs.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/get-memberships.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/get-prefs.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/get-sessions.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/get.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/list.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/update-email.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/update-name.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/update-password.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/update-prefs.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/update-status.md delete mode 100644 docs/examples/0.15.x/server-swift/examples/users/update-verification.md diff --git a/app/config/specs/open-api3-0.15.x-client.json b/app/config/specs/open-api3-0.15.x-client.json deleted file mode 100644 index df11b20d20..0000000000 --- a/app/config/specs/open-api3-0.15.x-client.json +++ /dev/null @@ -1 +0,0 @@ -{"openapi":"3.0.0","info":{"version":"0.15.0","title":"Appwrite","description":"Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https:\/\/appwrite.io\/docs](https:\/\/appwrite.io\/docs)","termsOfService":"https:\/\/appwrite.io\/policy\/terms","contact":{"name":"Appwrite Team","url":"https:\/\/appwrite.io\/support","email":"team@appwrite.io"},"license":{"name":"BSD-3-Clause","url":"https:\/\/raw.githubusercontent.com\/appwrite\/appwrite\/master\/LICENSE"}},"servers":[{"url":"https:\/\/HOSTNAME\/v1"}],"paths":{"\/account":{"get":{"summary":"Get Account","operationId":"accountGet","tags":["account"],"description":"Get currently logged in user data as JSON object.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"get","weight":49,"cookies":false,"type":"","demo":"account\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]},"post":{"summary":"Create Account","operationId":"accountCreate","tags":["account"],"description":"Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [\/account\/verfication](\/docs\/client\/account#accountCreateVerification) route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new [account session](\/docs\/client\/account#accountCreateSession).","responses":{"201":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"create","weight":39,"cookies":false,"type":"","demo":"account\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/account\/email":{"patch":{"summary":"Update Account Email","operationId":"accountUpdateEmail","tags":["account"],"description":"Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use the send confirmation email endpoint again to send the confirmation email. For security measures, user password is required to complete this request.\nThis endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.\n","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updateEmail","weight":56,"cookies":false,"type":"","demo":"account\/update-email.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-email.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","x-example":"password"}},"required":["email","password"]}}}}}},"\/account\/jwt":{"post":{"summary":"Create Account JWT","operationId":"accountCreateJWT","tags":["account"],"description":"Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes from its creation and will be invalid if the user will logout in that time frame.","responses":{"201":{"description":"JWT","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/jwt"}}}}},"x-appwrite":{"method":"createJWT","weight":48,"cookies":false,"type":"","demo":"account\/create-j-w-t.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},userId:{userId}","scope":"account","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}]}},"\/account\/logs":{"get":{"summary":"Get Account Logs","operationId":"accountGetLogs","tags":["account"],"description":"Get currently logged in user list of latest security activity logs. Each log returns user IP address, location and date and time of log.","responses":{"200":{"description":"Logs List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/logList"}}}}},"x-appwrite":{"method":"getLogs","weight":52,"cookies":false,"type":"","demo":"account\/get-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"}]}},"\/account\/name":{"patch":{"summary":"Update Account Name","operationId":"accountUpdateName","tags":["account"],"description":"Update currently logged in user account name.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updateName","weight":54,"cookies":false,"type":"","demo":"account\/update-name.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-name.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["name"]}}}}}},"\/account\/password":{"patch":{"summary":"Update Account Password","operationId":"accountUpdatePassword","tags":["account"],"description":"Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updatePassword","weight":55,"cookies":false,"type":"","demo":"account\/update-password.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-password.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"password":{"type":"string","description":"New user password. Must be at least 8 chars.","x-example":"password"},"oldPassword":{"type":"string","description":"Current user password. Must be at least 8 chars.","x-example":"password"}},"required":["password"]}}}}}},"\/account\/prefs":{"get":{"summary":"Get Account Preferences","operationId":"accountGetPrefs","tags":["account"],"description":"Get currently logged in user preferences as a key-value object.","responses":{"200":{"description":"Preferences","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/preferences"}}}}},"x-appwrite":{"method":"getPrefs","weight":50,"cookies":false,"type":"","demo":"account\/get-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]},"patch":{"summary":"Update Account Preferences","operationId":"accountUpdatePrefs","tags":["account"],"description":"Update currently logged in user account preferences. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updatePrefs","weight":57,"cookies":false,"type":"","demo":"account\/update-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"prefs":{"type":"object","description":"Prefs key-value JSON object.","x-example":"{}"}},"required":["prefs"]}}}}}},"\/account\/recovery":{"post":{"summary":"Create Password Recovery","operationId":"accountCreateRecovery","tags":["account"],"description":"Sends the user an email with a temporary secret key for password reset. When the user clicks the confirmation link he is redirected back to your app password reset URL with the secret key and email address values attached to the URL query string. Use the query string params to submit a request to the [PUT \/account\/recovery](\/docs\/client\/account#accountUpdateRecovery) endpoint to complete the process. The verification link sent to the user's email address is valid for 1 hour.","responses":{"201":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"createRecovery","weight":62,"cookies":false,"type":"","demo":"account\/create-recovery.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-recovery.md","rate-limit":10,"rate-time":3600,"rate-key":["url:{url},email:{param-email}","ip:{ip}"],"scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"url":{"type":"string","description":"URL to redirect the user back to your app from the recovery email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","x-example":"https:\/\/example.com"}},"required":["email","url"]}}}}},"put":{"summary":"Create Password Recovery (confirmation)","operationId":"accountUpdateRecovery","tags":["account"],"description":"Use this endpoint to complete the user account password reset. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST \/account\/recovery](\/docs\/client\/account#accountCreateRecovery) endpoint.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.","responses":{"200":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"updateRecovery","weight":63,"cookies":false,"type":"","demo":"account\/update-recovery.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-recovery.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid reset token.","x-example":"[SECRET]"},"password":{"type":"string","description":"New user password. Must be at least 8 chars.","x-example":"password"},"passwordAgain":{"type":"string","description":"Repeat new user password. Must be at least 8 chars.","x-example":"password"}},"required":["userId","secret","password","passwordAgain"]}}}}}},"\/account\/sessions":{"get":{"summary":"Get Account Sessions","operationId":"accountGetSessions","tags":["account"],"description":"Get currently logged in user list of active sessions across different devices.","responses":{"200":{"description":"Sessions List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sessionList"}}}}},"x-appwrite":{"method":"getSessions","weight":51,"cookies":false,"type":"","demo":"account\/get-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]},"post":{"summary":"Create Account Session","operationId":"accountCreateSession","tags":["account"],"description":"Allow the user to login into their account by providing a valid email and password combination. This route will create a new session for the user.","responses":{"201":{"description":"Session","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/session"}}}}},"x-appwrite":{"method":"createSession","weight":40,"cookies":false,"type":"","demo":"account\/create-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},email:{param-email}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","x-example":"password"}},"required":["email","password"]}}}}},"delete":{"summary":"Delete All Account Sessions","operationId":"accountDeleteSessions","tags":["account"],"description":"Delete all sessions from the user account and remove any sessions cookies from the end client.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSessions","weight":61,"cookies":false,"type":"","demo":"account\/delete-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-sessions.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/sessions\/anonymous":{"post":{"summary":"Create Anonymous Session","operationId":"accountCreateAnonymousSession","tags":["account"],"description":"Use this endpoint to allow a new user to register an anonymous account in your project. This route will also create a new session for the user. To allow the new user to convert an anonymous account to a normal account, you need to update its [email and password](\/docs\/client\/account#accountUpdateEmail) or create an [OAuth2 session](\/docs\/client\/account#accountCreateOAuth2Session).","responses":{"201":{"description":"Session","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/session"}}}}},"x-appwrite":{"method":"createAnonymousSession","weight":47,"cookies":false,"type":"","demo":"account\/create-anonymous-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-anonymous.md","rate-limit":50,"rate-time":3600,"rate-key":"ip:{ip}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}]}},"\/account\/sessions\/magic-url":{"post":{"summary":"Create Magic URL session","operationId":"accountCreateMagicURLSession","tags":["account"],"description":"Sends the user an email with a secret key for creating a session. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [PUT \/account\/sessions\/magic-url](\/docs\/client\/account#accountUpdateMagicURLSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour. If you are on a mobile device you can leave the URL parameter empty, so that the login completion will be handled by your Appwrite instance by default.","responses":{"201":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"createMagicURLSession","weight":45,"cookies":false,"type":"","demo":"account\/create-magic-u-r-l-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-magic-url-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},email:{param-email}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"url":{"type":"string","description":"URL to redirect the user back to your app from the magic URL login. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","x-example":"https:\/\/example.com"}},"required":["userId","email"]}}}}},"put":{"summary":"Create Magic URL session (confirmation)","operationId":"accountUpdateMagicURLSession","tags":["account"],"description":"Use this endpoint to complete creating the session with the Magic URL. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST \/account\/sessions\/magic-url](\/docs\/client\/account#accountCreateMagicURLSession) endpoint.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.","responses":{"200":{"description":"Session","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/session"}}}}},"x-appwrite":{"method":"updateMagicURLSession","weight":46,"cookies":false,"type":"","demo":"account\/update-magic-u-r-l-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-magic-url-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid verification token.","x-example":"[SECRET]"}},"required":["userId","secret"]}}}}}},"\/account\/sessions\/oauth2\/{provider}":{"get":{"summary":"Create Account Session with OAuth2","operationId":"accountCreateOAuth2Session","tags":["account"],"description":"Allow the user to login to their account using the OAuth2 provider of their choice. Each OAuth2 provider should be enabled from the Appwrite console first. Use the success and failure arguments to provide a redirect URL's back to your app when login is completed.\n\nIf there is already an active session, the new session will be attached to the logged-in account. If there are no active sessions, the server will attempt to look for a user with the same email address as the email received from the OAuth2 provider and attach the new session to the existing user. If no matching user is found - the server will create a new user..\n","responses":{"301":{"description":"File"}},"x-appwrite":{"method":"createOAuth2Session","weight":41,"cookies":false,"type":"webAuth","demo":"account\/create-o-auth2session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-oauth2.md","rate-limit":50,"rate-time":3600,"rate-key":"ip:{ip}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"provider","description":"OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, bitbucket, bitly, box, dailymotion, discord, dropbox, facebook, github, gitlab, google, linkedin, microsoft, notion, okta, paypal, paypalSandbox, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoom.","required":true,"schema":{"type":"string","x-example":"amazon"},"in":"path"},{"name":"success","description":"URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","required":false,"schema":{"type":"string","format":"url","x-example":"https:\/\/example.com","default":""},"in":"query"},{"name":"failure","description":"URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","required":false,"schema":{"type":"string","format":"url","x-example":"https:\/\/example.com","default":""},"in":"query"},{"name":"scopes","description":"A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 128 characters long.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]},"in":"query"}]}},"\/account\/sessions\/{sessionId}":{"get":{"summary":"Get Session By ID","operationId":"accountGetSession","tags":["account"],"description":"Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.","responses":{"200":{"description":"Session","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/session"}}}}},"x-appwrite":{"method":"getSession","weight":53,"cookies":false,"type":"","demo":"account\/get-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-session.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to get the current device session.","required":true,"schema":{"type":"string","x-example":"[SESSION_ID]"},"in":"path"}]},"patch":{"summary":"Update Session (Refresh Tokens)","operationId":"accountUpdateSession","tags":["account"],"description":"Access tokens have limited lifespan and expire to mitigate security risks. If session was created using an OAuth provider, this route can be used to \"refresh\" the access token.","responses":{"200":{"description":"Session","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/session"}}}}},"x-appwrite":{"method":"updateSession","weight":60,"cookies":false,"type":"","demo":"account\/update-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to update the current device session.","required":true,"schema":{"type":"string","x-example":"[SESSION_ID]"},"in":"path"}]},"delete":{"summary":"Delete Account Session","operationId":"accountDeleteSession","tags":["account"],"description":"Use this endpoint to log out the currently logged in user from all their account sessions across all of their different devices. When using the Session ID argument, only the unique session ID provided is deleted.\n","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSession","weight":59,"cookies":false,"type":"","demo":"account\/delete-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-session.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to delete the current device session.","required":true,"schema":{"type":"string","x-example":"[SESSION_ID]"},"in":"path"}]}},"\/account\/status":{"patch":{"summary":"Update Account Status","operationId":"accountUpdateStatus","tags":["account"],"description":"Block the currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. To completely delete a user, use the Users API instead.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updateStatus","weight":58,"cookies":false,"type":"","demo":"account\/update-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/verification":{"post":{"summary":"Create Email Verification","operationId":"accountCreateVerification","tags":["account"],"description":"Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](\/docs\/client\/account#accountUpdateVerification). The verification link sent to the user's email address is valid for 7 days.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.\n","responses":{"201":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"createVerification","weight":64,"cookies":false,"type":"","demo":"account\/create-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-verification.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{userId}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","x-example":"https:\/\/example.com"}},"required":["url"]}}}}},"put":{"summary":"Create Email Verification (confirmation)","operationId":"accountUpdateVerification","tags":["account"],"description":"Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.","responses":{"200":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"updateVerification","weight":65,"cookies":false,"type":"","demo":"account\/update-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-verification.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid verification token.","x-example":"[SECRET]"}},"required":["userId","secret"]}}}}}},"\/avatars\/browsers\/{code}":{"get":{"summary":"Get Browser Icon","operationId":"avatarsGetBrowser","tags":["avatars"],"description":"You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET \/account\/sessions](\/docs\/client\/account#accountGetSessions) endpoint. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getBrowser","weight":67,"cookies":false,"type":"location","demo":"avatars\/get-browser.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-browser.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"code","description":"Browser Code.","required":true,"schema":{"type":"string","x-example":"aa"},"in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"}]}},"\/avatars\/credit-cards\/{code}":{"get":{"summary":"Get Credit Card Icon","operationId":"avatarsGetCreditCard","tags":["avatars"],"description":"The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getCreditCard","weight":66,"cookies":false,"type":"location","demo":"avatars\/get-credit-card.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-credit-card.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"code","description":"Credit Card Code. Possible values: amex, argencard, cabal, censosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.","required":true,"schema":{"type":"string","x-example":"amex"},"in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"}]}},"\/avatars\/favicon":{"get":{"summary":"Get Favicon","operationId":"avatarsGetFavicon","tags":["avatars"],"description":"Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getFavicon","weight":70,"cookies":false,"type":"location","demo":"avatars\/get-favicon.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-favicon.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"url","description":"Website URL which you want to fetch the favicon from.","required":true,"schema":{"type":"string","format":"url","x-example":"https:\/\/example.com"},"in":"query"}]}},"\/avatars\/flags\/{code}":{"get":{"summary":"Get Country Flag","operationId":"avatarsGetFlag","tags":["avatars"],"description":"You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getFlag","weight":68,"cookies":false,"type":"location","demo":"avatars\/get-flag.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-flag.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"code","description":"Country Code. ISO Alpha-2 country code format.","required":true,"schema":{"type":"string","x-example":"af"},"in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"}]}},"\/avatars\/image":{"get":{"summary":"Get Image from URL","operationId":"avatarsGetImage","tags":["avatars"],"description":"Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make sure a 3rd party image is properly served using a TLS protocol.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 400x400px.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getImage","weight":69,"cookies":false,"type":"location","demo":"avatars\/get-image.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-image.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"url","description":"Image URL which you want to crop.","required":true,"schema":{"type":"string","format":"url","x-example":"https:\/\/example.com"},"in":"query"},{"name":"width","description":"Resize preview image width, Pass an integer between 0 to 2000. Defaults to 400.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":400},"in":"query"},{"name":"height","description":"Resize preview image height, Pass an integer between 0 to 2000. Defaults to 400.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":400},"in":"query"}]}},"\/avatars\/initials":{"get":{"summary":"Get User Initials","operationId":"avatarsGetInitials","tags":["avatars"],"description":"Use this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user name if you pass the 'name' parameter. If no name is given and no user is logged, an empty avatar will be returned.\n\nYou can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user's initials when reloading the same theme will always return for the same initials.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getInitials","weight":72,"cookies":false,"type":"location","demo":"avatars\/get-initials.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-initials.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"name","description":"Full Name. When empty, current user name or email will be used. Max length: 128 chars.","required":false,"schema":{"type":"string","x-example":"[NAME]","default":""},"in":"query"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":500},"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":500},"in":"query"},{"name":"color","description":"Changes text color. By default a random color will be picked and stay will persistent to the given name.","required":false,"schema":{"type":"string","default":""},"in":"query"},{"name":"background","description":"Changes background color. By default a random color will be picked and stay will persistent to the given name.","required":false,"schema":{"type":"string","default":""},"in":"query"}]}},"\/avatars\/qr":{"get":{"summary":"Get QR Code","operationId":"avatarsGetQR","tags":["avatars"],"description":"Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getQR","weight":71,"cookies":false,"type":"location","demo":"avatars\/get-q-r.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"text","description":"Plain text to be converted to QR code image.","required":true,"schema":{"type":"string","x-example":"[TEXT]"},"in":"query"},{"name":"size","description":"QR code size. Pass an integer between 1 to 1000. Defaults to 400.","required":false,"schema":{"type":"integer","format":"int32","x-example":1,"default":400},"in":"query"},{"name":"margin","description":"Margin from edge. Pass an integer between 0 to 10. Defaults to 1.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":1},"in":"query"},{"name":"download","description":"Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0.","required":false,"schema":{"type":"boolean","x-example":false,"default":false},"in":"query"}]}},"\/database\/collections\/{collectionId}\/documents":{"get":{"summary":"List Documents","operationId":"databaseListDocuments","tags":["database"],"description":"Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's documents. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Documents List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/documentList"}}}}},"x-appwrite":{"method":"listDocuments","weight":97,"cookies":false,"type":"","demo":"database\/list-documents.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-documents.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"queries","description":"Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/database#querying-documents). Maximum of 100 queries are allowed, each 128 characters long.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]},"in":"query"},{"name":"limit","description":"Maximum number of documents to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the document used as the starting point for the query, excluding the document itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderAttributes","description":"Array of attributes used to sort results. Maximum of 100 order attributes are allowed, each 128 characters long.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]},"in":"query"},{"name":"orderTypes","description":"Array of order directions for sorting attribtues. Possible values are DESC for descending order, or ASC for ascending order. Maximum of 100 order types are allowed.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]},"in":"query"}]},"post":{"summary":"Create Document","operationId":"databaseCreateDocument","tags":["database"],"description":"Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](\/docs\/server\/database#databaseCreateCollection) API or directly from your database console.","responses":{"201":{"description":"Document","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/document"}}}}},"x-appwrite":{"method":"createDocument","weight":96,"cookies":false,"type":"","demo":"database\/create-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection). Make sure to define attributes before creating documents.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"documentId":{"type":"string","description":"Document ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[DOCUMENT_ID]"},"data":{"type":"object","description":"Document data as JSON object.","x-example":"{}"},"read":{"type":"array","description":"An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}},"required":["documentId","data"]}}}}}},"\/database\/collections\/{collectionId}\/documents\/{documentId}":{"get":{"summary":"Get Document","operationId":"databaseGetDocument","tags":["database"],"description":"Get a document by its unique ID. This endpoint response returns a JSON object with the document data.","responses":{"200":{"description":"Document","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/document"}}}}},"x-appwrite":{"method":"getDocument","weight":98,"cookies":false,"type":"","demo":"database\/get-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"documentId","description":"Document ID.","required":true,"schema":{"type":"string","x-example":"[DOCUMENT_ID]"},"in":"path"}]},"patch":{"summary":"Update Document","operationId":"databaseUpdateDocument","tags":["database"],"description":"Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.","responses":{"200":{"description":"Document","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/document"}}}}},"x-appwrite":{"method":"updateDocument","weight":100,"cookies":false,"type":"","demo":"database\/update-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/update-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"documentId","description":"Document ID.","required":true,"schema":{"type":"string","x-example":"[DOCUMENT_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Document data as JSON object. Include only attribute and value pairs to be updated.","x-example":"{}"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}},"required":["data"]}}}}},"delete":{"summary":"Delete Document","operationId":"databaseDeleteDocument","tags":["database"],"description":"Delete a document by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteDocument","weight":101,"cookies":false,"type":"","demo":"database\/delete-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"documentId","description":"Document ID.","required":true,"schema":{"type":"string","x-example":"[DOCUMENT_ID]"},"in":"path"}]}},"\/functions\/{functionId}\/deployments\/{deploymentId}\/builds\/{buildId}":{"post":{"summary":"Retry Build","operationId":"functionsRetryBuild","tags":["functions"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"retryBuild","weight":217,"cookies":false,"type":"","demo":"functions\/retry-build.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/retry-build.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"schema":{"type":"string","x-example":"[DEPLOYMENT_ID]"},"in":"path"},{"name":"buildId","description":"Build unique ID.","required":true,"schema":{"type":"string","x-example":"[BUILD_ID]"},"in":"path"}]}},"\/functions\/{functionId}\/executions":{"get":{"summary":"List Executions","operationId":"functionsListExecutions","tags":["functions"],"description":"Get a list of all the current user function execution logs. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's executions. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Executions List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/executionList"}}}}},"x-appwrite":{"method":"listExecutions","weight":215,"cookies":false,"type":"","demo":"functions\/list-executions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-executions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"execution.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"limit","description":"Maximum number of executions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"cursor","description":"ID of the execution used as the starting point for the query, excluding the execution itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"}]},"post":{"summary":"Create Execution","operationId":"functionsCreateExecution","tags":["functions"],"description":"Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.","responses":{"201":{"description":"Execution","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/execution"}}}}},"x-appwrite":{"method":"createExecution","weight":214,"cookies":false,"type":"","demo":"functions\/create-execution.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-execution.md","rate-limit":60,"rate-time":60,"rate-key":"url:{url},ip:{ip}","scope":"execution.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"string","description":"String of custom data to send to function.","x-example":"[DATA]"},"async":{"type":"boolean","description":"Execute code asynchronously. Default value is true.","x-example":false}}}}}}}},"\/functions\/{functionId}\/executions\/{executionId}":{"get":{"summary":"Get Execution","operationId":"functionsGetExecution","tags":["functions"],"description":"Get a function execution log by its unique ID.","responses":{"200":{"description":"Execution","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/execution"}}}}},"x-appwrite":{"method":"getExecution","weight":216,"cookies":false,"type":"","demo":"functions\/get-execution.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-execution.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"execution.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"executionId","description":"Execution ID.","required":true,"schema":{"type":"string","x-example":"[EXECUTION_ID]"},"in":"path"}]}},"\/locale":{"get":{"summary":"Get User Locale","operationId":"localeGet","tags":["locale"],"description":"Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.\n\n([IP Geolocation by DB-IP](https:\/\/db-ip.com))","responses":{"200":{"description":"Locale","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/locale"}}}}},"x-appwrite":{"method":"get","weight":102,"cookies":false,"type":"","demo":"locale\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-locale.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/locale\/continents":{"get":{"summary":"List Continents","operationId":"localeGetContinents","tags":["locale"],"description":"List of all continents. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Continents List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/continentList"}}}}},"x-appwrite":{"method":"getContinents","weight":106,"cookies":false,"type":"","demo":"locale\/get-continents.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-continents.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/locale\/countries":{"get":{"summary":"List Countries","operationId":"localeGetCountries","tags":["locale"],"description":"List of all countries. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Countries List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/countryList"}}}}},"x-appwrite":{"method":"getCountries","weight":103,"cookies":false,"type":"","demo":"locale\/get-countries.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/locale\/countries\/eu":{"get":{"summary":"List EU Countries","operationId":"localeGetCountriesEU","tags":["locale"],"description":"List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Countries List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/countryList"}}}}},"x-appwrite":{"method":"getCountriesEU","weight":104,"cookies":false,"type":"","demo":"locale\/get-countries-e-u.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries-eu.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/locale\/countries\/phones":{"get":{"summary":"List Countries Phone Codes","operationId":"localeGetCountriesPhones","tags":["locale"],"description":"List of all countries phone codes. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Phones List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/phoneList"}}}}},"x-appwrite":{"method":"getCountriesPhones","weight":105,"cookies":false,"type":"","demo":"locale\/get-countries-phones.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries-phones.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/locale\/currencies":{"get":{"summary":"List Currencies","operationId":"localeGetCurrencies","tags":["locale"],"description":"List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Currencies List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/currencyList"}}}}},"x-appwrite":{"method":"getCurrencies","weight":107,"cookies":false,"type":"","demo":"locale\/get-currencies.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-currencies.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/locale\/languages":{"get":{"summary":"List Languages","operationId":"localeGetLanguages","tags":["locale"],"description":"List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.","responses":{"200":{"description":"Languages List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/languageList"}}}}},"x-appwrite":{"method":"getLanguages","weight":108,"cookies":false,"type":"","demo":"locale\/get-languages.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-languages.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/storage\/buckets\/{bucketId}\/files":{"get":{"summary":"List Files","operationId":"storageListFiles","tags":["storage"],"description":"Get a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's files. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Files List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/fileList"}}}}},"x-appwrite":{"method":"listFiles","weight":157,"cookies":false,"type":"","demo":"storage\/list-files.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/list-files.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of files to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the file used as the starting point for the query, excluding the file itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create File","operationId":"storageCreateFile","tags":["storage"],"description":"Create a new file. Before using this route, you should create a new bucket resource using either a [server integration](\/docs\/server\/database#storageCreateBucket) API or directly from your Appwrite console.\n\nLarger files should be uploaded using multiple requests with the [content-range](https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Headers\/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.\n\nWhen the first request is sent, the server will return the **File** object, and the subsequent part request must include the file's **id** in `x-appwrite-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.\n\nIf you're creating a new file using one of the Appwrite SDKs, all the chunking logic will be managed by the SDK internally.\n","responses":{"201":{"description":"File","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/file"}}}}},"x-appwrite":{"method":"createFile","weight":156,"cookies":false,"type":"upload","demo":"storage\/create-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/create-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"}],"requestBody":{"content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"fileId":{"type":"string","description":"File ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[FILE_ID]","x-upload-id":true},"file":{"type":"string","description":"Binary file.","x-example":null},"read":{"type":"array","description":"An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}},"required":["fileId","file"]}}}}}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}":{"get":{"summary":"Get File","operationId":"storageGetFile","tags":["storage"],"description":"Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.","responses":{"200":{"description":"File","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/file"}}}}},"x-appwrite":{"method":"getFile","weight":158,"cookies":false,"type":"","demo":"storage\/get-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}]},"put":{"summary":"Update File","operationId":"storageUpdateFile","tags":["storage"],"description":"Update a file by its unique ID. Only users with write permissions have access to update this resource.","responses":{"200":{"description":"File","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/file"}}}}},"x-appwrite":{"method":"updateFile","weight":162,"cookies":false,"type":"","demo":"storage\/update-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/update-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File unique ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}}}}}}},"delete":{"summary":"Delete File","operationId":"storageDeleteFile","tags":["storage"],"description":"Delete a file by its unique ID. Only users with write permissions have access to delete this resource.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteFile","weight":163,"cookies":false,"type":"","demo":"storage\/delete-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/delete-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/download":{"get":{"summary":"Get File for Download","operationId":"storageGetFileDownload","tags":["storage"],"description":"Get a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.","responses":{"200":{"description":"File"}},"x-appwrite":{"method":"getFileDownload","weight":160,"cookies":false,"type":"location","demo":"storage\/get-file-download.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-download.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/preview":{"get":{"summary":"Get File Preview","operationId":"storageGetFilePreview","tags":["storage"],"description":"Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image. Preview is supported only for image files smaller than 10MB.","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getFilePreview","weight":159,"cookies":false,"type":"location","demo":"storage\/get-file-preview.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-preview.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"},{"name":"width","description":"Resize preview image width, Pass an integer between 0 to 4000.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"height","description":"Resize preview image height, Pass an integer between 0 to 4000.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"gravity","description":"Image crop gravity. Can be one of center,top-left,top,top-right,left,right,bottom-left,bottom,bottom-right","required":false,"schema":{"type":"string","x-example":"center","default":"center"},"in":"query"},{"name":"quality","description":"Preview image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"borderWidth","description":"Preview image border in pixels. Pass an integer between 0 to 100. Defaults to 0.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"borderColor","description":"Preview image border color. Use a valid HEX color, no # is needed for prefix.","required":false,"schema":{"type":"string","default":""},"in":"query"},{"name":"borderRadius","description":"Preview image border radius in pixels. Pass an integer between 0 to 4000.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"opacity","description":"Preview image opacity. Only works with images having an alpha channel (like png). Pass a number between 0 to 1.","required":false,"schema":{"type":"number","format":"float","x-example":0,"default":1},"in":"query"},{"name":"rotation","description":"Preview image rotation in degrees. Pass an integer between -360 and 360.","required":false,"schema":{"type":"integer","format":"int32","x-example":-360,"default":0},"in":"query"},{"name":"background","description":"Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix.","required":false,"schema":{"type":"string","default":""},"in":"query"},{"name":"output","description":"Output format type (jpeg, jpg, png, gif and webp).","required":false,"schema":{"type":"string","x-example":"jpg","default":""},"in":"query"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/view":{"get":{"summary":"Get File for View","operationId":"storageGetFileView","tags":["storage"],"description":"Get a file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header.","responses":{"200":{"description":"File"}},"x-appwrite":{"method":"getFileView","weight":161,"cookies":false,"type":"location","demo":"storage\/get-file-view.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-view.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}]}},"\/teams":{"get":{"summary":"List Teams","operationId":"teamsList","tags":["teams"],"description":"Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.\r\n\r\nIn admin mode, this endpoint returns a list of all the teams in the current project. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Teams List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/teamList"}}}}},"x-appwrite":{"method":"list","weight":167,"cookies":false,"type":"","demo":"teams\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/list-teams.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of teams to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the team used as the starting point for the query, excluding the team itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Team","operationId":"teamsCreate","tags":["teams"],"description":"Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.","responses":{"201":{"description":"Team","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/team"}}}}},"x-appwrite":{"method":"create","weight":166,"cookies":false,"type":"","demo":"teams\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/create-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"teamId":{"type":"string","description":"Team ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[TEAM_ID]"},"name":{"type":"string","description":"Team name. Max length: 128 chars.","x-example":"[NAME]"},"roles":{"type":"array","description":"Array of strings. Use this param to set the roles in the team for the user who created it. The default role is **owner**. A role can be any string. Learn more about [roles and permissions](\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","x-example":null,"items":{"type":"string"}}},"required":["teamId","name"]}}}}}},"\/teams\/{teamId}":{"get":{"summary":"Get Team","operationId":"teamsGet","tags":["teams"],"description":"Get a team by its ID. All team members have read access for this resource.","responses":{"200":{"description":"Team","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/team"}}}}},"x-appwrite":{"method":"get","weight":168,"cookies":false,"type":"","demo":"teams\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"}]},"put":{"summary":"Update Team","operationId":"teamsUpdate","tags":["teams"],"description":"Update a team using its ID. Only members with the owner role can update the team.","responses":{"200":{"description":"Team","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/team"}}}}},"x-appwrite":{"method":"update","weight":169,"cookies":false,"type":"","demo":"teams\/update.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"New team name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["name"]}}}}},"delete":{"summary":"Delete Team","operationId":"teamsDelete","tags":["teams"],"description":"Delete a team using its ID. Only team members with the owner role can delete the team.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":170,"cookies":false,"type":"","demo":"teams\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/delete-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"}]}},"\/teams\/{teamId}\/memberships":{"get":{"summary":"Get Team Memberships","operationId":"teamsGetMemberships","tags":["teams"],"description":"Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint.","responses":{"200":{"description":"Memberships List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membershipList"}}}}},"x-appwrite":{"method":"getMemberships","weight":172,"cookies":false,"type":"","demo":"teams\/get-memberships.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-members.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of memberships to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the membership used as the starting point for the query, excluding the membership itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Team Membership","operationId":"teamsCreateMembership","tags":["teams"],"description":"Invite a new member to join your team. If initiated from the client SDK, an email with a link to join the team will be sent to the member's email address and an account will be created for them should they not be signed up already. If initiated from server-side SDKs, the new member will automatically be added to the team.\n\nUse the 'url' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the [Update Team Membership Status](\/docs\/client\/teams#teamsUpdateMembershipStatus) endpoint to allow the user to accept the invitation to the team. \n\nPlease note that to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when adding your platforms in the console interface.","responses":{"201":{"description":"Membership","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membership"}}}}},"x-appwrite":{"method":"createMembership","weight":171,"cookies":false,"type":"","demo":"teams\/create-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/create-team-membership.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email of the new team member.","x-example":"email@example.com"},"roles":{"type":"array","description":"Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","x-example":null,"items":{"type":"string"}},"url":{"type":"string","description":"URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","x-example":"https:\/\/example.com"},"name":{"type":"string","description":"Name of the new team member. Max length: 128 chars.","x-example":"[NAME]"}},"required":["email","roles","url"]}}}}}},"\/teams\/{teamId}\/memberships\/{membershipId}":{"get":{"summary":"Get Team Membership","operationId":"teamsGetMembership","tags":["teams"],"description":"Get a team member by the membership unique id. All team members have read access for this resource.","responses":{"200":{"description":"Memberships List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membershipList"}}}}},"x-appwrite":{"method":"getMembership","weight":173,"cookies":false,"type":"","demo":"teams\/get-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-member.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"schema":{"type":"string","x-example":"[MEMBERSHIP_ID]"},"in":"path"}]},"patch":{"summary":"Update Membership Roles","operationId":"teamsUpdateMembershipRoles","tags":["teams"],"description":"Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](\/docs\/permissions).","responses":{"200":{"description":"Membership","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membership"}}}}},"x-appwrite":{"method":"updateMembershipRoles","weight":174,"cookies":false,"type":"","demo":"teams\/update-membership-roles.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team-membership-roles.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"schema":{"type":"string","x-example":"[MEMBERSHIP_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","description":"An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https:\/\/appwrite.io\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","x-example":null,"items":{"type":"string"}}},"required":["roles"]}}}}},"delete":{"summary":"Delete Team Membership","operationId":"teamsDeleteMembership","tags":["teams"],"description":"This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteMembership","weight":176,"cookies":false,"type":"","demo":"teams\/delete-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/delete-team-membership.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"schema":{"type":"string","x-example":"[MEMBERSHIP_ID]"},"in":"path"}]}},"\/teams\/{teamId}\/memberships\/{membershipId}\/status":{"patch":{"summary":"Update Team Membership Status","operationId":"teamsUpdateMembershipStatus","tags":["teams"],"description":"Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email received by the user.\n\nIf the request is successful, a session for the user is automatically created.\n","responses":{"200":{"description":"Membership","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membership"}}}}},"x-appwrite":{"method":"updateMembershipStatus","weight":175,"cookies":false,"type":"","demo":"teams\/update-membership-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team-membership-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"schema":{"type":"string","x-example":"[MEMBERSHIP_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","x-example":"[USER_ID]"},"secret":{"type":"string","description":"Secret key.","x-example":"[SECRET]"}},"required":["userId","secret"]}}}}}}},"tags":[{"name":"account","description":"The Account service allows you to authenticate and manage a user account."},{"name":"avatars","description":"The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars."},{"name":"database","description":"The Database service allows you to create structured collections of documents, query and filter lists of documents"},{"name":"locale","description":"The Locale service allows you to customize your app based on your users' location."},{"name":"health","description":"The Health service allows you to both validate and monitor your Appwrite server's health."},{"name":"projects","description":"The Project service allows you to manage all the projects in your Appwrite server."},{"name":"storage","description":"The Storage service allows you to manage your project files."},{"name":"teams","description":"The Teams service allows you to group users of your project and to enable them to share read and write access to your project resources"},{"name":"users","description":"The Users service allows you to manage your project users."},{"name":"functions","description":"The Functions Service allows you view, create and manage your Cloud Functions."}],"components":{"schemas":{"error":{"description":"Error","type":"object","properties":{"message":{"type":"string","description":"Error message.","x-example":"Not found"},"code":{"type":"string","description":"Error code.","x-example":"404"},"type":{"type":"string","description":"Error type. You can learn more about all the error types at https:\/\/appwrite.io\/docs\/error-codes#errorTypes","x-example":"not_found"},"version":{"type":"string","description":"Server version number.","x-example":"1.0"}},"required":["message","code","type","version"]},"documentList":{"description":"Documents List","type":"object","properties":{"total":{"type":"integer","description":"Total number of documents documents that matched your query.","x-example":5,"format":"int32"},"documents":{"type":"array","description":"List of documents.","items":{"$ref":"#\/components\/schemas\/document"},"x-example":""}},"required":["total","documents"]},"sessionList":{"description":"Sessions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of sessions documents that matched your query.","x-example":5,"format":"int32"},"sessions":{"type":"array","description":"List of sessions.","items":{"$ref":"#\/components\/schemas\/session"},"x-example":""}},"required":["total","sessions"]},"logList":{"description":"Logs List","type":"object","properties":{"total":{"type":"integer","description":"Total number of logs documents that matched your query.","x-example":5,"format":"int32"},"logs":{"type":"array","description":"List of logs.","items":{"$ref":"#\/components\/schemas\/log"},"x-example":""}},"required":["total","logs"]},"fileList":{"description":"Files List","type":"object","properties":{"total":{"type":"integer","description":"Total number of files documents that matched your query.","x-example":5,"format":"int32"},"files":{"type":"array","description":"List of files.","items":{"$ref":"#\/components\/schemas\/file"},"x-example":""}},"required":["total","files"]},"teamList":{"description":"Teams List","type":"object","properties":{"total":{"type":"integer","description":"Total number of teams documents that matched your query.","x-example":5,"format":"int32"},"teams":{"type":"array","description":"List of teams.","items":{"$ref":"#\/components\/schemas\/team"},"x-example":""}},"required":["total","teams"]},"membershipList":{"description":"Memberships List","type":"object","properties":{"total":{"type":"integer","description":"Total number of memberships documents that matched your query.","x-example":5,"format":"int32"},"memberships":{"type":"array","description":"List of memberships.","items":{"$ref":"#\/components\/schemas\/membership"},"x-example":""}},"required":["total","memberships"]},"executionList":{"description":"Executions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of executions documents that matched your query.","x-example":5,"format":"int32"},"executions":{"type":"array","description":"List of executions.","items":{"$ref":"#\/components\/schemas\/execution"},"x-example":""}},"required":["total","executions"]},"countryList":{"description":"Countries List","type":"object","properties":{"total":{"type":"integer","description":"Total number of countries documents that matched your query.","x-example":5,"format":"int32"},"countries":{"type":"array","description":"List of countries.","items":{"$ref":"#\/components\/schemas\/country"},"x-example":""}},"required":["total","countries"]},"continentList":{"description":"Continents List","type":"object","properties":{"total":{"type":"integer","description":"Total number of continents documents that matched your query.","x-example":5,"format":"int32"},"continents":{"type":"array","description":"List of continents.","items":{"$ref":"#\/components\/schemas\/continent"},"x-example":""}},"required":["total","continents"]},"languageList":{"description":"Languages List","type":"object","properties":{"total":{"type":"integer","description":"Total number of languages documents that matched your query.","x-example":5,"format":"int32"},"languages":{"type":"array","description":"List of languages.","items":{"$ref":"#\/components\/schemas\/language"},"x-example":""}},"required":["total","languages"]},"currencyList":{"description":"Currencies List","type":"object","properties":{"total":{"type":"integer","description":"Total number of currencies documents that matched your query.","x-example":5,"format":"int32"},"currencies":{"type":"array","description":"List of currencies.","items":{"$ref":"#\/components\/schemas\/currency"},"x-example":""}},"required":["total","currencies"]},"phoneList":{"description":"Phones List","type":"object","properties":{"total":{"type":"integer","description":"Total number of phones documents that matched your query.","x-example":5,"format":"int32"},"phones":{"type":"array","description":"List of phones.","items":{"$ref":"#\/components\/schemas\/phone"},"x-example":""}},"required":["total","phones"]},"document":{"description":"Document","type":"object","properties":{"$id":{"type":"string","description":"Document ID.","x-example":"5e5ea5c16897e"},"$collection":{"type":"string","description":"Collection ID.","x-example":"5e5ea5c15117e"},"$read":{"type":"array","description":"Document read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"Document write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"}},"additionalProperties":true,"required":["$id","$collection","$read","$write"]},"log":{"description":"Log","type":"object","properties":{"event":{"type":"string","description":"Event name.","x-example":"account.sessions.create"},"userId":{"type":"string","description":"User ID.","x-example":"610fc2f985ee0"},"userEmail":{"type":"string","description":"User Email.","x-example":"john@appwrite.io"},"userName":{"type":"string","description":"User Name.","x-example":"John Doe"},"mode":{"type":"string","description":"API mode when event triggered.","x-example":"admin"},"ip":{"type":"string","description":"IP session in use when the session was created.","x-example":"127.0.0.1"},"time":{"type":"integer","description":"Log creation time in Unix timestamp.","x-example":1592981250,"format":"int32"},"osCode":{"type":"string","description":"Operating system code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/os.json).","x-example":"Mac"},"osName":{"type":"string","description":"Operating system name.","x-example":"Mac"},"osVersion":{"type":"string","description":"Operating system version.","x-example":"Mac"},"clientType":{"type":"string","description":"Client type.","x-example":"browser"},"clientCode":{"type":"string","description":"Client code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/clients.json).","x-example":"CM"},"clientName":{"type":"string","description":"Client name.","x-example":"Chrome Mobile iOS"},"clientVersion":{"type":"string","description":"Client version.","x-example":"84.0"},"clientEngine":{"type":"string","description":"Client engine name.","x-example":"WebKit"},"clientEngineVersion":{"type":"string","description":"Client engine name.","x-example":"605.1.15"},"deviceName":{"type":"string","description":"Device name.","x-example":"smartphone"},"deviceBrand":{"type":"string","description":"Device brand name.","x-example":"Google"},"deviceModel":{"type":"string","description":"Device model name.","x-example":"Nexus 5"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"}},"required":["event","userId","userEmail","userName","mode","ip","time","osCode","osName","osVersion","clientType","clientCode","clientName","clientVersion","clientEngine","clientEngineVersion","deviceName","deviceBrand","deviceModel","countryCode","countryName"]},"account":{"description":"Account","type":"object","properties":{"$id":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"User name.","x-example":"John Doe"},"registration":{"type":"integer","description":"User registration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"status":{"type":"boolean","description":"User status. Pass `true` for enabled and `false` for disabled.","x-example":true},"passwordUpdate":{"type":"integer","description":"Unix timestamp of the most recent password update","x-example":1592981250,"format":"int32"},"email":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"emailVerification":{"type":"boolean","description":"Email verification status.","x-example":true},"prefs":{"type":"object","description":"User preferences as a key-value object","x-example":{"theme":"pink","timezone":"UTC"},"items":{"$ref":"#\/components\/schemas\/preferences"}}},"required":["$id","name","registration","status","passwordUpdate","email","emailVerification","prefs"]},"preferences":{"description":"Preferences","type":"object","additionalProperties":true},"session":{"description":"Session","type":"object","properties":{"$id":{"type":"string","description":"Session ID.","x-example":"5e5ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5bb8c16897e"},"expire":{"type":"integer","description":"Session expiration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"provider":{"type":"string","description":"Session Provider.","x-example":"email"},"providerUid":{"type":"string","description":"Session Provider User ID.","x-example":"user@example.com"},"providerAccessToken":{"type":"string","description":"Session Provider Access Token.","x-example":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"},"providerAccessTokenExpiry":{"type":"integer","description":"Date, the Unix timestamp of when the access token expires.","x-example":1592981250,"format":"int32"},"providerRefreshToken":{"type":"string","description":"Session Provider Refresh Token.","x-example":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"},"ip":{"type":"string","description":"IP in use when the session was created.","x-example":"127.0.0.1"},"osCode":{"type":"string","description":"Operating system code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/os.json).","x-example":"Mac"},"osName":{"type":"string","description":"Operating system name.","x-example":"Mac"},"osVersion":{"type":"string","description":"Operating system version.","x-example":"Mac"},"clientType":{"type":"string","description":"Client type.","x-example":"browser"},"clientCode":{"type":"string","description":"Client code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/clients.json).","x-example":"CM"},"clientName":{"type":"string","description":"Client name.","x-example":"Chrome Mobile iOS"},"clientVersion":{"type":"string","description":"Client version.","x-example":"84.0"},"clientEngine":{"type":"string","description":"Client engine name.","x-example":"WebKit"},"clientEngineVersion":{"type":"string","description":"Client engine name.","x-example":"605.1.15"},"deviceName":{"type":"string","description":"Device name.","x-example":"smartphone"},"deviceBrand":{"type":"string","description":"Device brand name.","x-example":"Google"},"deviceModel":{"type":"string","description":"Device model name.","x-example":"Nexus 5"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"},"current":{"type":"boolean","description":"Returns true if this the current user session.","x-example":true}},"required":["$id","userId","expire","provider","providerUid","providerAccessToken","providerAccessTokenExpiry","providerRefreshToken","ip","osCode","osName","osVersion","clientType","clientCode","clientName","clientVersion","clientEngine","clientEngineVersion","deviceName","deviceBrand","deviceModel","countryCode","countryName","current"]},"token":{"description":"Token","type":"object","properties":{"$id":{"type":"string","description":"Token ID.","x-example":"bb8ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5ea5c168bb8"},"secret":{"type":"string","description":"Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.","x-example":""},"expire":{"type":"integer","description":"Token expiration date in Unix timestamp.","x-example":1592981250,"format":"int32"}},"required":["$id","userId","secret","expire"]},"jwt":{"description":"JWT","type":"object","properties":{"jwt":{"type":"string","description":"JWT encoded string.","x-example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}},"required":["jwt"]},"locale":{"description":"Locale","type":"object","properties":{"ip":{"type":"string","description":"User IP address.","x-example":"127.0.0.1"},"countryCode":{"type":"string","description":"Country code in [ISO 3166-1](http:\/\/en.wikipedia.org\/wiki\/ISO_3166-1) two-character format","x-example":"US"},"country":{"type":"string","description":"Country name. This field support localization.","x-example":"United States"},"continentCode":{"type":"string","description":"Continent code. A two character continent code \"AF\" for Africa, \"AN\" for Antarctica, \"AS\" for Asia, \"EU\" for Europe, \"NA\" for North America, \"OC\" for Oceania, and \"SA\" for South America.","x-example":"NA"},"continent":{"type":"string","description":"Continent name. This field support localization.","x-example":"North America"},"eu":{"type":"boolean","description":"True if country is part of the Europian Union.","x-example":false},"currency":{"type":"string","description":"Currency code in [ISO 4217-1](http:\/\/en.wikipedia.org\/wiki\/ISO_4217) three-character format","x-example":"USD"}},"required":["ip","countryCode","country","continentCode","continent","eu","currency"]},"file":{"description":"File","type":"object","properties":{"$id":{"type":"string","description":"File ID.","x-example":"5e5ea5c16897e"},"bucketId":{"type":"string","description":"Bucket ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"File read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"File write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"},"name":{"type":"string","description":"File name.","x-example":"Pink.png"},"dateCreated":{"type":"integer","description":"File creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"signature":{"type":"string","description":"File MD5 signature.","x-example":"5d529fd02b544198ae075bd57c1762bb"},"mimeType":{"type":"string","description":"File mime type.","x-example":"image\/png"},"sizeOriginal":{"type":"integer","description":"File original size in bytes.","x-example":17890,"format":"int32"},"chunksTotal":{"type":"integer","description":"Total number of chunks available","x-example":17890,"format":"int32"},"chunksUploaded":{"type":"integer","description":"Total number of chunks uploaded","x-example":17890,"format":"int32"}},"required":["$id","bucketId","$read","$write","name","dateCreated","signature","mimeType","sizeOriginal","chunksTotal","chunksUploaded"]},"team":{"description":"Team","type":"object","properties":{"$id":{"type":"string","description":"Team ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Team name.","x-example":"VIP"},"dateCreated":{"type":"integer","description":"Team creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"total":{"type":"integer","description":"Total number of team members.","x-example":7,"format":"int32"}},"required":["$id","name","dateCreated","total"]},"membership":{"description":"Membership","type":"object","properties":{"$id":{"type":"string","description":"Membership ID.","x-example":"5e5ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"userName":{"type":"string","description":"User name.","x-example":"John Doe"},"userEmail":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"teamId":{"type":"string","description":"Team ID.","x-example":"5e5ea5c16897e"},"teamName":{"type":"string","description":"Team name.","x-example":"VIP"},"invited":{"type":"integer","description":"Date, the user has been invited to join the team in Unix timestamp.","x-example":1592981250,"format":"int32"},"joined":{"type":"integer","description":"Date, the user has accepted the invitation to join the team in Unix timestamp.","x-example":1592981250,"format":"int32"},"confirm":{"type":"boolean","description":"User confirmation status, true if the user has joined the team or false otherwise.","x-example":false},"roles":{"type":"array","description":"User list of roles","items":{"type":"string"},"x-example":"admin"}},"required":["$id","userId","userName","userEmail","teamId","teamName","invited","joined","confirm","roles"]},"execution":{"description":"Execution","type":"object","properties":{"$id":{"type":"string","description":"Execution ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"Execution read permissions.","items":{"type":"string"},"x-example":"role:all"},"functionId":{"type":"string","description":"Function ID.","x-example":"5e5ea6g16897e"},"dateCreated":{"type":"integer","description":"The execution creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"trigger":{"type":"string","description":"The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.","x-example":"http"},"status":{"type":"string","description":"The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.","x-example":"processing"},"statusCode":{"type":"integer","description":"The script status code.","x-example":0,"format":"int32"},"response":{"type":"string","description":"The script response output string. Logs the last 4,000 characters of the execution response output.","x-example":""},"stderr":{"type":"string","description":"The script stderr output string. Logs the last 4,000 characters of the execution stderr output","x-example":""},"time":{"type":"number","description":"The script execution time in seconds.","x-example":0.4,"format":"double"}},"required":["$id","$read","functionId","dateCreated","trigger","status","statusCode","response","stderr","time"]},"country":{"description":"Country","type":"object","properties":{"name":{"type":"string","description":"Country name.","x-example":"United States"},"code":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"}},"required":["name","code"]},"continent":{"description":"Continent","type":"object","properties":{"name":{"type":"string","description":"Continent name.","x-example":"Europe"},"code":{"type":"string","description":"Continent two letter code.","x-example":"EU"}},"required":["name","code"]},"language":{"description":"Language","type":"object","properties":{"name":{"type":"string","description":"Language name.","x-example":"Italian"},"code":{"type":"string","description":"Language two-character ISO 639-1 codes.","x-example":"it"},"nativeName":{"type":"string","description":"Language native name.","x-example":"Italiano"}},"required":["name","code","nativeName"]},"currency":{"description":"Currency","type":"object","properties":{"symbol":{"type":"string","description":"Currency symbol.","x-example":"$"},"name":{"type":"string","description":"Currency name.","x-example":"US dollar"},"symbolNative":{"type":"string","description":"Currency native symbol.","x-example":"$"},"decimalDigits":{"type":"integer","description":"Number of decimal digits.","x-example":2,"format":"int32"},"rounding":{"type":"number","description":"Currency digit rounding.","x-example":0,"format":"double"},"code":{"type":"string","description":"Currency code in [ISO 4217-1](http:\/\/en.wikipedia.org\/wiki\/ISO_4217) three-character format.","x-example":"USD"},"namePlural":{"type":"string","description":"Currency plural name","x-example":"US dollars"}},"required":["symbol","name","symbolNative","decimalDigits","rounding","code","namePlural"]},"phone":{"description":"Phone","type":"object","properties":{"code":{"type":"string","description":"Phone code.","x-example":"+1"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"}},"required":["code","countryCode","countryName"]}},"securitySchemes":{"Project":{"type":"apiKey","name":"X-Appwrite-Project","description":"Your project ID","in":"header","x-appwrite":{"demo":"5df5acd0d48c2"}},"JWT":{"type":"apiKey","name":"X-Appwrite-JWT","description":"Your secret JSON Web Token","in":"header"},"Locale":{"type":"apiKey","name":"X-Appwrite-Locale","description":"","in":"header","x-appwrite":{"demo":"en"}}}},"externalDocs":{"description":"Full API docs, specs and tutorials","url":"https:\/\/appwrite.io\/docs"}} \ No newline at end of file diff --git a/app/config/specs/open-api3-0.15.x-console.json b/app/config/specs/open-api3-0.15.x-console.json deleted file mode 100644 index 90fb23a402..0000000000 --- a/app/config/specs/open-api3-0.15.x-console.json +++ /dev/null @@ -1 +0,0 @@ -{"openapi":"3.0.0","info":{"version":"0.15.0","title":"Appwrite","description":"Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https:\/\/appwrite.io\/docs](https:\/\/appwrite.io\/docs)","termsOfService":"https:\/\/appwrite.io\/policy\/terms","contact":{"name":"Appwrite Team","url":"https:\/\/appwrite.io\/support","email":"team@appwrite.io"},"license":{"name":"BSD-3-Clause","url":"https:\/\/raw.githubusercontent.com\/appwrite\/appwrite\/master\/LICENSE"}},"servers":[{"url":"https:\/\/HOSTNAME\/v1"}],"paths":{"\/account":{"get":{"summary":"Get Account","operationId":"accountGet","tags":["account"],"description":"Get currently logged in user data as JSON object.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"get","weight":49,"cookies":false,"type":"","demo":"account\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]},"post":{"summary":"Create Account","operationId":"accountCreate","tags":["account"],"description":"Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [\/account\/verfication](\/docs\/client\/account#accountCreateVerification) route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new [account session](\/docs\/client\/account#accountCreateSession).","responses":{"201":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"create","weight":39,"cookies":false,"type":"","demo":"account\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/account\/email":{"patch":{"summary":"Update Account Email","operationId":"accountUpdateEmail","tags":["account"],"description":"Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use the send confirmation email endpoint again to send the confirmation email. For security measures, user password is required to complete this request.\nThis endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.\n","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updateEmail","weight":56,"cookies":false,"type":"","demo":"account\/update-email.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-email.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","x-example":"password"}},"required":["email","password"]}}}}}},"\/account\/jwt":{"post":{"summary":"Create Account JWT","operationId":"accountCreateJWT","tags":["account"],"description":"Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes from its creation and will be invalid if the user will logout in that time frame.","responses":{"201":{"description":"JWT","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/jwt"}}}}},"x-appwrite":{"method":"createJWT","weight":48,"cookies":false,"type":"","demo":"account\/create-j-w-t.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},userId:{userId}","scope":"account","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}]}},"\/account\/logs":{"get":{"summary":"Get Account Logs","operationId":"accountGetLogs","tags":["account"],"description":"Get currently logged in user list of latest security activity logs. Each log returns user IP address, location and date and time of log.","responses":{"200":{"description":"Logs List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/logList"}}}}},"x-appwrite":{"method":"getLogs","weight":52,"cookies":false,"type":"","demo":"account\/get-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"}]}},"\/account\/name":{"patch":{"summary":"Update Account Name","operationId":"accountUpdateName","tags":["account"],"description":"Update currently logged in user account name.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updateName","weight":54,"cookies":false,"type":"","demo":"account\/update-name.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-name.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["name"]}}}}}},"\/account\/password":{"patch":{"summary":"Update Account Password","operationId":"accountUpdatePassword","tags":["account"],"description":"Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updatePassword","weight":55,"cookies":false,"type":"","demo":"account\/update-password.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-password.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"password":{"type":"string","description":"New user password. Must be at least 8 chars.","x-example":"password"},"oldPassword":{"type":"string","description":"Current user password. Must be at least 8 chars.","x-example":"password"}},"required":["password"]}}}}}},"\/account\/prefs":{"get":{"summary":"Get Account Preferences","operationId":"accountGetPrefs","tags":["account"],"description":"Get currently logged in user preferences as a key-value object.","responses":{"200":{"description":"Preferences","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/preferences"}}}}},"x-appwrite":{"method":"getPrefs","weight":50,"cookies":false,"type":"","demo":"account\/get-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]},"patch":{"summary":"Update Account Preferences","operationId":"accountUpdatePrefs","tags":["account"],"description":"Update currently logged in user account preferences. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updatePrefs","weight":57,"cookies":false,"type":"","demo":"account\/update-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"prefs":{"type":"object","description":"Prefs key-value JSON object.","x-example":"{}"}},"required":["prefs"]}}}}}},"\/account\/recovery":{"post":{"summary":"Create Password Recovery","operationId":"accountCreateRecovery","tags":["account"],"description":"Sends the user an email with a temporary secret key for password reset. When the user clicks the confirmation link he is redirected back to your app password reset URL with the secret key and email address values attached to the URL query string. Use the query string params to submit a request to the [PUT \/account\/recovery](\/docs\/client\/account#accountUpdateRecovery) endpoint to complete the process. The verification link sent to the user's email address is valid for 1 hour.","responses":{"201":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"createRecovery","weight":62,"cookies":false,"type":"","demo":"account\/create-recovery.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-recovery.md","rate-limit":10,"rate-time":3600,"rate-key":["url:{url},email:{param-email}","ip:{ip}"],"scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"url":{"type":"string","description":"URL to redirect the user back to your app from the recovery email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","x-example":"https:\/\/example.com"}},"required":["email","url"]}}}}},"put":{"summary":"Create Password Recovery (confirmation)","operationId":"accountUpdateRecovery","tags":["account"],"description":"Use this endpoint to complete the user account password reset. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST \/account\/recovery](\/docs\/client\/account#accountCreateRecovery) endpoint.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.","responses":{"200":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"updateRecovery","weight":63,"cookies":false,"type":"","demo":"account\/update-recovery.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-recovery.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid reset token.","x-example":"[SECRET]"},"password":{"type":"string","description":"New user password. Must be at least 8 chars.","x-example":"password"},"passwordAgain":{"type":"string","description":"Repeat new user password. Must be at least 8 chars.","x-example":"password"}},"required":["userId","secret","password","passwordAgain"]}}}}}},"\/account\/sessions":{"get":{"summary":"Get Account Sessions","operationId":"accountGetSessions","tags":["account"],"description":"Get currently logged in user list of active sessions across different devices.","responses":{"200":{"description":"Sessions List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sessionList"}}}}},"x-appwrite":{"method":"getSessions","weight":51,"cookies":false,"type":"","demo":"account\/get-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]},"post":{"summary":"Create Account Session","operationId":"accountCreateSession","tags":["account"],"description":"Allow the user to login into their account by providing a valid email and password combination. This route will create a new session for the user.","responses":{"201":{"description":"Session","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/session"}}}}},"x-appwrite":{"method":"createSession","weight":40,"cookies":false,"type":"","demo":"account\/create-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},email:{param-email}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","x-example":"password"}},"required":["email","password"]}}}}},"delete":{"summary":"Delete All Account Sessions","operationId":"accountDeleteSessions","tags":["account"],"description":"Delete all sessions from the user account and remove any sessions cookies from the end client.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSessions","weight":61,"cookies":false,"type":"","demo":"account\/delete-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-sessions.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/sessions\/anonymous":{"post":{"summary":"Create Anonymous Session","operationId":"accountCreateAnonymousSession","tags":["account"],"description":"Use this endpoint to allow a new user to register an anonymous account in your project. This route will also create a new session for the user. To allow the new user to convert an anonymous account to a normal account, you need to update its [email and password](\/docs\/client\/account#accountUpdateEmail) or create an [OAuth2 session](\/docs\/client\/account#accountCreateOAuth2Session).","responses":{"201":{"description":"Session","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/session"}}}}},"x-appwrite":{"method":"createAnonymousSession","weight":47,"cookies":false,"type":"","demo":"account\/create-anonymous-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-anonymous.md","rate-limit":50,"rate-time":3600,"rate-key":"ip:{ip}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}]}},"\/account\/sessions\/magic-url":{"post":{"summary":"Create Magic URL session","operationId":"accountCreateMagicURLSession","tags":["account"],"description":"Sends the user an email with a secret key for creating a session. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [PUT \/account\/sessions\/magic-url](\/docs\/client\/account#accountUpdateMagicURLSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour. If you are on a mobile device you can leave the URL parameter empty, so that the login completion will be handled by your Appwrite instance by default.","responses":{"201":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"createMagicURLSession","weight":45,"cookies":false,"type":"","demo":"account\/create-magic-u-r-l-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-magic-url-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},email:{param-email}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"url":{"type":"string","description":"URL to redirect the user back to your app from the magic URL login. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","x-example":"https:\/\/example.com"}},"required":["userId","email"]}}}}},"put":{"summary":"Create Magic URL session (confirmation)","operationId":"accountUpdateMagicURLSession","tags":["account"],"description":"Use this endpoint to complete creating the session with the Magic URL. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST \/account\/sessions\/magic-url](\/docs\/client\/account#accountCreateMagicURLSession) endpoint.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.","responses":{"200":{"description":"Session","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/session"}}}}},"x-appwrite":{"method":"updateMagicURLSession","weight":46,"cookies":false,"type":"","demo":"account\/update-magic-u-r-l-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-magic-url-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid verification token.","x-example":"[SECRET]"}},"required":["userId","secret"]}}}}}},"\/account\/sessions\/oauth2\/{provider}":{"get":{"summary":"Create Account Session with OAuth2","operationId":"accountCreateOAuth2Session","tags":["account"],"description":"Allow the user to login to their account using the OAuth2 provider of their choice. Each OAuth2 provider should be enabled from the Appwrite console first. Use the success and failure arguments to provide a redirect URL's back to your app when login is completed.\n\nIf there is already an active session, the new session will be attached to the logged-in account. If there are no active sessions, the server will attempt to look for a user with the same email address as the email received from the OAuth2 provider and attach the new session to the existing user. If no matching user is found - the server will create a new user..\n","responses":{"301":{"description":"File"}},"x-appwrite":{"method":"createOAuth2Session","weight":41,"cookies":false,"type":"webAuth","demo":"account\/create-o-auth2session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-oauth2.md","rate-limit":50,"rate-time":3600,"rate-key":"ip:{ip}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"provider","description":"OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, bitbucket, bitly, box, dailymotion, discord, dropbox, facebook, github, gitlab, google, linkedin, microsoft, notion, okta, paypal, paypalSandbox, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoom.","required":true,"schema":{"type":"string","x-example":"amazon"},"in":"path"},{"name":"success","description":"URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","required":false,"schema":{"type":"string","format":"url","x-example":"https:\/\/example.com","default":""},"in":"query"},{"name":"failure","description":"URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","required":false,"schema":{"type":"string","format":"url","x-example":"https:\/\/example.com","default":""},"in":"query"},{"name":"scopes","description":"A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 128 characters long.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]},"in":"query"}]}},"\/account\/sessions\/{sessionId}":{"get":{"summary":"Get Session By ID","operationId":"accountGetSession","tags":["account"],"description":"Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.","responses":{"200":{"description":"Session","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/session"}}}}},"x-appwrite":{"method":"getSession","weight":53,"cookies":false,"type":"","demo":"account\/get-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-session.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to get the current device session.","required":true,"schema":{"type":"string","x-example":"[SESSION_ID]"},"in":"path"}]},"patch":{"summary":"Update Session (Refresh Tokens)","operationId":"accountUpdateSession","tags":["account"],"description":"Access tokens have limited lifespan and expire to mitigate security risks. If session was created using an OAuth provider, this route can be used to \"refresh\" the access token.","responses":{"200":{"description":"Session","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/session"}}}}},"x-appwrite":{"method":"updateSession","weight":60,"cookies":false,"type":"","demo":"account\/update-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to update the current device session.","required":true,"schema":{"type":"string","x-example":"[SESSION_ID]"},"in":"path"}]},"delete":{"summary":"Delete Account Session","operationId":"accountDeleteSession","tags":["account"],"description":"Use this endpoint to log out the currently logged in user from all their account sessions across all of their different devices. When using the Session ID argument, only the unique session ID provided is deleted.\n","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSession","weight":59,"cookies":false,"type":"","demo":"account\/delete-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-session.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to delete the current device session.","required":true,"schema":{"type":"string","x-example":"[SESSION_ID]"},"in":"path"}]}},"\/account\/status":{"patch":{"summary":"Update Account Status","operationId":"accountUpdateStatus","tags":["account"],"description":"Block the currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. To completely delete a user, use the Users API instead.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updateStatus","weight":58,"cookies":false,"type":"","demo":"account\/update-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/verification":{"post":{"summary":"Create Email Verification","operationId":"accountCreateVerification","tags":["account"],"description":"Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](\/docs\/client\/account#accountUpdateVerification). The verification link sent to the user's email address is valid for 7 days.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.\n","responses":{"201":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"createVerification","weight":64,"cookies":false,"type":"","demo":"account\/create-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-verification.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{userId}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","x-example":"https:\/\/example.com"}},"required":["url"]}}}}},"put":{"summary":"Create Email Verification (confirmation)","operationId":"accountUpdateVerification","tags":["account"],"description":"Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.","responses":{"200":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"updateVerification","weight":65,"cookies":false,"type":"","demo":"account\/update-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-verification.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid verification token.","x-example":"[SECRET]"}},"required":["userId","secret"]}}}}}},"\/avatars\/browsers\/{code}":{"get":{"summary":"Get Browser Icon","operationId":"avatarsGetBrowser","tags":["avatars"],"description":"You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET \/account\/sessions](\/docs\/client\/account#accountGetSessions) endpoint. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getBrowser","weight":67,"cookies":false,"type":"location","demo":"avatars\/get-browser.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-browser.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"code","description":"Browser Code.","required":true,"schema":{"type":"string","x-example":"aa"},"in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"}]}},"\/avatars\/credit-cards\/{code}":{"get":{"summary":"Get Credit Card Icon","operationId":"avatarsGetCreditCard","tags":["avatars"],"description":"The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getCreditCard","weight":66,"cookies":false,"type":"location","demo":"avatars\/get-credit-card.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-credit-card.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"code","description":"Credit Card Code. Possible values: amex, argencard, cabal, censosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.","required":true,"schema":{"type":"string","x-example":"amex"},"in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"}]}},"\/avatars\/favicon":{"get":{"summary":"Get Favicon","operationId":"avatarsGetFavicon","tags":["avatars"],"description":"Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getFavicon","weight":70,"cookies":false,"type":"location","demo":"avatars\/get-favicon.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-favicon.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"url","description":"Website URL which you want to fetch the favicon from.","required":true,"schema":{"type":"string","format":"url","x-example":"https:\/\/example.com"},"in":"query"}]}},"\/avatars\/flags\/{code}":{"get":{"summary":"Get Country Flag","operationId":"avatarsGetFlag","tags":["avatars"],"description":"You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getFlag","weight":68,"cookies":false,"type":"location","demo":"avatars\/get-flag.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-flag.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"code","description":"Country Code. ISO Alpha-2 country code format.","required":true,"schema":{"type":"string","x-example":"af"},"in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"}]}},"\/avatars\/image":{"get":{"summary":"Get Image from URL","operationId":"avatarsGetImage","tags":["avatars"],"description":"Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make sure a 3rd party image is properly served using a TLS protocol.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 400x400px.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getImage","weight":69,"cookies":false,"type":"location","demo":"avatars\/get-image.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-image.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"url","description":"Image URL which you want to crop.","required":true,"schema":{"type":"string","format":"url","x-example":"https:\/\/example.com"},"in":"query"},{"name":"width","description":"Resize preview image width, Pass an integer between 0 to 2000. Defaults to 400.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":400},"in":"query"},{"name":"height","description":"Resize preview image height, Pass an integer between 0 to 2000. Defaults to 400.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":400},"in":"query"}]}},"\/avatars\/initials":{"get":{"summary":"Get User Initials","operationId":"avatarsGetInitials","tags":["avatars"],"description":"Use this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user name if you pass the 'name' parameter. If no name is given and no user is logged, an empty avatar will be returned.\n\nYou can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user's initials when reloading the same theme will always return for the same initials.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getInitials","weight":72,"cookies":false,"type":"location","demo":"avatars\/get-initials.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-initials.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"name","description":"Full Name. When empty, current user name or email will be used. Max length: 128 chars.","required":false,"schema":{"type":"string","x-example":"[NAME]","default":""},"in":"query"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":500},"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":500},"in":"query"},{"name":"color","description":"Changes text color. By default a random color will be picked and stay will persistent to the given name.","required":false,"schema":{"type":"string","default":""},"in":"query"},{"name":"background","description":"Changes background color. By default a random color will be picked and stay will persistent to the given name.","required":false,"schema":{"type":"string","default":""},"in":"query"}]}},"\/avatars\/qr":{"get":{"summary":"Get QR Code","operationId":"avatarsGetQR","tags":["avatars"],"description":"Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getQR","weight":71,"cookies":false,"type":"location","demo":"avatars\/get-q-r.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"text","description":"Plain text to be converted to QR code image.","required":true,"schema":{"type":"string","x-example":"[TEXT]"},"in":"query"},{"name":"size","description":"QR code size. Pass an integer between 1 to 1000. Defaults to 400.","required":false,"schema":{"type":"integer","format":"int32","x-example":1,"default":400},"in":"query"},{"name":"margin","description":"Margin from edge. Pass an integer between 0 to 10. Defaults to 1.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":1},"in":"query"},{"name":"download","description":"Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0.","required":false,"schema":{"type":"boolean","x-example":false,"default":false},"in":"query"}]}},"\/database\/collections":{"get":{"summary":"List Collections","operationId":"databaseListCollections","tags":["database"],"description":"Get a list of all the user collections. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's collections. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Collections List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/collectionList"}}}}},"x-appwrite":{"method":"listCollections","weight":74,"cookies":false,"type":"","demo":"database\/list-collections.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-collections.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of collection to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the collection used as the starting point for the query, excluding the collection itself. Should be used for efficient pagination when working with large sets of data.","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Collection","operationId":"databaseCreateCollection","tags":["database"],"description":"Create a new Collection.","responses":{"201":{"description":"Collection","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/collection"}}}}},"x-appwrite":{"method":"createCollection","weight":73,"cookies":false,"type":"","demo":"database\/create-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"collectionId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[COLLECTION_ID]"},"name":{"type":"string","description":"Collection name. Max length: 128 chars.","x-example":"[NAME]"},"permission":{"type":"string","description":"Specifies the permissions model used in this collection, which accepts either 'collection' or 'document'. For 'collection' level permission, the permissions specified in read and write params are applied to all documents in the collection. For 'document' level permissions, read and write permissions are specified in each document. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":"document"},"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}},"required":["collectionId","name","permission","read","write"]}}}}}},"\/database\/collections\/{collectionId}":{"get":{"summary":"Get Collection","operationId":"databaseGetCollection","tags":["database"],"description":"Get a collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.","responses":{"200":{"description":"Collection","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/collection"}}}}},"x-appwrite":{"method":"getCollection","weight":75,"cookies":false,"type":"","demo":"database\/get-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}]},"put":{"summary":"Update Collection","operationId":"databaseUpdateCollection","tags":["database"],"description":"Update a collection by its unique ID.","responses":{"200":{"description":"Collection","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/collection"}}}}},"x-appwrite":{"method":"updateCollection","weight":79,"cookies":false,"type":"","demo":"database\/update-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/update-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Collection name. Max length: 128 chars.","x-example":"[NAME]"},"permission":{"type":"string","description":"Permissions type model to use for reading documents in this collection. You can use collection-level permission set once on the collection using the `read` and `write` params, or you can set document-level permission where each document read and write params will decide who has access to read and write to each document individually. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":"document"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"enabled":{"type":"boolean","description":"Is collection enabled?","x-example":false}},"required":["name","permission"]}}}}},"delete":{"summary":"Delete Collection","operationId":"databaseDeleteCollection","tags":["database"],"description":"Delete a collection by its unique ID. Only users with write permissions have access to delete this resource.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteCollection","weight":80,"cookies":false,"type":"","demo":"database\/delete-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}]}},"\/database\/collections\/{collectionId}\/attributes":{"get":{"summary":"List Attributes","operationId":"databaseListAttributes","tags":["database"],"description":"","responses":{"200":{"description":"Attributes List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeList"}}}}},"x-appwrite":{"method":"listAttributes","weight":89,"cookies":false,"type":"","demo":"database\/list-attributes.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-attributes.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}]}},"\/database\/collections\/{collectionId}\/attributes\/boolean":{"post":{"summary":"Create Boolean Attribute","operationId":"databaseCreateBooleanAttribute","tags":["database"],"description":"Create a boolean attribute.\n","responses":{"201":{"description":"AttributeBoolean","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeBoolean"}}}}},"x-appwrite":{"method":"createBooleanAttribute","weight":88,"cookies":false,"type":"","demo":"database\/create-boolean-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-boolean-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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":"boolean","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":false},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/email":{"post":{"summary":"Create Email Attribute","operationId":"databaseCreateEmailAttribute","tags":["database"],"description":"Create an email attribute.\n","responses":{"201":{"description":"AttributeEmail","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeEmail"}}}}},"x-appwrite":{"method":"createEmailAttribute","weight":82,"cookies":false,"type":"","demo":"database\/create-email-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-email-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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":"email@example.com"},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/enum":{"post":{"summary":"Create Enum Attribute","operationId":"databaseCreateEnumAttribute","tags":["database"],"description":"","responses":{"201":{"description":"AttributeEnum","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeEnum"}}}}},"x-appwrite":{"method":"createEnumAttribute","weight":83,"cookies":false,"type":"","demo":"database\/create-enum-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-attribute-enum.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":null},"elements":{"type":"array","description":"Array of elements in enumerated type. Uses length of longest element to determine size. Maximum of 100 elements are allowed, each 1024 characters long.","x-example":null,"items":{"type":"string"}},"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":"[DEFAULT]"},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","elements","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/float":{"post":{"summary":"Create Float Attribute","operationId":"databaseCreateFloatAttribute","tags":["database"],"description":"Create a float attribute. Optionally, minimum and maximum values can be provided.\n","responses":{"201":{"description":"AttributeFloat","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeFloat"}}}}},"x-appwrite":{"method":"createFloatAttribute","weight":87,"cookies":false,"type":"","demo":"database\/create-float-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-float-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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},"min":{"type":"number","description":"Minimum value to enforce on new documents","x-example":null},"max":{"type":"number","description":"Maximum value to enforce on new documents","x-example":null},"default":{"type":"number","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":null},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/integer":{"post":{"summary":"Create Integer Attribute","operationId":"databaseCreateIntegerAttribute","tags":["database"],"description":"Create an integer attribute. Optionally, minimum and maximum values can be provided.\n","responses":{"201":{"description":"AttributeInteger","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeInteger"}}}}},"x-appwrite":{"method":"createIntegerAttribute","weight":86,"cookies":false,"type":"","demo":"database\/create-integer-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-integer-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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},"min":{"type":"integer","description":"Minimum value to enforce on new documents","x-example":null},"max":{"type":"integer","description":"Maximum value to enforce on new documents","x-example":null},"default":{"type":"integer","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":null},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/ip":{"post":{"summary":"Create IP Address Attribute","operationId":"databaseCreateIpAttribute","tags":["database"],"description":"Create IP address attribute.\n","responses":{"201":{"description":"AttributeIP","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeIp"}}}}},"x-appwrite":{"method":"createIpAttribute","weight":84,"cookies":false,"type":"","demo":"database\/create-ip-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-ip-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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":null},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/string":{"post":{"summary":"Create String Attribute","operationId":"databaseCreateStringAttribute","tags":["database"],"description":"Create a string attribute.\n","responses":{"201":{"description":"AttributeString","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeString"}}}}},"x-appwrite":{"method":"createStringAttribute","weight":81,"cookies":false,"type":"","demo":"database\/create-string-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-string-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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 text attributes, in number of characters.","x-example":1},"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":"[DEFAULT]"},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","size","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/url":{"post":{"summary":"Create URL Attribute","operationId":"databaseCreateUrlAttribute","tags":["database"],"description":"Create a URL attribute.\n","responses":{"201":{"description":"AttributeURL","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeUrl"}}}}},"x-appwrite":{"method":"createUrlAttribute","weight":85,"cookies":false,"type":"","demo":"database\/create-url-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-url-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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":"https:\/\/example.com"},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/{key}":{"get":{"summary":"Get Attribute","operationId":"databaseGetAttribute","tags":["database"],"description":"","responses":{"200":{"description":"AttributeBoolean, or AttributeInteger, or AttributeFloat, or AttributeEmail, or AttributeEnum, or AttributeURL, or AttributeIP, or AttributeString","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/attributeBoolean"},{"$ref":"#\/components\/schemas\/attributeInteger"},{"$ref":"#\/components\/schemas\/attributeFloat"},{"$ref":"#\/components\/schemas\/attributeEmail"},{"$ref":"#\/components\/schemas\/attributeEnum"},{"$ref":"#\/components\/schemas\/attributeUrl"},{"$ref":"#\/components\/schemas\/attributeIp"},{"$ref":"#\/components\/schemas\/attributeString"}]}}}}},"x-appwrite":{"method":"getAttribute","weight":90,"cookies":false,"type":"","demo":"database\/get-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"key","description":"Attribute Key.","required":true,"schema":{"type":"string"},"in":"path"}]},"delete":{"summary":"Delete Attribute","operationId":"databaseDeleteAttribute","tags":["database"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteAttribute","weight":91,"cookies":false,"type":"","demo":"database\/delete-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"key","description":"Attribute Key.","required":true,"schema":{"type":"string"},"in":"path"}]}},"\/database\/collections\/{collectionId}\/documents":{"get":{"summary":"List Documents","operationId":"databaseListDocuments","tags":["database"],"description":"Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's documents. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Documents List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/documentList"}}}}},"x-appwrite":{"method":"listDocuments","weight":97,"cookies":false,"type":"","demo":"database\/list-documents.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-documents.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"queries","description":"Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/database#querying-documents). Maximum of 100 queries are allowed, each 128 characters long.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]},"in":"query"},{"name":"limit","description":"Maximum number of documents to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the document used as the starting point for the query, excluding the document itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderAttributes","description":"Array of attributes used to sort results. Maximum of 100 order attributes are allowed, each 128 characters long.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]},"in":"query"},{"name":"orderTypes","description":"Array of order directions for sorting attribtues. Possible values are DESC for descending order, or ASC for ascending order. Maximum of 100 order types are allowed.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]},"in":"query"}]},"post":{"summary":"Create Document","operationId":"databaseCreateDocument","tags":["database"],"description":"Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](\/docs\/server\/database#databaseCreateCollection) API or directly from your database console.","responses":{"201":{"description":"Document","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/document"}}}}},"x-appwrite":{"method":"createDocument","weight":96,"cookies":false,"type":"","demo":"database\/create-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection). Make sure to define attributes before creating documents.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"documentId":{"type":"string","description":"Document ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[DOCUMENT_ID]"},"data":{"type":"object","description":"Document data as JSON object.","x-example":"{}"},"read":{"type":"array","description":"An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}},"required":["documentId","data"]}}}}}},"\/database\/collections\/{collectionId}\/documents\/{documentId}":{"get":{"summary":"Get Document","operationId":"databaseGetDocument","tags":["database"],"description":"Get a document by its unique ID. This endpoint response returns a JSON object with the document data.","responses":{"200":{"description":"Document","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/document"}}}}},"x-appwrite":{"method":"getDocument","weight":98,"cookies":false,"type":"","demo":"database\/get-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"documentId","description":"Document ID.","required":true,"schema":{"type":"string","x-example":"[DOCUMENT_ID]"},"in":"path"}]},"patch":{"summary":"Update Document","operationId":"databaseUpdateDocument","tags":["database"],"description":"Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.","responses":{"200":{"description":"Document","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/document"}}}}},"x-appwrite":{"method":"updateDocument","weight":100,"cookies":false,"type":"","demo":"database\/update-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/update-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"documentId","description":"Document ID.","required":true,"schema":{"type":"string","x-example":"[DOCUMENT_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Document data as JSON object. Include only attribute and value pairs to be updated.","x-example":"{}"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}},"required":["data"]}}}}},"delete":{"summary":"Delete Document","operationId":"databaseDeleteDocument","tags":["database"],"description":"Delete a document by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteDocument","weight":101,"cookies":false,"type":"","demo":"database\/delete-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"documentId","description":"Document ID.","required":true,"schema":{"type":"string","x-example":"[DOCUMENT_ID]"},"in":"path"}]}},"\/database\/collections\/{collectionId}\/documents\/{documentId}\/logs":{"get":{"summary":"List Document Logs","operationId":"databaseListDocumentLogs","tags":["database"],"description":"Get the document activity logs list by its unique ID.","responses":{"200":{"description":"Logs List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/logList"}}}}},"x-appwrite":{"method":"listDocumentLogs","weight":99,"cookies":false,"type":"","demo":"database\/list-document-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-document-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"documentId","description":"Document ID.","required":true,"schema":{"type":"string","x-example":"[DOCUMENT_ID]"},"in":"path"},{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"}]}},"\/database\/collections\/{collectionId}\/indexes":{"get":{"summary":"List Indexes","operationId":"databaseListIndexes","tags":["database"],"description":"","responses":{"200":{"description":"Indexes List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/indexList"}}}}},"x-appwrite":{"method":"listIndexes","weight":93,"cookies":false,"type":"","demo":"database\/list-indexes.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-indexes.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}]},"post":{"summary":"Create Index","operationId":"databaseCreateIndex","tags":["database"],"description":"","responses":{"201":{"description":"Index","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/index"}}}}},"x-appwrite":{"method":"createIndex","weight":92,"cookies":false,"type":"","demo":"database\/create-index.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-index.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"key":{"type":"string","description":"Index Key.","x-example":null},"type":{"type":"string","description":"Index type.","x-example":"key"},"attributes":{"type":"array","description":"Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.","x-example":null,"items":{"type":"string"}},"orders":{"type":"array","description":"Array of index orders. Maximum of 100 orders are allowed.","x-example":null,"items":{"type":"string"}}},"required":["key","type","attributes"]}}}}}},"\/database\/collections\/{collectionId}\/indexes\/{key}":{"get":{"summary":"Get Index","operationId":"databaseGetIndex","tags":["database"],"description":"","responses":{"200":{"description":"Index","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/index"}}}}},"x-appwrite":{"method":"getIndex","weight":94,"cookies":false,"type":"","demo":"database\/get-index.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-index.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"key","description":"Index Key.","required":true,"schema":{"type":"string"},"in":"path"}]},"delete":{"summary":"Delete Index","operationId":"databaseDeleteIndex","tags":["database"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteIndex","weight":95,"cookies":false,"type":"","demo":"database\/delete-index.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-index.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"key","description":"Index Key.","required":true,"schema":{"type":"string"},"in":"path"}]}},"\/database\/collections\/{collectionId}\/logs":{"get":{"summary":"List Collection Logs","operationId":"databaseListCollectionLogs","tags":["database"],"description":"Get the collection activity logs list by its unique ID.","responses":{"200":{"description":"Logs List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/logList"}}}}},"x-appwrite":{"method":"listCollectionLogs","weight":78,"cookies":false,"type":"","demo":"database\/list-collection-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-collection-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"}]}},"\/database\/usage":{"get":{"summary":"Get usage stats for the database","operationId":"databaseGetUsage","tags":["database"],"description":"","responses":{"200":{"description":"UsageDatabase","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/usageDatabase"}}}}},"x-appwrite":{"method":"getUsage","weight":76,"cookies":false,"type":"","demo":"database\/get-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"range","description":"Date range.","required":false,"schema":{"type":"string","x-example":"24h","default":"30d"},"in":"query"}]}},"\/database\/{collectionId}\/usage":{"get":{"summary":"Get usage stats for a collection","operationId":"databaseGetCollectionUsage","tags":["database"],"description":"","responses":{"200":{"description":"UsageCollection","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/usageCollection"}}}}},"x-appwrite":{"method":"getCollectionUsage","weight":77,"cookies":false,"type":"","demo":"database\/get-collection-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"range","description":"Date range.","required":false,"schema":{"type":"string","x-example":"24h","default":"30d"},"in":"query"},{"name":"collectionId","description":"Collection ID.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}]}},"\/functions":{"get":{"summary":"List Functions","operationId":"functionsList","tags":["functions"],"description":"Get a list of all the project's functions. You can use the query params to filter your results.","responses":{"200":{"description":"Functions List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/functionList"}}}}},"x-appwrite":{"method":"list","weight":203,"cookies":false,"type":"","demo":"functions\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-functions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of functions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the function used as the starting point for the query, excluding the function itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Function","operationId":"functionsCreate","tags":["functions"],"description":"Create a new function. You can pass a list of [permissions](\/docs\/permissions) to allow different project users or team with access to execute the function using the client API.","responses":{"201":{"description":"Function","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/function"}}}}},"x-appwrite":{"method":"create","weight":202,"cookies":false,"type":"","demo":"functions\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"functionId":{"type":"string","description":"Function ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[FUNCTION_ID]"},"name":{"type":"string","description":"Function name. Max length: 128 chars.","x-example":"[NAME]"},"execute":{"type":"array","description":"An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions. Maximum of 100 scopes are allowed, each 64 characters long.","x-example":null,"items":{"type":"string"}},"runtime":{"type":"string","description":"Execution runtime.","x-example":"node-14.5"},"vars":{"type":"object","description":"Key-value JSON object that will be passed to the function as environment variables.","x-example":"{}"},"events":{"type":"array","description":"Events list. Maximum of 100 events are allowed.","x-example":null,"items":{"type":"string"}},"schedule":{"type":"string","description":"Schedule CRON syntax.","x-example":null},"timeout":{"type":"integer","description":"Function maximum execution time in seconds.","x-example":1}},"required":["functionId","name","execute","runtime"]}}}}}},"\/functions\/runtimes":{"get":{"summary":"List runtimes","operationId":"functionsListRuntimes","tags":["functions"],"description":"Get a list of all runtimes that are currently active on your instance.","responses":{"200":{"description":"Runtimes List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/runtimeList"}}}}},"x-appwrite":{"method":"listRuntimes","weight":204,"cookies":false,"type":"","demo":"functions\/list-runtimes.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-runtimes.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/functions\/{functionId}":{"get":{"summary":"Get Function","operationId":"functionsGet","tags":["functions"],"description":"Get a function by its unique ID.","responses":{"200":{"description":"Function","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/function"}}}}},"x-appwrite":{"method":"get","weight":205,"cookies":false,"type":"","demo":"functions\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"}]},"put":{"summary":"Update Function","operationId":"functionsUpdate","tags":["functions"],"description":"Update function by its unique ID.","responses":{"200":{"description":"Function","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/function"}}}}},"x-appwrite":{"method":"update","weight":207,"cookies":false,"type":"","demo":"functions\/update.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Function name. Max length: 128 chars.","x-example":"[NAME]"},"execute":{"type":"array","description":"An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions. Maximum of 100 scopes are allowed, each 64 characters long.","x-example":null,"items":{"type":"string"}},"vars":{"type":"object","description":"Key-value JSON object that will be passed to the function as environment variables.","x-example":"{}"},"events":{"type":"array","description":"Events list. Maximum of 100 events are allowed.","x-example":null,"items":{"type":"string"}},"schedule":{"type":"string","description":"Schedule CRON syntax.","x-example":null},"timeout":{"type":"integer","description":"Maximum execution time in seconds.","x-example":1}},"required":["name","execute"]}}}}},"delete":{"summary":"Delete Function","operationId":"functionsDelete","tags":["functions"],"description":"Delete a function by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":209,"cookies":false,"type":"","demo":"functions\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/delete-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"}]}},"\/functions\/{functionId}\/deployments":{"get":{"summary":"List Deployments","operationId":"functionsListDeployments","tags":["functions"],"description":"Get a list of all the project's code deployments. You can use the query params to filter your results.","responses":{"200":{"description":"Deployments List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/deploymentList"}}}}},"x-appwrite":{"method":"listDeployments","weight":211,"cookies":false,"type":"","demo":"functions\/list-deployments.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-deployments.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of deployments to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the deployment used as the starting point for the query, excluding the deployment itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Deployment","operationId":"functionsCreateDeployment","tags":["functions"],"description":"Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.\n\nThis endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](\/docs\/functions).\n\nUse the \"command\" param to set the entry point used to execute your code.","responses":{"201":{"description":"Deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/deployment"}}}}},"x-appwrite":{"method":"createDeployment","weight":210,"cookies":false,"type":"","demo":"functions\/create-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":true,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"}],"requestBody":{"content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"entrypoint":{"type":"string","description":"Entrypoint File.","x-example":"[ENTRYPOINT]"},"code":{"type":"string","description":"Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.","x-example":null},"activate":{"type":"boolean","description":"Automatically activate the deployment when it is finished building.","x-example":false}},"required":["entrypoint","code","activate"]}}}}}},"\/functions\/{functionId}\/deployments\/{deploymentId}":{"get":{"summary":"Get Deployment","operationId":"functionsGetDeployment","tags":["functions"],"description":"Get a code deployment by its unique ID.","responses":{"200":{"description":"Deployments List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/deploymentList"}}}}},"x-appwrite":{"method":"getDeployment","weight":212,"cookies":false,"type":"","demo":"functions\/get-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"schema":{"type":"string","x-example":"[DEPLOYMENT_ID]"},"in":"path"}]},"patch":{"summary":"Update Function Deployment","operationId":"functionsUpdateDeployment","tags":["functions"],"description":"Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.","responses":{"200":{"description":"Function","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/function"}}}}},"x-appwrite":{"method":"updateDeployment","weight":208,"cookies":false,"type":"","demo":"functions\/update-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-function-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"schema":{"type":"string","x-example":"[DEPLOYMENT_ID]"},"in":"path"}]},"delete":{"summary":"Delete Deployment","operationId":"functionsDeleteDeployment","tags":["functions"],"description":"Delete a code deployment by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteDeployment","weight":213,"cookies":false,"type":"","demo":"functions\/delete-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/delete-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"schema":{"type":"string","x-example":"[DEPLOYMENT_ID]"},"in":"path"}]}},"\/functions\/{functionId}\/deployments\/{deploymentId}\/builds\/{buildId}":{"post":{"summary":"Retry Build","operationId":"functionsRetryBuild","tags":["functions"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"retryBuild","weight":217,"cookies":false,"type":"","demo":"functions\/retry-build.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/retry-build.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"schema":{"type":"string","x-example":"[DEPLOYMENT_ID]"},"in":"path"},{"name":"buildId","description":"Build unique ID.","required":true,"schema":{"type":"string","x-example":"[BUILD_ID]"},"in":"path"}]}},"\/functions\/{functionId}\/executions":{"get":{"summary":"List Executions","operationId":"functionsListExecutions","tags":["functions"],"description":"Get a list of all the current user function execution logs. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's executions. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Executions List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/executionList"}}}}},"x-appwrite":{"method":"listExecutions","weight":215,"cookies":false,"type":"","demo":"functions\/list-executions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-executions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"execution.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"limit","description":"Maximum number of executions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"cursor","description":"ID of the execution used as the starting point for the query, excluding the execution itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"}]},"post":{"summary":"Create Execution","operationId":"functionsCreateExecution","tags":["functions"],"description":"Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.","responses":{"201":{"description":"Execution","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/execution"}}}}},"x-appwrite":{"method":"createExecution","weight":214,"cookies":false,"type":"","demo":"functions\/create-execution.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-execution.md","rate-limit":60,"rate-time":60,"rate-key":"url:{url},ip:{ip}","scope":"execution.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"string","description":"String of custom data to send to function.","x-example":"[DATA]"},"async":{"type":"boolean","description":"Execute code asynchronously. Default value is true.","x-example":false}}}}}}}},"\/functions\/{functionId}\/executions\/{executionId}":{"get":{"summary":"Get Execution","operationId":"functionsGetExecution","tags":["functions"],"description":"Get a function execution log by its unique ID.","responses":{"200":{"description":"Execution","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/execution"}}}}},"x-appwrite":{"method":"getExecution","weight":216,"cookies":false,"type":"","demo":"functions\/get-execution.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-execution.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"execution.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"executionId","description":"Execution ID.","required":true,"schema":{"type":"string","x-example":"[EXECUTION_ID]"},"in":"path"}]}},"\/functions\/{functionId}\/usage":{"get":{"summary":"Get Function Usage","operationId":"functionsGetUsage","tags":["functions"],"description":"","responses":{"200":{"description":"UsageFunctions","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/usageFunctions"}}}}},"x-appwrite":{"method":"getUsage","weight":206,"cookies":false,"type":"","demo":"functions\/get-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"range","description":"Date range.","required":false,"schema":{"type":"string","x-example":"24h","default":"30d"},"in":"query"}]}},"\/health":{"get":{"summary":"Get HTTP","operationId":"healthGet","tags":["health"],"description":"Check the Appwrite HTTP server is up and responsive.","responses":{"200":{"description":"Health Status","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthStatus"}}}}},"x-appwrite":{"method":"get","weight":109,"cookies":false,"type":"","demo":"health\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/anti-virus":{"get":{"summary":"Get Antivirus","operationId":"healthGetAntivirus","tags":["health"],"description":"Check the Appwrite Antivirus server is up and connection is successful.","responses":{"200":{"description":"Health Antivirus","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthAntivirus"}}}}},"x-appwrite":{"method":"getAntivirus","weight":119,"cookies":false,"type":"","demo":"health\/get-antivirus.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-storage-anti-virus.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/cache":{"get":{"summary":"Get Cache","operationId":"healthGetCache","tags":["health"],"description":"Check the Appwrite in-memory cache server is up and connection is successful.","responses":{"200":{"description":"Health Status","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthStatus"}}}}},"x-appwrite":{"method":"getCache","weight":112,"cookies":false,"type":"","demo":"health\/get-cache.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-cache.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/db":{"get":{"summary":"Get DB","operationId":"healthGetDB","tags":["health"],"description":"Check the Appwrite database server is up and connection is successful.","responses":{"200":{"description":"Health Status","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthStatus"}}}}},"x-appwrite":{"method":"getDB","weight":111,"cookies":false,"type":"","demo":"health\/get-d-b.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-db.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/certificates":{"get":{"summary":"Get Certificates Queue","operationId":"healthGetQueueCertificates","tags":["health"],"description":"Get the number of certificates that are waiting to be issued against [Letsencrypt](https:\/\/letsencrypt.org\/) in the Appwrite internal queue server.","responses":{"200":{"description":"Health Queue","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthQueue"}}}}},"x-appwrite":{"method":"getQueueCertificates","weight":116,"cookies":false,"type":"","demo":"health\/get-queue-certificates.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-certificates.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/functions":{"get":{"summary":"Get Functions Queue","operationId":"healthGetQueueFunctions","tags":["health"],"description":"","responses":{"200":{"description":"Health Queue","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthQueue"}}}}},"x-appwrite":{"method":"getQueueFunctions","weight":117,"cookies":false,"type":"","demo":"health\/get-queue-functions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-functions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/logs":{"get":{"summary":"Get Logs Queue","operationId":"healthGetQueueLogs","tags":["health"],"description":"Get the number of logs that are waiting to be processed in the Appwrite internal queue server.","responses":{"200":{"description":"Health Queue","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthQueue"}}}}},"x-appwrite":{"method":"getQueueLogs","weight":115,"cookies":false,"type":"","demo":"health\/get-queue-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/webhooks":{"get":{"summary":"Get Webhooks Queue","operationId":"healthGetQueueWebhooks","tags":["health"],"description":"Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.","responses":{"200":{"description":"Health Queue","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthQueue"}}}}},"x-appwrite":{"method":"getQueueWebhooks","weight":114,"cookies":false,"type":"","demo":"health\/get-queue-webhooks.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-webhooks.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/storage\/local":{"get":{"summary":"Get Local Storage","operationId":"healthGetStorageLocal","tags":["health"],"description":"Check the Appwrite local storage device is up and connection is successful.","responses":{"200":{"description":"Health Status","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthStatus"}}}}},"x-appwrite":{"method":"getStorageLocal","weight":118,"cookies":false,"type":"","demo":"health\/get-storage-local.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-storage-local.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/time":{"get":{"summary":"Get Time","operationId":"healthGetTime","tags":["health"],"description":"Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https:\/\/en.wikipedia.org\/wiki\/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.","responses":{"200":{"description":"Health Time","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthTime"}}}}},"x-appwrite":{"method":"getTime","weight":113,"cookies":false,"type":"","demo":"health\/get-time.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-time.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/locale":{"get":{"summary":"Get User Locale","operationId":"localeGet","tags":["locale"],"description":"Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.\n\n([IP Geolocation by DB-IP](https:\/\/db-ip.com))","responses":{"200":{"description":"Locale","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/locale"}}}}},"x-appwrite":{"method":"get","weight":102,"cookies":false,"type":"","demo":"locale\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-locale.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/continents":{"get":{"summary":"List Continents","operationId":"localeGetContinents","tags":["locale"],"description":"List of all continents. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Continents List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/continentList"}}}}},"x-appwrite":{"method":"getContinents","weight":106,"cookies":false,"type":"","demo":"locale\/get-continents.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-continents.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/countries":{"get":{"summary":"List Countries","operationId":"localeGetCountries","tags":["locale"],"description":"List of all countries. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Countries List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/countryList"}}}}},"x-appwrite":{"method":"getCountries","weight":103,"cookies":false,"type":"","demo":"locale\/get-countries.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/countries\/eu":{"get":{"summary":"List EU Countries","operationId":"localeGetCountriesEU","tags":["locale"],"description":"List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Countries List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/countryList"}}}}},"x-appwrite":{"method":"getCountriesEU","weight":104,"cookies":false,"type":"","demo":"locale\/get-countries-e-u.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries-eu.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/countries\/phones":{"get":{"summary":"List Countries Phone Codes","operationId":"localeGetCountriesPhones","tags":["locale"],"description":"List of all countries phone codes. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Phones List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/phoneList"}}}}},"x-appwrite":{"method":"getCountriesPhones","weight":105,"cookies":false,"type":"","demo":"locale\/get-countries-phones.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries-phones.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/currencies":{"get":{"summary":"List Currencies","operationId":"localeGetCurrencies","tags":["locale"],"description":"List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Currencies List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/currencyList"}}}}},"x-appwrite":{"method":"getCurrencies","weight":107,"cookies":false,"type":"","demo":"locale\/get-currencies.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-currencies.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/languages":{"get":{"summary":"List Languages","operationId":"localeGetLanguages","tags":["locale"],"description":"List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.","responses":{"200":{"description":"Languages List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/languageList"}}}}},"x-appwrite":{"method":"getLanguages","weight":108,"cookies":false,"type":"","demo":"locale\/get-languages.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-languages.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/projects":{"get":{"summary":"List Projects","operationId":"projectsList","tags":["projects"],"description":"","responses":{"200":{"description":"Projects List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/projectList"}}}}},"x-appwrite":{"method":"list","weight":122,"cookies":false,"type":"","demo":"projects\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Results offset. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the project used as the starting point for the query, excluding the project itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Project","operationId":"projectsCreate","tags":["projects"],"description":"","responses":{"201":{"description":"Project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/project"}}}}},"x-appwrite":{"method":"create","weight":121,"cookies":false,"type":"","demo":"projects\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[PROJECT_ID]"},"name":{"type":"string","description":"Project name. Max length: 128 chars.","x-example":"[NAME]"},"teamId":{"type":"string","description":"Team unique ID.","x-example":"[TEAM_ID]"},"description":{"type":"string","description":"Project description. Max length: 256 chars.","x-example":"[DESCRIPTION]"},"logo":{"type":"string","description":"Project logo.","x-example":"[LOGO]"},"url":{"type":"string","description":"Project URL.","x-example":"https:\/\/example.com"},"legalName":{"type":"string","description":"Project legal Name. Max length: 256 chars.","x-example":"[LEGAL_NAME]"},"legalCountry":{"type":"string","description":"Project legal Country. Max length: 256 chars.","x-example":"[LEGAL_COUNTRY]"},"legalState":{"type":"string","description":"Project legal State. Max length: 256 chars.","x-example":"[LEGAL_STATE]"},"legalCity":{"type":"string","description":"Project legal City. Max length: 256 chars.","x-example":"[LEGAL_CITY]"},"legalAddress":{"type":"string","description":"Project legal Address. Max length: 256 chars.","x-example":"[LEGAL_ADDRESS]"},"legalTaxId":{"type":"string","description":"Project legal Tax ID. Max length: 256 chars.","x-example":"[LEGAL_TAX_ID]"}},"required":["projectId","name","teamId"]}}}}}},"\/projects\/{projectId}":{"get":{"summary":"Get Project","operationId":"projectsGet","tags":["projects"],"description":"","responses":{"200":{"description":"Project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/project"}}}}},"x-appwrite":{"method":"get","weight":123,"cookies":false,"type":"","demo":"projects\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}]},"patch":{"summary":"Update Project","operationId":"projectsUpdate","tags":["projects"],"description":"","responses":{"200":{"description":"Project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/project"}}}}},"x-appwrite":{"method":"update","weight":125,"cookies":false,"type":"","demo":"projects\/update.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Project name. Max length: 128 chars.","x-example":"[NAME]"},"description":{"type":"string","description":"Project description. Max length: 256 chars.","x-example":"[DESCRIPTION]"},"logo":{"type":"string","description":"Project logo.","x-example":"[LOGO]"},"url":{"type":"string","description":"Project URL.","x-example":"https:\/\/example.com"},"legalName":{"type":"string","description":"Project legal name. Max length: 256 chars.","x-example":"[LEGAL_NAME]"},"legalCountry":{"type":"string","description":"Project legal country. Max length: 256 chars.","x-example":"[LEGAL_COUNTRY]"},"legalState":{"type":"string","description":"Project legal state. Max length: 256 chars.","x-example":"[LEGAL_STATE]"},"legalCity":{"type":"string","description":"Project legal city. Max length: 256 chars.","x-example":"[LEGAL_CITY]"},"legalAddress":{"type":"string","description":"Project legal address. Max length: 256 chars.","x-example":"[LEGAL_ADDRESS]"},"legalTaxId":{"type":"string","description":"Project legal tax ID. Max length: 256 chars.","x-example":"[LEGAL_TAX_ID]"}},"required":["name"]}}}}},"delete":{"summary":"Delete Project","operationId":"projectsDelete","tags":["projects"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":130,"cookies":false,"type":"","demo":"projects\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"password":{"type":"string","description":"Your user password for confirmation. Must be at least 8 chars.","x-example":"password"}},"required":["password"]}}}}}},"\/projects\/{projectId}\/auth\/limit":{"patch":{"summary":"Update Project users limit","operationId":"projectsUpdateAuthLimit","tags":["projects"],"description":"","responses":{"200":{"description":"Project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/project"}}}}},"x-appwrite":{"method":"updateAuthLimit","weight":128,"cookies":false,"type":"","demo":"projects\/update-auth-limit.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"limit":{"type":"integer","description":"Set the max number of users allowed in this project. Use 0 for unlimited.","x-example":0}},"required":["limit"]}}}}}},"\/projects\/{projectId}\/auth\/{method}":{"patch":{"summary":"Update Project auth method status. Use this endpoint to enable or disable a given auth method for this project.","operationId":"projectsUpdateAuthStatus","tags":["projects"],"description":"","responses":{"200":{"description":"Project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/project"}}}}},"x-appwrite":{"method":"updateAuthStatus","weight":129,"cookies":false,"type":"","demo":"projects\/update-auth-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"method","description":"Auth Method. Possible values: email-password,magic-url,anonymous,invites,jwt,phone","required":true,"schema":{"type":"string","x-example":"email-password"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"status":{"type":"boolean","description":"Set the status of this auth method.","x-example":false}},"required":["status"]}}}}}},"\/projects\/{projectId}\/domains":{"get":{"summary":"List Domains","operationId":"projectsListDomains","tags":["projects"],"description":"","responses":{"200":{"description":"Domains List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/domainList"}}}}},"x-appwrite":{"method":"listDomains","weight":147,"cookies":false,"type":"","demo":"projects\/list-domains.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}]},"post":{"summary":"Create Domain","operationId":"projectsCreateDomain","tags":["projects"],"description":"","responses":{"201":{"description":"Domain","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/domain"}}}}},"x-appwrite":{"method":"createDomain","weight":146,"cookies":false,"type":"","demo":"projects\/create-domain.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"Domain name.","x-example":null}},"required":["domain"]}}}}}},"\/projects\/{projectId}\/domains\/{domainId}":{"get":{"summary":"Get Domain","operationId":"projectsGetDomain","tags":["projects"],"description":"","responses":{"200":{"description":"Domain","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/domain"}}}}},"x-appwrite":{"method":"getDomain","weight":148,"cookies":false,"type":"","demo":"projects\/get-domain.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"domainId","description":"Domain unique ID.","required":true,"schema":{"type":"string","x-example":"[DOMAIN_ID]"},"in":"path"}]},"delete":{"summary":"Delete Domain","operationId":"projectsDeleteDomain","tags":["projects"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteDomain","weight":150,"cookies":false,"type":"","demo":"projects\/delete-domain.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"domainId","description":"Domain unique ID.","required":true,"schema":{"type":"string","x-example":"[DOMAIN_ID]"},"in":"path"}]}},"\/projects\/{projectId}\/domains\/{domainId}\/verification":{"patch":{"summary":"Update Domain Verification Status","operationId":"projectsUpdateDomainVerification","tags":["projects"],"description":"","responses":{"200":{"description":"Domain","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/domain"}}}}},"x-appwrite":{"method":"updateDomainVerification","weight":149,"cookies":false,"type":"","demo":"projects\/update-domain-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"domainId","description":"Domain unique ID.","required":true,"schema":{"type":"string","x-example":"[DOMAIN_ID]"},"in":"path"}]}},"\/projects\/{projectId}\/keys":{"get":{"summary":"List Keys","operationId":"projectsListKeys","tags":["projects"],"description":"","responses":{"200":{"description":"API Keys List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/keyList"}}}}},"x-appwrite":{"method":"listKeys","weight":137,"cookies":false,"type":"","demo":"projects\/list-keys.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}]},"post":{"summary":"Create Key","operationId":"projectsCreateKey","tags":["projects"],"description":"","responses":{"201":{"description":"Key","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/key"}}}}},"x-appwrite":{"method":"createKey","weight":136,"cookies":false,"type":"","demo":"projects\/create-key.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Key name. Max length: 128 chars.","x-example":"[NAME]"},"scopes":{"type":"array","description":"Key scopes list. Maximum of 100 scopes are allowed.","x-example":null,"items":{"type":"string"}},"expire":{"type":"integer","description":"Key expiration time in Unix timestamp. Use 0 for unlimited expiration.","x-example":null}},"required":["name","scopes"]}}}}}},"\/projects\/{projectId}\/keys\/{keyId}":{"get":{"summary":"Get Key","operationId":"projectsGetKey","tags":["projects"],"description":"","responses":{"200":{"description":"Key","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/key"}}}}},"x-appwrite":{"method":"getKey","weight":138,"cookies":false,"type":"","demo":"projects\/get-key.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"keyId","description":"Key unique ID.","required":true,"schema":{"type":"string","x-example":"[KEY_ID]"},"in":"path"}]},"put":{"summary":"Update Key","operationId":"projectsUpdateKey","tags":["projects"],"description":"","responses":{"200":{"description":"Key","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/key"}}}}},"x-appwrite":{"method":"updateKey","weight":139,"cookies":false,"type":"","demo":"projects\/update-key.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"keyId","description":"Key unique ID.","required":true,"schema":{"type":"string","x-example":"[KEY_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Key name. Max length: 128 chars.","x-example":"[NAME]"},"scopes":{"type":"array","description":"Key scopes list. Maximum of 100 events are allowed.","x-example":null,"items":{"type":"string"}},"expire":{"type":"integer","description":"Key expiration time in Unix timestamp. Use 0 for unlimited expiration.","x-example":null}},"required":["name","scopes"]}}}}},"delete":{"summary":"Delete Key","operationId":"projectsDeleteKey","tags":["projects"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteKey","weight":140,"cookies":false,"type":"","demo":"projects\/delete-key.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"keyId","description":"Key unique ID.","required":true,"schema":{"type":"string","x-example":"[KEY_ID]"},"in":"path"}]}},"\/projects\/{projectId}\/oauth2":{"patch":{"summary":"Update Project OAuth2","operationId":"projectsUpdateOAuth2","tags":["projects"],"description":"","responses":{"200":{"description":"Project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/project"}}}}},"x-appwrite":{"method":"updateOAuth2","weight":127,"cookies":false,"type":"","demo":"projects\/update-o-auth2.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","description":"Provider Name","x-example":"amazon"},"appId":{"type":"string","description":"Provider app ID. Max length: 256 chars.","x-example":"[APP_ID]"},"secret":{"type":"string","description":"Provider secret key. Max length: 512 chars.","x-example":"[SECRET]"}},"required":["provider"]}}}}}},"\/projects\/{projectId}\/platforms":{"get":{"summary":"List Platforms","operationId":"projectsListPlatforms","tags":["projects"],"description":"","responses":{"200":{"description":"Platforms List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/platformList"}}}}},"x-appwrite":{"method":"listPlatforms","weight":142,"cookies":false,"type":"","demo":"projects\/list-platforms.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}]},"post":{"summary":"Create Platform","operationId":"projectsCreatePlatform","tags":["projects"],"description":"","responses":{"201":{"description":"Platform","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/platform"}}}}},"x-appwrite":{"method":"createPlatform","weight":141,"cookies":false,"type":"","demo":"projects\/create-platform.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"Platform type.","x-example":"web"},"name":{"type":"string","description":"Platform name. Max length: 128 chars.","x-example":"[NAME]"},"key":{"type":"string","description":"Package name for Android or bundle ID for iOS or macOS. Max length: 256 chars.","x-example":"[KEY]"},"store":{"type":"string","description":"App store or Google Play store ID. Max length: 256 chars.","x-example":"[STORE]"},"hostname":{"type":"string","description":"Platform client hostname. Max length: 256 chars.","x-example":null}},"required":["type","name"]}}}}}},"\/projects\/{projectId}\/platforms\/{platformId}":{"get":{"summary":"Get Platform","operationId":"projectsGetPlatform","tags":["projects"],"description":"","responses":{"200":{"description":"Platform","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/platform"}}}}},"x-appwrite":{"method":"getPlatform","weight":143,"cookies":false,"type":"","demo":"projects\/get-platform.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"platformId","description":"Platform unique ID.","required":true,"schema":{"type":"string","x-example":"[PLATFORM_ID]"},"in":"path"}]},"put":{"summary":"Update Platform","operationId":"projectsUpdatePlatform","tags":["projects"],"description":"","responses":{"200":{"description":"Platform","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/platform"}}}}},"x-appwrite":{"method":"updatePlatform","weight":144,"cookies":false,"type":"","demo":"projects\/update-platform.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"platformId","description":"Platform unique ID.","required":true,"schema":{"type":"string","x-example":"[PLATFORM_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Platform name. Max length: 128 chars.","x-example":"[NAME]"},"key":{"type":"string","description":"Package name for android or bundle ID for iOS. Max length: 256 chars.","x-example":"[KEY]"},"store":{"type":"string","description":"App store or Google Play store ID. Max length: 256 chars.","x-example":"[STORE]"},"hostname":{"type":"string","description":"Platform client URL. Max length: 256 chars.","x-example":null}},"required":["name"]}}}}},"delete":{"summary":"Delete Platform","operationId":"projectsDeletePlatform","tags":["projects"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deletePlatform","weight":145,"cookies":false,"type":"","demo":"projects\/delete-platform.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"platformId","description":"Platform unique ID.","required":true,"schema":{"type":"string","x-example":"[PLATFORM_ID]"},"in":"path"}]}},"\/projects\/{projectId}\/service":{"patch":{"summary":"Update service status","operationId":"projectsUpdateServiceStatus","tags":["projects"],"description":"","responses":{"200":{"description":"Project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/project"}}}}},"x-appwrite":{"method":"updateServiceStatus","weight":126,"cookies":false,"type":"","demo":"projects\/update-service-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"service":{"type":"string","description":"Service name.","x-example":"account"},"status":{"type":"boolean","description":"Service status.","x-example":false}},"required":["service","status"]}}}}}},"\/projects\/{projectId}\/usage":{"get":{"summary":"Get usage stats for a project","operationId":"projectsGetUsage","tags":["projects"],"description":"","responses":{"200":{"description":"UsageProject","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/usageProject"}}}}},"x-appwrite":{"method":"getUsage","weight":124,"cookies":false,"type":"","demo":"projects\/get-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"range","description":"Date range.","required":false,"schema":{"type":"string","x-example":"24h","default":"30d"},"in":"query"}]}},"\/projects\/{projectId}\/webhooks":{"get":{"summary":"List Webhooks","operationId":"projectsListWebhooks","tags":["projects"],"description":"","responses":{"200":{"description":"Webhooks List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/webhookList"}}}}},"x-appwrite":{"method":"listWebhooks","weight":132,"cookies":false,"type":"","demo":"projects\/list-webhooks.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}]},"post":{"summary":"Create Webhook","operationId":"projectsCreateWebhook","tags":["projects"],"description":"","responses":{"201":{"description":"Webhook","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/webhook"}}}}},"x-appwrite":{"method":"createWebhook","weight":131,"cookies":false,"type":"","demo":"projects\/create-webhook.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Webhook name. Max length: 128 chars.","x-example":"[NAME]"},"events":{"type":"array","description":"Events list. Maximum of 100 events are allowed.","x-example":null,"items":{"type":"string"}},"url":{"type":"string","description":"Webhook URL.","x-example":"https:\/\/example.com"},"security":{"type":"boolean","description":"Certificate verification, false for disabled or true for enabled.","x-example":false},"httpUser":{"type":"string","description":"Webhook HTTP user. Max length: 256 chars.","x-example":"[HTTP_USER]"},"httpPass":{"type":"string","description":"Webhook HTTP password. Max length: 256 chars.","x-example":"[HTTP_PASS]"}},"required":["name","events","url","security"]}}}}}},"\/projects\/{projectId}\/webhooks\/{webhookId}":{"get":{"summary":"Get Webhook","operationId":"projectsGetWebhook","tags":["projects"],"description":"","responses":{"200":{"description":"Webhook","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/webhook"}}}}},"x-appwrite":{"method":"getWebhook","weight":133,"cookies":false,"type":"","demo":"projects\/get-webhook.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"webhookId","description":"Webhook unique ID.","required":true,"schema":{"type":"string","x-example":"[WEBHOOK_ID]"},"in":"path"}]},"put":{"summary":"Update Webhook","operationId":"projectsUpdateWebhook","tags":["projects"],"description":"","responses":{"200":{"description":"Webhook","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/webhook"}}}}},"x-appwrite":{"method":"updateWebhook","weight":134,"cookies":false,"type":"","demo":"projects\/update-webhook.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"webhookId","description":"Webhook unique ID.","required":true,"schema":{"type":"string","x-example":"[WEBHOOK_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Webhook name. Max length: 128 chars.","x-example":"[NAME]"},"events":{"type":"array","description":"Events list. Maximum of 100 events are allowed.","x-example":null,"items":{"type":"string"}},"url":{"type":"string","description":"Webhook URL.","x-example":"https:\/\/example.com"},"security":{"type":"boolean","description":"Certificate verification, false for disabled or true for enabled.","x-example":false},"httpUser":{"type":"string","description":"Webhook HTTP user. Max length: 256 chars.","x-example":"[HTTP_USER]"},"httpPass":{"type":"string","description":"Webhook HTTP password. Max length: 256 chars.","x-example":"[HTTP_PASS]"},"signatureKey":{"type":"string","description":"Webhook signature key. Max length: 256 chars.","x-example":"[SIGNATURE_KEY]"}},"required":["name","events","url","security"]}}}}},"delete":{"summary":"Delete Webhook","operationId":"projectsDeleteWebhook","tags":["projects"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteWebhook","weight":135,"cookies":false,"type":"","demo":"projects\/delete-webhook.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"schema":{"type":"string","x-example":"[PROJECT_ID]"},"in":"path"},{"name":"webhookId","description":"Webhook unique ID.","required":true,"schema":{"type":"string","x-example":"[WEBHOOK_ID]"},"in":"path"}]}},"\/storage\/buckets":{"get":{"summary":"List buckets","operationId":"storageListBuckets","tags":["storage"],"description":"Get a list of all the storage buckets. You can use the query params to filter your results.","responses":{"200":{"description":"Buckets List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/bucketList"}}}}},"x-appwrite":{"method":"listBuckets","weight":152,"cookies":false,"type":"","demo":"storage\/list-buckets.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/list-buckets.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Results offset. The default value is 0. Use this param to manage pagination.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the bucket used as the starting point for the query, excluding the bucket itself. Should be used for efficient pagination when working with large sets of data.","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create bucket","operationId":"storageCreateBucket","tags":["storage"],"description":"Create a new storage bucket.","responses":{"201":{"description":"Bucket","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/bucket"}}}}},"x-appwrite":{"method":"createBucket","weight":151,"cookies":false,"type":"","demo":"storage\/create-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/create-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"bucketId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string `unique()` to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[BUCKET_ID]"},"name":{"type":"string","description":"Bucket name","x-example":"[NAME]"},"permission":{"type":"string","description":"Permissions type model to use for reading files in this bucket. You can use bucket-level permission set once on the bucket using the `read` and `write` params, or you can set file-level permission where each file read and write params will decide who has access to read and write to each file individually. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","x-example":"file"},"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"enabled":{"type":"boolean","description":"Is bucket enabled?","x-example":false},"maximumFileSize":{"type":"integer","description":"Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self-hosted setups you can change the max limit by changing the `_APP_STORAGE_LIMIT` environment variable. [Learn more about storage environment variables](docs\/environment-variables#storage)","x-example":1},"allowedFileExtensions":{"type":"array","description":"Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.","x-example":null,"items":{"type":"string"}},"encryption":{"type":"boolean","description":"Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled","x-example":false},"antivirus":{"type":"boolean","description":"Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled","x-example":false}},"required":["bucketId","name","permission"]}}}}}},"\/storage\/buckets\/{bucketId}":{"get":{"summary":"Get Bucket","operationId":"storageGetBucket","tags":["storage"],"description":"Get a storage bucket by its unique ID. This endpoint response returns a JSON object with the storage bucket metadata.","responses":{"200":{"description":"Bucket","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/bucket"}}}}},"x-appwrite":{"method":"getBucket","weight":153,"cookies":false,"type":"","demo":"storage\/get-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"bucketId","description":"Bucket unique ID.","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"}]},"put":{"summary":"Update Bucket","operationId":"storageUpdateBucket","tags":["storage"],"description":"Update a storage bucket by its unique ID.","responses":{"200":{"description":"Bucket","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/bucket"}}}}},"x-appwrite":{"method":"updateBucket","weight":154,"cookies":false,"type":"","demo":"storage\/update-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/update-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"bucketId","description":"Bucket unique ID.","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Bucket name","x-example":"[NAME]"},"permission":{"type":"string","description":"Permissions type model to use for reading files in this bucket. You can use bucket-level permission set once on the bucket using the `read` and `write` params, or you can set file-level permission where each file read and write params will decide who has access to read and write to each file individually. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","x-example":"file"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"enabled":{"type":"boolean","description":"Is bucket enabled?","x-example":false},"maximumFileSize":{"type":"integer","description":"Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self hosted version you can change the limit by changing _APP_STORAGE_LIMIT environment variable. [Learn more about storage environment variables](docs\/environment-variables#storage)","x-example":1},"allowedFileExtensions":{"type":"array","description":"Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.","x-example":null,"items":{"type":"string"}},"encryption":{"type":"boolean","description":"Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled","x-example":false},"antivirus":{"type":"boolean","description":"Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled","x-example":false}},"required":["name","permission"]}}}}},"delete":{"summary":"Delete Bucket","operationId":"storageDeleteBucket","tags":["storage"],"description":"Delete a storage bucket by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteBucket","weight":155,"cookies":false,"type":"","demo":"storage\/delete-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/delete-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"bucketId","description":"Bucket unique ID.","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files":{"get":{"summary":"List Files","operationId":"storageListFiles","tags":["storage"],"description":"Get a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's files. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Files List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/fileList"}}}}},"x-appwrite":{"method":"listFiles","weight":157,"cookies":false,"type":"","demo":"storage\/list-files.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/list-files.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of files to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the file used as the starting point for the query, excluding the file itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create File","operationId":"storageCreateFile","tags":["storage"],"description":"Create a new file. Before using this route, you should create a new bucket resource using either a [server integration](\/docs\/server\/database#storageCreateBucket) API or directly from your Appwrite console.\n\nLarger files should be uploaded using multiple requests with the [content-range](https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Headers\/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.\n\nWhen the first request is sent, the server will return the **File** object, and the subsequent part request must include the file's **id** in `x-appwrite-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.\n\nIf you're creating a new file using one of the Appwrite SDKs, all the chunking logic will be managed by the SDK internally.\n","responses":{"201":{"description":"File","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/file"}}}}},"x-appwrite":{"method":"createFile","weight":156,"cookies":false,"type":"upload","demo":"storage\/create-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/create-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"}],"requestBody":{"content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"fileId":{"type":"string","description":"File ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[FILE_ID]","x-upload-id":true},"file":{"type":"string","description":"Binary file.","x-example":null},"read":{"type":"array","description":"An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}},"required":["fileId","file"]}}}}}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}":{"get":{"summary":"Get File","operationId":"storageGetFile","tags":["storage"],"description":"Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.","responses":{"200":{"description":"File","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/file"}}}}},"x-appwrite":{"method":"getFile","weight":158,"cookies":false,"type":"","demo":"storage\/get-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}]},"put":{"summary":"Update File","operationId":"storageUpdateFile","tags":["storage"],"description":"Update a file by its unique ID. Only users with write permissions have access to update this resource.","responses":{"200":{"description":"File","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/file"}}}}},"x-appwrite":{"method":"updateFile","weight":162,"cookies":false,"type":"","demo":"storage\/update-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/update-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File unique ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}}}}}}},"delete":{"summary":"Delete File","operationId":"storageDeleteFile","tags":["storage"],"description":"Delete a file by its unique ID. Only users with write permissions have access to delete this resource.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteFile","weight":163,"cookies":false,"type":"","demo":"storage\/delete-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/delete-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/download":{"get":{"summary":"Get File for Download","operationId":"storageGetFileDownload","tags":["storage"],"description":"Get a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.","responses":{"200":{"description":"File"}},"x-appwrite":{"method":"getFileDownload","weight":160,"cookies":false,"type":"location","demo":"storage\/get-file-download.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-download.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/preview":{"get":{"summary":"Get File Preview","operationId":"storageGetFilePreview","tags":["storage"],"description":"Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image. Preview is supported only for image files smaller than 10MB.","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getFilePreview","weight":159,"cookies":false,"type":"location","demo":"storage\/get-file-preview.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-preview.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"},{"name":"width","description":"Resize preview image width, Pass an integer between 0 to 4000.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"height","description":"Resize preview image height, Pass an integer between 0 to 4000.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"gravity","description":"Image crop gravity. Can be one of center,top-left,top,top-right,left,right,bottom-left,bottom,bottom-right","required":false,"schema":{"type":"string","x-example":"center","default":"center"},"in":"query"},{"name":"quality","description":"Preview image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"borderWidth","description":"Preview image border in pixels. Pass an integer between 0 to 100. Defaults to 0.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"borderColor","description":"Preview image border color. Use a valid HEX color, no # is needed for prefix.","required":false,"schema":{"type":"string","default":""},"in":"query"},{"name":"borderRadius","description":"Preview image border radius in pixels. Pass an integer between 0 to 4000.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"opacity","description":"Preview image opacity. Only works with images having an alpha channel (like png). Pass a number between 0 to 1.","required":false,"schema":{"type":"number","format":"float","x-example":0,"default":1},"in":"query"},{"name":"rotation","description":"Preview image rotation in degrees. Pass an integer between -360 and 360.","required":false,"schema":{"type":"integer","format":"int32","x-example":-360,"default":0},"in":"query"},{"name":"background","description":"Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix.","required":false,"schema":{"type":"string","default":""},"in":"query"},{"name":"output","description":"Output format type (jpeg, jpg, png, gif and webp).","required":false,"schema":{"type":"string","x-example":"jpg","default":""},"in":"query"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/view":{"get":{"summary":"Get File for View","operationId":"storageGetFileView","tags":["storage"],"description":"Get a file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header.","responses":{"200":{"description":"File"}},"x-appwrite":{"method":"getFileView","weight":161,"cookies":false,"type":"location","demo":"storage\/get-file-view.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-view.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}]}},"\/storage\/usage":{"get":{"summary":"Get usage stats for storage","operationId":"storageGetUsage","tags":["storage"],"description":"","responses":{"200":{"description":"StorageUsage","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/usageStorage"}}}}},"x-appwrite":{"method":"getUsage","weight":164,"cookies":false,"type":"","demo":"storage\/get-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"range","description":"Date range.","required":false,"schema":{"type":"string","x-example":"24h","default":"30d"},"in":"query"}]}},"\/storage\/{bucketId}\/usage":{"get":{"summary":"Get usage stats for a storage bucket","operationId":"storageGetBucketUsage","tags":["storage"],"description":"","responses":{"200":{"description":"UsageBuckets","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/usageBuckets"}}}}},"x-appwrite":{"method":"getBucketUsage","weight":165,"cookies":false,"type":"","demo":"storage\/get-bucket-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"bucketId","description":"Bucket ID.","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"range","description":"Date range.","required":false,"schema":{"type":"string","x-example":"24h","default":"30d"},"in":"query"}]}},"\/teams":{"get":{"summary":"List Teams","operationId":"teamsList","tags":["teams"],"description":"Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.\r\n\r\nIn admin mode, this endpoint returns a list of all the teams in the current project. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Teams List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/teamList"}}}}},"x-appwrite":{"method":"list","weight":167,"cookies":false,"type":"","demo":"teams\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/list-teams.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of teams to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the team used as the starting point for the query, excluding the team itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Team","operationId":"teamsCreate","tags":["teams"],"description":"Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.","responses":{"201":{"description":"Team","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/team"}}}}},"x-appwrite":{"method":"create","weight":166,"cookies":false,"type":"","demo":"teams\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/create-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"teamId":{"type":"string","description":"Team ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[TEAM_ID]"},"name":{"type":"string","description":"Team name. Max length: 128 chars.","x-example":"[NAME]"},"roles":{"type":"array","description":"Array of strings. Use this param to set the roles in the team for the user who created it. The default role is **owner**. A role can be any string. Learn more about [roles and permissions](\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","x-example":null,"items":{"type":"string"}}},"required":["teamId","name"]}}}}}},"\/teams\/{teamId}":{"get":{"summary":"Get Team","operationId":"teamsGet","tags":["teams"],"description":"Get a team by its ID. All team members have read access for this resource.","responses":{"200":{"description":"Team","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/team"}}}}},"x-appwrite":{"method":"get","weight":168,"cookies":false,"type":"","demo":"teams\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"}]},"put":{"summary":"Update Team","operationId":"teamsUpdate","tags":["teams"],"description":"Update a team using its ID. Only members with the owner role can update the team.","responses":{"200":{"description":"Team","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/team"}}}}},"x-appwrite":{"method":"update","weight":169,"cookies":false,"type":"","demo":"teams\/update.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"New team name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["name"]}}}}},"delete":{"summary":"Delete Team","operationId":"teamsDelete","tags":["teams"],"description":"Delete a team using its ID. Only team members with the owner role can delete the team.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":170,"cookies":false,"type":"","demo":"teams\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/delete-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"}]}},"\/teams\/{teamId}\/logs":{"get":{"summary":"List Team Logs","operationId":"teamsListLogs","tags":["teams"],"description":"Get the team activity logs list by its unique ID.","responses":{"200":{"description":"Logs List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/logList"}}}}},"x-appwrite":{"method":"listLogs","weight":177,"cookies":false,"type":"","demo":"teams\/list-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"}]}},"\/teams\/{teamId}\/memberships":{"get":{"summary":"Get Team Memberships","operationId":"teamsGetMemberships","tags":["teams"],"description":"Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint.","responses":{"200":{"description":"Memberships List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membershipList"}}}}},"x-appwrite":{"method":"getMemberships","weight":172,"cookies":false,"type":"","demo":"teams\/get-memberships.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-members.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of memberships to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the membership used as the starting point for the query, excluding the membership itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Team Membership","operationId":"teamsCreateMembership","tags":["teams"],"description":"Invite a new member to join your team. If initiated from the client SDK, an email with a link to join the team will be sent to the member's email address and an account will be created for them should they not be signed up already. If initiated from server-side SDKs, the new member will automatically be added to the team.\n\nUse the 'url' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the [Update Team Membership Status](\/docs\/client\/teams#teamsUpdateMembershipStatus) endpoint to allow the user to accept the invitation to the team. \n\nPlease note that to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when adding your platforms in the console interface.","responses":{"201":{"description":"Membership","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membership"}}}}},"x-appwrite":{"method":"createMembership","weight":171,"cookies":false,"type":"","demo":"teams\/create-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/create-team-membership.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email of the new team member.","x-example":"email@example.com"},"roles":{"type":"array","description":"Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","x-example":null,"items":{"type":"string"}},"url":{"type":"string","description":"URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","x-example":"https:\/\/example.com"},"name":{"type":"string","description":"Name of the new team member. Max length: 128 chars.","x-example":"[NAME]"}},"required":["email","roles","url"]}}}}}},"\/teams\/{teamId}\/memberships\/{membershipId}":{"get":{"summary":"Get Team Membership","operationId":"teamsGetMembership","tags":["teams"],"description":"Get a team member by the membership unique id. All team members have read access for this resource.","responses":{"200":{"description":"Memberships List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membershipList"}}}}},"x-appwrite":{"method":"getMembership","weight":173,"cookies":false,"type":"","demo":"teams\/get-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-member.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"schema":{"type":"string","x-example":"[MEMBERSHIP_ID]"},"in":"path"}]},"patch":{"summary":"Update Membership Roles","operationId":"teamsUpdateMembershipRoles","tags":["teams"],"description":"Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](\/docs\/permissions).","responses":{"200":{"description":"Membership","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membership"}}}}},"x-appwrite":{"method":"updateMembershipRoles","weight":174,"cookies":false,"type":"","demo":"teams\/update-membership-roles.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team-membership-roles.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"schema":{"type":"string","x-example":"[MEMBERSHIP_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","description":"An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https:\/\/appwrite.io\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","x-example":null,"items":{"type":"string"}}},"required":["roles"]}}}}},"delete":{"summary":"Delete Team Membership","operationId":"teamsDeleteMembership","tags":["teams"],"description":"This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteMembership","weight":176,"cookies":false,"type":"","demo":"teams\/delete-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/delete-team-membership.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"schema":{"type":"string","x-example":"[MEMBERSHIP_ID]"},"in":"path"}]}},"\/teams\/{teamId}\/memberships\/{membershipId}\/status":{"patch":{"summary":"Update Team Membership Status","operationId":"teamsUpdateMembershipStatus","tags":["teams"],"description":"Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email received by the user.\n\nIf the request is successful, a session for the user is automatically created.\n","responses":{"200":{"description":"Membership","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membership"}}}}},"x-appwrite":{"method":"updateMembershipStatus","weight":175,"cookies":false,"type":"","demo":"teams\/update-membership-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team-membership-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"schema":{"type":"string","x-example":"[MEMBERSHIP_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","x-example":"[USER_ID]"},"secret":{"type":"string","description":"Secret key.","x-example":"[SECRET]"}},"required":["userId","secret"]}}}}}},"\/users":{"get":{"summary":"List Users","operationId":"usersList","tags":["users"],"description":"Get a list of all the project's users. You can use the query params to filter your results.","responses":{"200":{"description":"Users List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/userList"}}}}},"x-appwrite":{"method":"list","weight":186,"cookies":false,"type":"","demo":"users\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/list-users.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of users to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the user used as the starting point for the query, excluding the user itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create User","operationId":"usersCreate","tags":["users"],"description":"Create a new user.","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"create","weight":178,"cookies":false,"type":"","demo":"users\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"Plaintext user password. Must be at least 8 chars.","x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/import\/argon2":{"post":{"summary":"Create User with Argon2 Password","operationId":"usersCreateArgon2User","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createArgon2User","weight":181,"cookies":false,"type":"","demo":"users\/create-argon2user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-argon2-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using Argon2.","x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/import\/bcrypt":{"post":{"summary":"Create User with BCrypt Password","operationId":"usersCreateBcryptUser","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createBcryptUser","weight":179,"cookies":false,"type":"","demo":"users\/create-bcrypt-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-bcrypt-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using BCrypt.","x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/import\/md5":{"post":{"summary":"Create User with MD5 Password","operationId":"usersCreateMD5User","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createMD5User","weight":180,"cookies":false,"type":"","demo":"users\/create-m-d5user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-md5-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using MD5.","x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/import\/phpass":{"post":{"summary":"Create User with PHPass Password","operationId":"usersCreatePHPassUser","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createPHPassUser","weight":183,"cookies":false,"type":"","demo":"users\/create-p-h-pass-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-phpass-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using PHPass.","x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/import\/scrypt":{"post":{"summary":"Create User with SCrypt Password","operationId":"usersCreateSCryptUser","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createSCryptUser","weight":184,"cookies":false,"type":"","demo":"users\/create-s-crypt-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-scrypt-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using SCrypt.","x-example":"password"},"passwordSalt":{"type":"string","description":"Optional salt used to hash password.","x-example":"[PASSWORD_SALT]"},"passwordCpu":{"type":"integer","description":"Optional CPU cost used to hash password.","x-example":null},"passwordMemory":{"type":"integer","description":"Optional memory cost used to hash password.","x-example":null},"passwordParallel":{"type":"integer","description":"Optional parallelization cost used to hash password.","x-example":null},"passwordLength":{"type":"integer","description":"Optional hash length used to hash password.","x-example":null},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/import\/scrypt-modified":{"post":{"summary":"Create User with SCrypt Modified Password","operationId":"usersCreateSCryptModifiedUser","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createSCryptModifiedUser","weight":185,"cookies":false,"type":"","demo":"users\/create-s-crypt-modified-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-scrypt-modified-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using SCrypt Modified.","x-example":"password"},"passwordSalt":{"type":"string","description":"Salt used to hash password.","x-example":"[PASSWORD_SALT]"},"passwordSaltSeparator":{"type":"string","description":"Salt separator used to hash password.","x-example":"[PASSWORD_SALT_SEPARATOR]"},"passwordSignerKey":{"type":"string","description":"Signer key used to hash password.","x-example":"[PASSWORD_SIGNER_KEY]"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password","passwordSalt","passwordSaltSeparator","passwordSignerKey"]}}}}}},"\/users\/import\/sha":{"post":{"summary":"Create User with SHA Password","operationId":"usersCreateSHAUser","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createSHAUser","weight":182,"cookies":false,"type":"","demo":"users\/create-s-h-a-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-sha-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using SHA.","x-example":"password"},"passwordVersion":{"type":"string","description":"Optional SHA version used to hash password. Allowed values are: 'sha1', 'sha224', 'sha256', 'sha384', 'sha512\/224', 'sha512\/256', 'sha512', 'sha3-224', 'sha3-256', 'sha3-384', 'sha3-512'","x-example":"sha1"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/usage":{"get":{"summary":"Get usage stats for the users API","operationId":"usersGetUsage","tags":["users"],"description":"","responses":{"200":{"description":"UsageUsers","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/usageUsers"}}}}},"x-appwrite":{"method":"getUsage","weight":201,"cookies":false,"type":"","demo":"users\/get-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"range","description":"Date range.","required":false,"schema":{"type":"string","x-example":"24h","default":"30d"},"in":"query"},{"name":"provider","description":"Provider Name.","required":false,"schema":{"type":"string","x-example":"email","default":""},"in":"query"}]}},"\/users\/{userId}":{"get":{"summary":"Get User","operationId":"usersGet","tags":["users"],"description":"Get a user by its unique ID.","responses":{"200":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"get","weight":187,"cookies":false,"type":"","demo":"users\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}]},"delete":{"summary":"Delete User","operationId":"usersDelete","tags":["users"],"description":"Delete a user by its unique ID, thereby releasing it's ID. Since ID is released and can be reused, all user-related resources like documents or storage files should be deleted before user deletion. If you want to keep ID reserved, use the [updateStatus](\/docs\/server\/users#usersUpdateStatus) endpoint instead.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":200,"cookies":false,"type":"","demo":"users\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/delete.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}]}},"\/users\/{userId}\/email":{"patch":{"summary":"Update Email","operationId":"usersUpdateEmail","tags":["users"],"description":"Update the user email by its unique ID.","responses":{"200":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"updateEmail","weight":196,"cookies":false,"type":"","demo":"users\/update-email.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-email.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","x-example":"email@example.com"}},"required":["email"]}}}}}},"\/users\/{userId}\/logs":{"get":{"summary":"Get User Logs","operationId":"usersGetLogs","tags":["users"],"description":"Get the user activity logs list by its unique ID.","responses":{"200":{"description":"Logs List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/logList"}}}}},"x-appwrite":{"method":"getLogs","weight":191,"cookies":false,"type":"","demo":"users\/get-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"},{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"}]}},"\/users\/{userId}\/memberships":{"get":{"summary":"Get User Memberships","operationId":"usersGetMemberships","tags":["users"],"description":"Get the user membership list by its unique ID.","responses":{"200":{"description":"Memberships List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membershipList"}}}}},"x-appwrite":{"method":"getMemberships","weight":190,"cookies":false,"type":"","demo":"users\/get-memberships.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-memberships.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}]}},"\/users\/{userId}\/name":{"patch":{"summary":"Update Name","operationId":"usersUpdateName","tags":["users"],"description":"Update the user name by its unique ID.","responses":{"200":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"updateName","weight":194,"cookies":false,"type":"","demo":"users\/update-name.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-name.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["name"]}}}}}},"\/users\/{userId}\/password":{"patch":{"summary":"Update Password","operationId":"usersUpdatePassword","tags":["users"],"description":"Update the user password by its unique ID.","responses":{"200":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"updatePassword","weight":195,"cookies":false,"type":"","demo":"users\/update-password.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-password.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"password":{"type":"string","description":"New user password. Must be at least 8 chars.","x-example":"password"}},"required":["password"]}}}}}},"\/users\/{userId}\/prefs":{"get":{"summary":"Get User Preferences","operationId":"usersGetPrefs","tags":["users"],"description":"Get the user preferences by its unique ID.","responses":{"200":{"description":"Preferences","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/preferences"}}}}},"x-appwrite":{"method":"getPrefs","weight":188,"cookies":false,"type":"","demo":"users\/get-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}]},"patch":{"summary":"Update User Preferences","operationId":"usersUpdatePrefs","tags":["users"],"description":"Update the user preferences by its unique ID. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.","responses":{"200":{"description":"Preferences","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/preferences"}}}}},"x-appwrite":{"method":"updatePrefs","weight":197,"cookies":false,"type":"","demo":"users\/update-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"prefs":{"type":"object","description":"Prefs key-value JSON object.","x-example":"{}"}},"required":["prefs"]}}}}}},"\/users\/{userId}\/sessions":{"get":{"summary":"Get User Sessions","operationId":"usersGetSessions","tags":["users"],"description":"Get the user sessions list by its unique ID.","responses":{"200":{"description":"Sessions List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sessionList"}}}}},"x-appwrite":{"method":"getSessions","weight":189,"cookies":false,"type":"","demo":"users\/get-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}]},"delete":{"summary":"Delete User Sessions","operationId":"usersDeleteSessions","tags":["users"],"description":"Delete all user's sessions by using the user's unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSessions","weight":199,"cookies":false,"type":"","demo":"users\/delete-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/delete-user-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}]}},"\/users\/{userId}\/sessions\/{sessionId}":{"delete":{"summary":"Delete User Session","operationId":"usersDeleteSession","tags":["users"],"description":"Delete a user sessions by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSession","weight":198,"cookies":false,"type":"","demo":"users\/delete-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/delete-user-session.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"},{"name":"sessionId","description":"Session ID.","required":true,"schema":{"type":"string","x-example":"[SESSION_ID]"},"in":"path"}]}},"\/users\/{userId}\/status":{"patch":{"summary":"Update User Status","operationId":"usersUpdateStatus","tags":["users"],"description":"Update the user status by its unique ID. Use this endpoint as an alternative to deleting a user if you want to keep user's ID reserved.","responses":{"200":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"updateStatus","weight":192,"cookies":false,"type":"","demo":"users\/update-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"status":{"type":"boolean","description":"User Status. To activate the user pass `true` and to block the user pass `false`.","x-example":false}},"required":["status"]}}}}}},"\/users\/{userId}\/verification":{"patch":{"summary":"Update Email Verification","operationId":"usersUpdateVerification","tags":["users"],"description":"Update the user email verification status by its unique ID.","responses":{"200":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"updateVerification","weight":193,"cookies":false,"type":"","demo":"users\/update-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-verification.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"emailVerification":{"type":"boolean","description":"User email verification status.","x-example":false}},"required":["emailVerification"]}}}}}}},"tags":[{"name":"account","description":"The Account service allows you to authenticate and manage a user account."},{"name":"avatars","description":"The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars."},{"name":"database","description":"The Database service allows you to create structured collections of documents, query and filter lists of documents"},{"name":"locale","description":"The Locale service allows you to customize your app based on your users' location."},{"name":"health","description":"The Health service allows you to both validate and monitor your Appwrite server's health."},{"name":"projects","description":"The Project service allows you to manage all the projects in your Appwrite server."},{"name":"storage","description":"The Storage service allows you to manage your project files."},{"name":"teams","description":"The Teams service allows you to group users of your project and to enable them to share read and write access to your project resources"},{"name":"users","description":"The Users service allows you to manage your project users."},{"name":"functions","description":"The Functions Service allows you view, create and manage your Cloud Functions."}],"components":{"schemas":{"error":{"description":"Error","type":"object","properties":{"message":{"type":"string","description":"Error message.","x-example":"Not found"},"code":{"type":"string","description":"Error code.","x-example":"404"},"type":{"type":"string","description":"Error type. You can learn more about all the error types at https:\/\/appwrite.io\/docs\/error-codes#errorTypes","x-example":"not_found"},"version":{"type":"string","description":"Server version number.","x-example":"1.0"}},"required":["message","code","type","version"]},"documentList":{"description":"Documents List","type":"object","properties":{"total":{"type":"integer","description":"Total number of documents documents that matched your query.","x-example":5,"format":"int32"},"documents":{"type":"array","description":"List of documents.","items":{"$ref":"#\/components\/schemas\/document"},"x-example":""}},"required":["total","documents"]},"collectionList":{"description":"Collections List","type":"object","properties":{"total":{"type":"integer","description":"Total number of collections documents that matched your query.","x-example":5,"format":"int32"},"collections":{"type":"array","description":"List of collections.","items":{"$ref":"#\/components\/schemas\/collection"},"x-example":""}},"required":["total","collections"]},"indexList":{"description":"Indexes List","type":"object","properties":{"total":{"type":"integer","description":"Total number of indexes documents that matched your query.","x-example":5,"format":"int32"},"indexes":{"type":"array","description":"List of indexes.","items":{"$ref":"#\/components\/schemas\/index"},"x-example":""}},"required":["total","indexes"]},"userList":{"description":"Users List","type":"object","properties":{"total":{"type":"integer","description":"Total number of users documents that matched your query.","x-example":5,"format":"int32"},"users":{"type":"array","description":"List of users.","items":{"$ref":"#\/components\/schemas\/user"},"x-example":""}},"required":["total","users"]},"sessionList":{"description":"Sessions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of sessions documents that matched your query.","x-example":5,"format":"int32"},"sessions":{"type":"array","description":"List of sessions.","items":{"$ref":"#\/components\/schemas\/session"},"x-example":""}},"required":["total","sessions"]},"logList":{"description":"Logs List","type":"object","properties":{"total":{"type":"integer","description":"Total number of logs documents that matched your query.","x-example":5,"format":"int32"},"logs":{"type":"array","description":"List of logs.","items":{"$ref":"#\/components\/schemas\/log"},"x-example":""}},"required":["total","logs"]},"fileList":{"description":"Files List","type":"object","properties":{"total":{"type":"integer","description":"Total number of files documents that matched your query.","x-example":5,"format":"int32"},"files":{"type":"array","description":"List of files.","items":{"$ref":"#\/components\/schemas\/file"},"x-example":""}},"required":["total","files"]},"bucketList":{"description":"Buckets List","type":"object","properties":{"total":{"type":"integer","description":"Total number of buckets documents that matched your query.","x-example":5,"format":"int32"},"buckets":{"type":"array","description":"List of buckets.","items":{"$ref":"#\/components\/schemas\/bucket"},"x-example":""}},"required":["total","buckets"]},"teamList":{"description":"Teams List","type":"object","properties":{"total":{"type":"integer","description":"Total number of teams documents that matched your query.","x-example":5,"format":"int32"},"teams":{"type":"array","description":"List of teams.","items":{"$ref":"#\/components\/schemas\/team"},"x-example":""}},"required":["total","teams"]},"membershipList":{"description":"Memberships List","type":"object","properties":{"total":{"type":"integer","description":"Total number of memberships documents that matched your query.","x-example":5,"format":"int32"},"memberships":{"type":"array","description":"List of memberships.","items":{"$ref":"#\/components\/schemas\/membership"},"x-example":""}},"required":["total","memberships"]},"functionList":{"description":"Functions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of functions documents that matched your query.","x-example":5,"format":"int32"},"functions":{"type":"array","description":"List of functions.","items":{"$ref":"#\/components\/schemas\/function"},"x-example":""}},"required":["total","functions"]},"runtimeList":{"description":"Runtimes List","type":"object","properties":{"total":{"type":"integer","description":"Total number of runtimes documents that matched your query.","x-example":5,"format":"int32"},"runtimes":{"type":"array","description":"List of runtimes.","items":{"$ref":"#\/components\/schemas\/runtime"},"x-example":""}},"required":["total","runtimes"]},"deploymentList":{"description":"Deployments List","type":"object","properties":{"total":{"type":"integer","description":"Total number of deployments documents that matched your query.","x-example":5,"format":"int32"},"deployments":{"type":"array","description":"List of deployments.","items":{"$ref":"#\/components\/schemas\/deployment"},"x-example":""}},"required":["total","deployments"]},"executionList":{"description":"Executions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of executions documents that matched your query.","x-example":5,"format":"int32"},"executions":{"type":"array","description":"List of executions.","items":{"$ref":"#\/components\/schemas\/execution"},"x-example":""}},"required":["total","executions"]},"projectList":{"description":"Projects List","type":"object","properties":{"total":{"type":"integer","description":"Total number of projects documents that matched your query.","x-example":5,"format":"int32"},"projects":{"type":"array","description":"List of projects.","items":{"$ref":"#\/components\/schemas\/project"},"x-example":""}},"required":["total","projects"]},"webhookList":{"description":"Webhooks List","type":"object","properties":{"total":{"type":"integer","description":"Total number of webhooks documents that matched your query.","x-example":5,"format":"int32"},"webhooks":{"type":"array","description":"List of webhooks.","items":{"$ref":"#\/components\/schemas\/webhook"},"x-example":""}},"required":["total","webhooks"]},"keyList":{"description":"API Keys List","type":"object","properties":{"total":{"type":"integer","description":"Total number of keys documents that matched your query.","x-example":5,"format":"int32"},"keys":{"type":"array","description":"List of keys.","items":{"$ref":"#\/components\/schemas\/key"},"x-example":""}},"required":["total","keys"]},"platformList":{"description":"Platforms List","type":"object","properties":{"total":{"type":"integer","description":"Total number of platforms documents that matched your query.","x-example":5,"format":"int32"},"platforms":{"type":"array","description":"List of platforms.","items":{"$ref":"#\/components\/schemas\/platform"},"x-example":""}},"required":["total","platforms"]},"domainList":{"description":"Domains List","type":"object","properties":{"total":{"type":"integer","description":"Total number of domains documents that matched your query.","x-example":5,"format":"int32"},"domains":{"type":"array","description":"List of domains.","items":{"$ref":"#\/components\/schemas\/domain"},"x-example":""}},"required":["total","domains"]},"countryList":{"description":"Countries List","type":"object","properties":{"total":{"type":"integer","description":"Total number of countries documents that matched your query.","x-example":5,"format":"int32"},"countries":{"type":"array","description":"List of countries.","items":{"$ref":"#\/components\/schemas\/country"},"x-example":""}},"required":["total","countries"]},"continentList":{"description":"Continents List","type":"object","properties":{"total":{"type":"integer","description":"Total number of continents documents that matched your query.","x-example":5,"format":"int32"},"continents":{"type":"array","description":"List of continents.","items":{"$ref":"#\/components\/schemas\/continent"},"x-example":""}},"required":["total","continents"]},"languageList":{"description":"Languages List","type":"object","properties":{"total":{"type":"integer","description":"Total number of languages documents that matched your query.","x-example":5,"format":"int32"},"languages":{"type":"array","description":"List of languages.","items":{"$ref":"#\/components\/schemas\/language"},"x-example":""}},"required":["total","languages"]},"currencyList":{"description":"Currencies List","type":"object","properties":{"total":{"type":"integer","description":"Total number of currencies documents that matched your query.","x-example":5,"format":"int32"},"currencies":{"type":"array","description":"List of currencies.","items":{"$ref":"#\/components\/schemas\/currency"},"x-example":""}},"required":["total","currencies"]},"phoneList":{"description":"Phones List","type":"object","properties":{"total":{"type":"integer","description":"Total number of phones documents that matched your query.","x-example":5,"format":"int32"},"phones":{"type":"array","description":"List of phones.","items":{"$ref":"#\/components\/schemas\/phone"},"x-example":""}},"required":["total","phones"]},"metricList":{"description":"Metric List","type":"object","properties":{"total":{"type":"integer","description":"Total number of metrics documents that matched your query.","x-example":5,"format":"int32"},"metrics":{"type":"array","description":"List of metrics.","items":{"$ref":"#\/components\/schemas\/metric"},"x-example":""}},"required":["total","metrics"]},"collection":{"description":"Collection","type":"object","properties":{"$id":{"type":"string","description":"Collection ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"Collection read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"Collection write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"},"name":{"type":"string","description":"Collection name.","x-example":"My Collection"},"enabled":{"type":"boolean","description":"Collection enabled.","x-example":false},"permission":{"type":"string","description":"Collection permission model. Possible values: `document` or `collection`","x-example":"document"},"attributes":{"type":"array","description":"Collection attributes.","items":{"anyOf":[{"$ref":"#\/components\/schemas\/attributeBoolean"},{"$ref":"#\/components\/schemas\/attributeInteger"},{"$ref":"#\/components\/schemas\/attributeFloat"},{"$ref":"#\/components\/schemas\/attributeEmail"},{"$ref":"#\/components\/schemas\/attributeEnum"},{"$ref":"#\/components\/schemas\/attributeUrl"},{"$ref":"#\/components\/schemas\/attributeIp"},{"$ref":"#\/components\/schemas\/attributeString"}]},"x-example":{}},"indexes":{"type":"array","description":"Collection indexes.","items":{"$ref":"#\/components\/schemas\/index"},"x-example":{}}},"required":["$id","$read","$write","name","enabled","permission","attributes","indexes"]},"attributeList":{"description":"Attributes List","type":"object","properties":{"total":{"type":"integer","description":"Total number of attributes in the given collection.","x-example":5,"format":"int32"},"attributes":{"type":"array","description":"List of attributes.","items":{"anyOf":[{"$ref":"#\/components\/schemas\/attributeBoolean"},{"$ref":"#\/components\/schemas\/attributeInteger"},{"$ref":"#\/components\/schemas\/attributeFloat"},{"$ref":"#\/components\/schemas\/attributeEmail"},{"$ref":"#\/components\/schemas\/attributeEnum"},{"$ref":"#\/components\/schemas\/attributeUrl"},{"$ref":"#\/components\/schemas\/attributeIp"},{"$ref":"#\/components\/schemas\/attributeString"}]},"x-example":""}},"required":["total","attributes"]},"attributeString":{"description":"AttributeString","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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"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","required","size"]},"attributeInteger":{"description":"AttributeInteger","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"count"},"type":{"type":"string","description":"Attribute type.","x-example":"integer"},"status":{"type":"string","description":"Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"min":{"type":"integer","description":"Minimum value to enforce for new documents.","x-example":1,"format":"int32","nullable":true},"max":{"type":"integer","description":"Maximum value to enforce for new documents.","x-example":10,"format":"int32","nullable":true},"default":{"type":"integer","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":10,"format":"int32","nullable":true}},"required":["key","type","status","required"]},"attributeFloat":{"description":"AttributeFloat","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"percentageCompleted"},"type":{"type":"string","description":"Attribute type.","x-example":"double"},"status":{"type":"string","description":"Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"min":{"type":"number","description":"Minimum value to enforce for new documents.","x-example":1.5,"format":"double","nullable":true},"max":{"type":"number","description":"Maximum value to enforce for new documents.","x-example":10.5,"format":"double","nullable":true},"default":{"type":"number","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":2.5,"format":"double","nullable":true}},"required":["key","type","status","required"]},"attributeBoolean":{"description":"AttributeBoolean","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"isEnabled"},"type":{"type":"string","description":"Attribute type.","x-example":"boolean"},"status":{"type":"string","description":"Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"default":{"type":"boolean","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":false,"nullable":true}},"required":["key","type","status","required"]},"attributeEmail":{"description":"AttributeEmail","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"userEmail"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"format":{"type":"string","description":"String format.","x-example":"email"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"default@example.com","nullable":true}},"required":["key","type","status","required","format"]},"attributeEnum":{"description":"AttributeEnum","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"status"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"elements":{"type":"array","description":"Array of elements in enumerated type.","items":{"type":"string"},"x-example":"element"},"format":{"type":"string","description":"String format.","x-example":"enum"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"element","nullable":true}},"required":["key","type","status","required","elements","format"]},"attributeIp":{"description":"AttributeIP","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"ipAddress"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"format":{"type":"string","description":"String format.","x-example":"ip"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"192.0.2.0","nullable":true}},"required":["key","type","status","required","format"]},"attributeUrl":{"description":"AttributeURL","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"githubUrl"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"format":{"type":"string","description":"String format.","x-example":"url"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"http:\/\/example.com","nullable":true}},"required":["key","type","status","required","format"]},"index":{"description":"Index","type":"object","properties":{"key":{"type":"string","description":"Index Key.","x-example":"index1"},"type":{"type":"string","description":"Index type.","x-example":"primary"},"status":{"type":"string","description":"Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"attributes":{"type":"array","description":"Index attributes.","items":{"type":"string"},"x-example":[]},"orders":{"type":"array","description":"Index orders.","items":{"type":"string"},"x-example":[]}},"required":["key","type","status","attributes","orders"]},"document":{"description":"Document","type":"object","properties":{"$id":{"type":"string","description":"Document ID.","x-example":"5e5ea5c16897e"},"$collection":{"type":"string","description":"Collection ID.","x-example":"5e5ea5c15117e"},"$read":{"type":"array","description":"Document read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"Document write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"}},"additionalProperties":true,"required":["$id","$collection","$read","$write"]},"log":{"description":"Log","type":"object","properties":{"event":{"type":"string","description":"Event name.","x-example":"account.sessions.create"},"userId":{"type":"string","description":"User ID.","x-example":"610fc2f985ee0"},"userEmail":{"type":"string","description":"User Email.","x-example":"john@appwrite.io"},"userName":{"type":"string","description":"User Name.","x-example":"John Doe"},"mode":{"type":"string","description":"API mode when event triggered.","x-example":"admin"},"ip":{"type":"string","description":"IP session in use when the session was created.","x-example":"127.0.0.1"},"time":{"type":"integer","description":"Log creation time in Unix timestamp.","x-example":1592981250,"format":"int32"},"osCode":{"type":"string","description":"Operating system code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/os.json).","x-example":"Mac"},"osName":{"type":"string","description":"Operating system name.","x-example":"Mac"},"osVersion":{"type":"string","description":"Operating system version.","x-example":"Mac"},"clientType":{"type":"string","description":"Client type.","x-example":"browser"},"clientCode":{"type":"string","description":"Client code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/clients.json).","x-example":"CM"},"clientName":{"type":"string","description":"Client name.","x-example":"Chrome Mobile iOS"},"clientVersion":{"type":"string","description":"Client version.","x-example":"84.0"},"clientEngine":{"type":"string","description":"Client engine name.","x-example":"WebKit"},"clientEngineVersion":{"type":"string","description":"Client engine name.","x-example":"605.1.15"},"deviceName":{"type":"string","description":"Device name.","x-example":"smartphone"},"deviceBrand":{"type":"string","description":"Device brand name.","x-example":"Google"},"deviceModel":{"type":"string","description":"Device model name.","x-example":"Nexus 5"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"}},"required":["event","userId","userEmail","userName","mode","ip","time","osCode","osName","osVersion","clientType","clientCode","clientName","clientVersion","clientEngine","clientEngineVersion","deviceName","deviceBrand","deviceModel","countryCode","countryName"]},"user":{"description":"User","type":"object","properties":{"$id":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"User name.","x-example":"John Doe"},"password":{"type":"string","description":"Hashed user password.","x-example":"$argon2id$v=19$m=2048,t=4,p=3$aUZjLnliVWRINmFNTWMudg$5S+x+7uA31xFnrHFT47yFwcJeaP0w92L\/4LdgrVRXxE"},"hash":{"type":"string","description":"Password hashing algorithm.","x-example":"argon2"},"hashOptions":{"type":"string","description":"Password hashing algorithm configuration.","x-example":"{}"},"registration":{"type":"integer","description":"User registration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"status":{"type":"boolean","description":"User status. Pass `true` for enabled and `false` for disabled.","x-example":true},"passwordUpdate":{"type":"integer","description":"Unix timestamp of the most recent password update","x-example":1592981250,"format":"int32"},"email":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"emailVerification":{"type":"boolean","description":"Email verification status.","x-example":true},"prefs":{"type":"object","description":"User preferences as a key-value object","x-example":{"theme":"pink","timezone":"UTC"},"items":{"$ref":"#\/components\/schemas\/preferences"}}},"required":["$id","name","password","hash","hashOptions","registration","status","passwordUpdate","email","emailVerification","prefs"]},"account":{"description":"Account","type":"object","properties":{"$id":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"User name.","x-example":"John Doe"},"registration":{"type":"integer","description":"User registration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"status":{"type":"boolean","description":"User status. Pass `true` for enabled and `false` for disabled.","x-example":true},"passwordUpdate":{"type":"integer","description":"Unix timestamp of the most recent password update","x-example":1592981250,"format":"int32"},"email":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"emailVerification":{"type":"boolean","description":"Email verification status.","x-example":true},"prefs":{"type":"object","description":"User preferences as a key-value object","x-example":{"theme":"pink","timezone":"UTC"},"items":{"$ref":"#\/components\/schemas\/preferences"}}},"required":["$id","name","registration","status","passwordUpdate","email","emailVerification","prefs"]},"preferences":{"description":"Preferences","type":"object","additionalProperties":true},"session":{"description":"Session","type":"object","properties":{"$id":{"type":"string","description":"Session ID.","x-example":"5e5ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5bb8c16897e"},"expire":{"type":"integer","description":"Session expiration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"provider":{"type":"string","description":"Session Provider.","x-example":"email"},"providerUid":{"type":"string","description":"Session Provider User ID.","x-example":"user@example.com"},"providerAccessToken":{"type":"string","description":"Session Provider Access Token.","x-example":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"},"providerAccessTokenExpiry":{"type":"integer","description":"Date, the Unix timestamp of when the access token expires.","x-example":1592981250,"format":"int32"},"providerRefreshToken":{"type":"string","description":"Session Provider Refresh Token.","x-example":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"},"ip":{"type":"string","description":"IP in use when the session was created.","x-example":"127.0.0.1"},"osCode":{"type":"string","description":"Operating system code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/os.json).","x-example":"Mac"},"osName":{"type":"string","description":"Operating system name.","x-example":"Mac"},"osVersion":{"type":"string","description":"Operating system version.","x-example":"Mac"},"clientType":{"type":"string","description":"Client type.","x-example":"browser"},"clientCode":{"type":"string","description":"Client code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/clients.json).","x-example":"CM"},"clientName":{"type":"string","description":"Client name.","x-example":"Chrome Mobile iOS"},"clientVersion":{"type":"string","description":"Client version.","x-example":"84.0"},"clientEngine":{"type":"string","description":"Client engine name.","x-example":"WebKit"},"clientEngineVersion":{"type":"string","description":"Client engine name.","x-example":"605.1.15"},"deviceName":{"type":"string","description":"Device name.","x-example":"smartphone"},"deviceBrand":{"type":"string","description":"Device brand name.","x-example":"Google"},"deviceModel":{"type":"string","description":"Device model name.","x-example":"Nexus 5"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"},"current":{"type":"boolean","description":"Returns true if this the current user session.","x-example":true}},"required":["$id","userId","expire","provider","providerUid","providerAccessToken","providerAccessTokenExpiry","providerRefreshToken","ip","osCode","osName","osVersion","clientType","clientCode","clientName","clientVersion","clientEngine","clientEngineVersion","deviceName","deviceBrand","deviceModel","countryCode","countryName","current"]},"token":{"description":"Token","type":"object","properties":{"$id":{"type":"string","description":"Token ID.","x-example":"bb8ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5ea5c168bb8"},"secret":{"type":"string","description":"Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.","x-example":""},"expire":{"type":"integer","description":"Token expiration date in Unix timestamp.","x-example":1592981250,"format":"int32"}},"required":["$id","userId","secret","expire"]},"jwt":{"description":"JWT","type":"object","properties":{"jwt":{"type":"string","description":"JWT encoded string.","x-example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}},"required":["jwt"]},"locale":{"description":"Locale","type":"object","properties":{"ip":{"type":"string","description":"User IP address.","x-example":"127.0.0.1"},"countryCode":{"type":"string","description":"Country code in [ISO 3166-1](http:\/\/en.wikipedia.org\/wiki\/ISO_3166-1) two-character format","x-example":"US"},"country":{"type":"string","description":"Country name. This field support localization.","x-example":"United States"},"continentCode":{"type":"string","description":"Continent code. A two character continent code \"AF\" for Africa, \"AN\" for Antarctica, \"AS\" for Asia, \"EU\" for Europe, \"NA\" for North America, \"OC\" for Oceania, and \"SA\" for South America.","x-example":"NA"},"continent":{"type":"string","description":"Continent name. This field support localization.","x-example":"North America"},"eu":{"type":"boolean","description":"True if country is part of the Europian Union.","x-example":false},"currency":{"type":"string","description":"Currency code in [ISO 4217-1](http:\/\/en.wikipedia.org\/wiki\/ISO_4217) three-character format","x-example":"USD"}},"required":["ip","countryCode","country","continentCode","continent","eu","currency"]},"file":{"description":"File","type":"object","properties":{"$id":{"type":"string","description":"File ID.","x-example":"5e5ea5c16897e"},"bucketId":{"type":"string","description":"Bucket ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"File read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"File write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"},"name":{"type":"string","description":"File name.","x-example":"Pink.png"},"dateCreated":{"type":"integer","description":"File creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"signature":{"type":"string","description":"File MD5 signature.","x-example":"5d529fd02b544198ae075bd57c1762bb"},"mimeType":{"type":"string","description":"File mime type.","x-example":"image\/png"},"sizeOriginal":{"type":"integer","description":"File original size in bytes.","x-example":17890,"format":"int32"},"chunksTotal":{"type":"integer","description":"Total number of chunks available","x-example":17890,"format":"int32"},"chunksUploaded":{"type":"integer","description":"Total number of chunks uploaded","x-example":17890,"format":"int32"}},"required":["$id","bucketId","$read","$write","name","dateCreated","signature","mimeType","sizeOriginal","chunksTotal","chunksUploaded"]},"bucket":{"description":"Bucket","type":"object","properties":{"$id":{"type":"string","description":"Bucket ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"File read permissions.","items":{"type":"string"},"x-example":["role:all"]},"$write":{"type":"array","description":"File write permissions.","items":{"type":"string"},"x-example":["user:608f9da25e7e1"]},"permission":{"type":"string","description":"Bucket permission model. Possible values: `bucket` or `file`","x-example":"file"},"dateCreated":{"type":"integer","description":"Bucket creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"dateUpdated":{"type":"integer","description":"Bucket update date in Unix timestamp.","x-example":1592981250,"format":"int32"},"name":{"type":"string","description":"Bucket name.","x-example":"Documents"},"enabled":{"type":"boolean","description":"Bucket enabled.","x-example":false},"maximumFileSize":{"type":"integer","description":"Maximum file size supported.","x-example":100,"format":"int32"},"allowedFileExtensions":{"type":"array","description":"Allowed file extensions.","items":{"type":"string"},"x-example":["jpg","png"]},"encryption":{"type":"boolean","description":"Bucket is encrypted.","x-example":false},"antivirus":{"type":"boolean","description":"Virus scanning is enabled.","x-example":false}},"required":["$id","$read","$write","permission","dateCreated","dateUpdated","name","enabled","maximumFileSize","allowedFileExtensions","encryption","antivirus"]},"team":{"description":"Team","type":"object","properties":{"$id":{"type":"string","description":"Team ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Team name.","x-example":"VIP"},"dateCreated":{"type":"integer","description":"Team creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"total":{"type":"integer","description":"Total number of team members.","x-example":7,"format":"int32"}},"required":["$id","name","dateCreated","total"]},"membership":{"description":"Membership","type":"object","properties":{"$id":{"type":"string","description":"Membership ID.","x-example":"5e5ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"userName":{"type":"string","description":"User name.","x-example":"John Doe"},"userEmail":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"teamId":{"type":"string","description":"Team ID.","x-example":"5e5ea5c16897e"},"teamName":{"type":"string","description":"Team name.","x-example":"VIP"},"invited":{"type":"integer","description":"Date, the user has been invited to join the team in Unix timestamp.","x-example":1592981250,"format":"int32"},"joined":{"type":"integer","description":"Date, the user has accepted the invitation to join the team in Unix timestamp.","x-example":1592981250,"format":"int32"},"confirm":{"type":"boolean","description":"User confirmation status, true if the user has joined the team or false otherwise.","x-example":false},"roles":{"type":"array","description":"User list of roles","items":{"type":"string"},"x-example":"admin"}},"required":["$id","userId","userName","userEmail","teamId","teamName","invited","joined","confirm","roles"]},"function":{"description":"Function","type":"object","properties":{"$id":{"type":"string","description":"Function ID.","x-example":"5e5ea5c16897e"},"execute":{"type":"array","description":"Execution permissions.","items":{"type":"string"},"x-example":"role:member"},"name":{"type":"string","description":"Function name.","x-example":"My Function"},"dateCreated":{"type":"integer","description":"Function creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"dateUpdated":{"type":"integer","description":"Function update date in Unix timestamp.","x-example":1592981257,"format":"int32"},"status":{"type":"string","description":"Function status. Possible values: `disabled`, `enabled`","x-example":"enabled"},"runtime":{"type":"string","description":"Function execution runtime.","x-example":"python-3.8"},"deployment":{"type":"string","description":"Function's active deployment ID.","x-example":"5e5ea5c16897e"},"vars":{"type":"object","description":"Function environment variables.","x-example":{"key":"value"}},"events":{"type":"array","description":"Function trigger events.","items":{"type":"string"},"x-example":"account.create"},"schedule":{"type":"string","description":"Function execution schedult in CRON format.","x-example":"5 4 * * *"},"scheduleNext":{"type":"integer","description":"Function next scheduled execution date in Unix timestamp.","x-example":1592981292,"format":"int32"},"schedulePrevious":{"type":"integer","description":"Function next scheduled execution date in Unix timestamp.","x-example":1592981237,"format":"int32"},"timeout":{"type":"integer","description":"Function execution timeout in seconds.","x-example":1592981237,"format":"int32"}},"required":["$id","execute","name","dateCreated","dateUpdated","status","runtime","deployment","vars","events","schedule","scheduleNext","schedulePrevious","timeout"]},"runtime":{"description":"Runtime","type":"object","properties":{"$id":{"type":"string","description":"Runtime ID.","x-example":"python-3.8"},"name":{"type":"string","description":"Runtime Name.","x-example":"Python"},"version":{"type":"string","description":"Runtime version.","x-example":"3.8"},"base":{"type":"string","description":"Base Docker image used to build the runtime.","x-example":"python:3.8-alpine"},"image":{"type":"string","description":"Image name of Docker Hub.","x-example":"appwrite\\\/runtime-for-python:3.8"},"logo":{"type":"string","description":"Name of the logo image.","x-example":"python.png"},"supports":{"type":"array","description":"List of supported architectures.","items":{"type":"string"},"x-example":"amd64"}},"required":["$id","name","version","base","image","logo","supports"]},"deployment":{"description":"Deployment","type":"object","properties":{"$id":{"type":"string","description":"Deployment ID.","x-example":"5e5ea5c16897e"},"resourceId":{"type":"string","description":"Resource ID.","x-example":"5e5ea6g16897e"},"resourceType":{"type":"string","description":"Resource type.","x-example":"functions"},"dateCreated":{"type":"integer","description":"The deployment creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"entrypoint":{"type":"string","description":"The entrypoint file to use to execute the deployment code.","x-example":"enabled"},"size":{"type":"integer","description":"The code size in bytes.","x-example":128,"format":"int32"},"buildId":{"type":"string","description":"The current build ID.","x-example":"5e5ea5c16897e"},"activate":{"type":"boolean","description":"Whether the deployment should be automatically activated.","x-example":true},"status":{"type":"string","description":"The deployment status.","x-example":"enabled"},"buildStdout":{"type":"string","description":"The build stdout.","x-example":"enabled"},"buildStderr":{"type":"string","description":"The build stderr.","x-example":"enabled"}},"required":["$id","resourceId","resourceType","dateCreated","entrypoint","size","buildId","activate","status","buildStdout","buildStderr"]},"execution":{"description":"Execution","type":"object","properties":{"$id":{"type":"string","description":"Execution ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"Execution read permissions.","items":{"type":"string"},"x-example":"role:all"},"functionId":{"type":"string","description":"Function ID.","x-example":"5e5ea6g16897e"},"dateCreated":{"type":"integer","description":"The execution creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"trigger":{"type":"string","description":"The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.","x-example":"http"},"status":{"type":"string","description":"The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.","x-example":"processing"},"statusCode":{"type":"integer","description":"The script status code.","x-example":0,"format":"int32"},"response":{"type":"string","description":"The script response output string. Logs the last 4,000 characters of the execution response output.","x-example":""},"stderr":{"type":"string","description":"The script stderr output string. Logs the last 4,000 characters of the execution stderr output","x-example":""},"time":{"type":"number","description":"The script execution time in seconds.","x-example":0.4,"format":"double"}},"required":["$id","$read","functionId","dateCreated","trigger","status","statusCode","response","stderr","time"]},"project":{"description":"Project","type":"object","properties":{"$id":{"type":"string","description":"Project ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Project name.","x-example":"New Project"},"description":{"type":"string","description":"Project description.","x-example":"This is a new project."},"teamId":{"type":"string","description":"Project team ID.","x-example":"1592981250"},"logo":{"type":"string","description":"Project logo file ID.","x-example":"5f5c451b403cb"},"url":{"type":"string","description":"Project website URL.","x-example":"5f5c451b403cb"},"legalName":{"type":"string","description":"Company legal name.","x-example":"Company LTD."},"legalCountry":{"type":"string","description":"Country code in [ISO 3166-1](http:\/\/en.wikipedia.org\/wiki\/ISO_3166-1) two-character format.","x-example":"US"},"legalState":{"type":"string","description":"State name.","x-example":"New York"},"legalCity":{"type":"string","description":"City name.","x-example":"New York City."},"legalAddress":{"type":"string","description":"Company Address.","x-example":"620 Eighth Avenue, New York, NY 10018"},"legalTaxId":{"type":"string","description":"Company Tax ID.","x-example":"131102020"},"authLimit":{"type":"integer","description":"Max users allowed. 0 is unlimited.","x-example":100,"format":"int32"},"platforms":{"type":"array","description":"List of Platforms.","items":{"$ref":"#\/components\/schemas\/platform"},"x-example":{}},"webhooks":{"type":"array","description":"List of Webhooks.","items":{"$ref":"#\/components\/schemas\/webhook"},"x-example":{}},"keys":{"type":"array","description":"List of API Keys.","items":{"$ref":"#\/components\/schemas\/key"},"x-example":{}},"domains":{"type":"array","description":"List of Domains.","items":{"$ref":"#\/components\/schemas\/domain"},"x-example":{}},"providerAmazonAppid":{"type":"string","description":"Amazon OAuth app ID.","x-example":"123247283472834787438"},"providerAmazonSecret":{"type":"string","description":"Amazon OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerAppleAppid":{"type":"string","description":"Apple OAuth app ID.","x-example":"123247283472834787438"},"providerAppleSecret":{"type":"string","description":"Apple OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerAuth0Appid":{"type":"string","description":"Auth0 OAuth app ID.","x-example":"123247283472834787438"},"providerAuth0Secret":{"type":"string","description":"Auth0 OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerBitbucketAppid":{"type":"string","description":"BitBucket OAuth app ID.","x-example":"123247283472834787438"},"providerBitbucketSecret":{"type":"string","description":"BitBucket OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerBitlyAppid":{"type":"string","description":"Bitly OAuth app ID.","x-example":"123247283472834787438"},"providerBitlySecret":{"type":"string","description":"Bitly OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerBoxAppid":{"type":"string","description":"Box OAuth app ID.","x-example":"123247283472834787438"},"providerBoxSecret":{"type":"string","description":"Box OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerDailymotionAppid":{"type":"string","description":"Dailymotion OAuth app ID.","x-example":"123247283472834787438"},"providerDailymotionSecret":{"type":"string","description":"Dailymotion OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerDiscordAppid":{"type":"string","description":"Discord OAuth app ID.","x-example":"123247283472834787438"},"providerDiscordSecret":{"type":"string","description":"Discord OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerDropboxAppid":{"type":"string","description":"Dropbox OAuth app ID.","x-example":"123247283472834787438"},"providerDropboxSecret":{"type":"string","description":"Dropbox OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerFacebookAppid":{"type":"string","description":"Facebook OAuth app ID.","x-example":"123247283472834787438"},"providerFacebookSecret":{"type":"string","description":"Facebook OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerGithubAppid":{"type":"string","description":"GitHub OAuth app ID.","x-example":"123247283472834787438"},"providerGithubSecret":{"type":"string","description":"GitHub OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerGitlabAppid":{"type":"string","description":"GitLab OAuth app ID.","x-example":"123247283472834787438"},"providerGitlabSecret":{"type":"string","description":"GitLab OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerGoogleAppid":{"type":"string","description":"Google OAuth app ID.","x-example":"123247283472834787438"},"providerGoogleSecret":{"type":"string","description":"Google OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerLinkedinAppid":{"type":"string","description":"LinkedIn OAuth app ID.","x-example":"123247283472834787438"},"providerLinkedinSecret":{"type":"string","description":"LinkedIn OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerMicrosoftAppid":{"type":"string","description":"Microsoft OAuth app ID.","x-example":"123247283472834787438"},"providerMicrosoftSecret":{"type":"string","description":"Microsoft OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerNotionAppid":{"type":"string","description":"Notion OAuth app ID.","x-example":"123247283472834787438"},"providerNotionSecret":{"type":"string","description":"Notion OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerOktaAppid":{"type":"string","description":"Okta OAuth app ID.","x-example":"123247283472834787438"},"providerOktaSecret":{"type":"string","description":"Okta OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerPaypalAppid":{"type":"string","description":"PayPal OAuth app ID.","x-example":"123247283472834787438"},"providerPaypalSecret":{"type":"string","description":"PayPal OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerPaypalSandboxAppid":{"type":"string","description":"PayPal OAuth app ID.","x-example":"123247283472834787438"},"providerPaypalSandboxSecret":{"type":"string","description":"PayPal OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerSalesforceAppid":{"type":"string","description":"Salesforce OAuth app ID.","x-example":"123247283472834787438"},"providerSalesforceSecret":{"type":"string","description":"Salesforce OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerSlackAppid":{"type":"string","description":"Slack OAuth app ID.","x-example":"123247283472834787438"},"providerSlackSecret":{"type":"string","description":"Slack OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerSpotifyAppid":{"type":"string","description":"Spotify OAuth app ID.","x-example":"123247283472834787438"},"providerSpotifySecret":{"type":"string","description":"Spotify OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerStripeAppid":{"type":"string","description":"Stripe OAuth app ID.","x-example":"123247283472834787438"},"providerStripeSecret":{"type":"string","description":"Stripe OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerTradeshiftAppid":{"type":"string","description":"Tradeshift OAuth app ID.","x-example":"123247283472834787438"},"providerTradeshiftSecret":{"type":"string","description":"Tradeshift OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerTradeshiftBoxAppid":{"type":"string","description":"Tradeshift OAuth app ID.","x-example":"123247283472834787438"},"providerTradeshiftBoxSecret":{"type":"string","description":"Tradeshift OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerTwitchAppid":{"type":"string","description":"Twitch OAuth app ID.","x-example":"123247283472834787438"},"providerTwitchSecret":{"type":"string","description":"Twitch OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerWordpressAppid":{"type":"string","description":"WordPress OAuth app ID.","x-example":"123247283472834787438"},"providerWordpressSecret":{"type":"string","description":"WordPress OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerYahooAppid":{"type":"string","description":"Yahoo OAuth app ID.","x-example":"123247283472834787438"},"providerYahooSecret":{"type":"string","description":"Yahoo OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerYammerAppid":{"type":"string","description":"Yammer OAuth app ID.","x-example":"123247283472834787438"},"providerYammerSecret":{"type":"string","description":"Yammer OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerYandexAppid":{"type":"string","description":"Yandex OAuth app ID.","x-example":"123247283472834787438"},"providerYandexSecret":{"type":"string","description":"Yandex OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerZoomAppid":{"type":"string","description":"Zoom OAuth app ID.","x-example":"123247283472834787438"},"providerZoomSecret":{"type":"string","description":"Zoom OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerMockAppid":{"type":"string","description":"Mock OAuth app ID.","x-example":"123247283472834787438"},"providerMockSecret":{"type":"string","description":"Mock OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"authEmailPassword":{"type":"boolean","description":"Email\/Password auth method status","x-example":true},"authUsersAuthMagicURL":{"type":"boolean","description":"Magic URL auth method status","x-example":true},"authAnonymous":{"type":"boolean","description":"Anonymous auth method status","x-example":true},"authInvites":{"type":"boolean","description":"Invites auth method status","x-example":true},"authJWT":{"type":"boolean","description":"JWT auth method status","x-example":true},"authPhone":{"type":"boolean","description":"Phone auth method status","x-example":true},"serviceStatusForAccount":{"type":"boolean","description":"Account service status","x-example":true},"serviceStatusForAvatars":{"type":"boolean","description":"Avatars service status","x-example":true},"serviceStatusForDatabase":{"type":"boolean","description":"Database service status","x-example":true},"serviceStatusForLocale":{"type":"boolean","description":"Locale service status","x-example":true},"serviceStatusForHealth":{"type":"boolean","description":"Health service status","x-example":true},"serviceStatusForStorage":{"type":"boolean","description":"Storage service status","x-example":true},"serviceStatusForTeams":{"type":"boolean","description":"Teams service status","x-example":true},"serviceStatusForUsers":{"type":"boolean","description":"Users service status","x-example":true},"serviceStatusForFunctions":{"type":"boolean","description":"Functions service status","x-example":true}},"required":["$id","name","description","teamId","logo","url","legalName","legalCountry","legalState","legalCity","legalAddress","legalTaxId","authLimit","platforms","webhooks","keys","domains","providerAmazonAppid","providerAmazonSecret","providerAppleAppid","providerAppleSecret","providerAuth0Appid","providerAuth0Secret","providerBitbucketAppid","providerBitbucketSecret","providerBitlyAppid","providerBitlySecret","providerBoxAppid","providerBoxSecret","providerDailymotionAppid","providerDailymotionSecret","providerDiscordAppid","providerDiscordSecret","providerDropboxAppid","providerDropboxSecret","providerFacebookAppid","providerFacebookSecret","providerGithubAppid","providerGithubSecret","providerGitlabAppid","providerGitlabSecret","providerGoogleAppid","providerGoogleSecret","providerLinkedinAppid","providerLinkedinSecret","providerMicrosoftAppid","providerMicrosoftSecret","providerNotionAppid","providerNotionSecret","providerOktaAppid","providerOktaSecret","providerPaypalAppid","providerPaypalSecret","providerPaypalSandboxAppid","providerPaypalSandboxSecret","providerSalesforceAppid","providerSalesforceSecret","providerSlackAppid","providerSlackSecret","providerSpotifyAppid","providerSpotifySecret","providerStripeAppid","providerStripeSecret","providerTradeshiftAppid","providerTradeshiftSecret","providerTradeshiftBoxAppid","providerTradeshiftBoxSecret","providerTwitchAppid","providerTwitchSecret","providerWordpressAppid","providerWordpressSecret","providerYahooAppid","providerYahooSecret","providerYammerAppid","providerYammerSecret","providerYandexAppid","providerYandexSecret","providerZoomAppid","providerZoomSecret","providerMockAppid","providerMockSecret","authEmailPassword","authUsersAuthMagicURL","authAnonymous","authInvites","authJWT","authPhone","serviceStatusForAccount","serviceStatusForAvatars","serviceStatusForDatabase","serviceStatusForLocale","serviceStatusForHealth","serviceStatusForStorage","serviceStatusForTeams","serviceStatusForUsers","serviceStatusForFunctions"]},"webhook":{"description":"Webhook","type":"object","properties":{"$id":{"type":"string","description":"Webhook ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Webhook name.","x-example":"My Webhook"},"url":{"type":"string","description":"Webhook URL endpoint.","x-example":"https:\/\/example.com\/webhook"},"events":{"type":"array","description":"Webhook trigger events.","items":{"type":"string"},"x-example":"database.collections.update"},"security":{"type":"boolean","description":"Indicated if SSL \/ TLS Certificate verification is enabled.","x-example":true},"httpUser":{"type":"string","description":"HTTP basic authentication username.","x-example":"username"},"httpPass":{"type":"string","description":"HTTP basic authentication password.","x-example":"password"},"signatureKey":{"type":"string","description":"Signature key which can be used to validated incoming","x-example":"ad3d581ca230e2b7059c545e5a"}},"required":["$id","name","url","events","security","httpUser","httpPass","signatureKey"]},"key":{"description":"Key","type":"object","properties":{"$id":{"type":"string","description":"Key ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Key name.","x-example":"My API Key"},"expire":{"type":"integer","description":"Key expiration in Unix timestamp.","x-example":"1653990687","format":"int32"},"scopes":{"type":"array","description":"Allowed permission scopes.","items":{"type":"string"},"x-example":"users.read"},"secret":{"type":"string","description":"Secret key.","x-example":"919c2d18fb5d4...a2ae413da83346ad2"}},"required":["$id","name","expire","scopes","secret"]},"domain":{"description":"Domain","type":"object","properties":{"$id":{"type":"string","description":"Domain ID.","x-example":"5e5ea5c16897e"},"domain":{"type":"string","description":"Domain name.","x-example":"appwrite.company.com"},"registerable":{"type":"string","description":"Registerable domain name.","x-example":"company.com"},"tld":{"type":"string","description":"TLD name.","x-example":"com"},"verification":{"type":"boolean","description":"Verification process status.","x-example":true},"certificateId":{"type":"string","description":"Certificate ID.","x-example":"6ejea5c13377e"}},"required":["$id","domain","registerable","tld","verification","certificateId"]},"platform":{"description":"Platform","type":"object","properties":{"$id":{"type":"string","description":"Platform ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Platform name.","x-example":"My Web App"},"type":{"type":"string","description":"Platform type. Possible values are: web, flutter-ios, flutter-android, ios, android, and unity.","x-example":"My Web App"},"key":{"type":"string","description":"Platform Key. iOS bundle ID or Android package name. Empty string for other platforms.","x-example":"com.company.appname"},"store":{"type":"string","description":"App store or Google Play store ID.","x-example":""},"hostname":{"type":"string","description":"Web app hostname. Empty string for other platforms.","x-example":true},"httpUser":{"type":"string","description":"HTTP basic authentication username.","x-example":"username"},"httpPass":{"type":"string","description":"HTTP basic authentication password.","x-example":"password"}},"required":["$id","name","type","key","store","hostname","httpUser","httpPass"]},"country":{"description":"Country","type":"object","properties":{"name":{"type":"string","description":"Country name.","x-example":"United States"},"code":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"}},"required":["name","code"]},"continent":{"description":"Continent","type":"object","properties":{"name":{"type":"string","description":"Continent name.","x-example":"Europe"},"code":{"type":"string","description":"Continent two letter code.","x-example":"EU"}},"required":["name","code"]},"language":{"description":"Language","type":"object","properties":{"name":{"type":"string","description":"Language name.","x-example":"Italian"},"code":{"type":"string","description":"Language two-character ISO 639-1 codes.","x-example":"it"},"nativeName":{"type":"string","description":"Language native name.","x-example":"Italiano"}},"required":["name","code","nativeName"]},"currency":{"description":"Currency","type":"object","properties":{"symbol":{"type":"string","description":"Currency symbol.","x-example":"$"},"name":{"type":"string","description":"Currency name.","x-example":"US dollar"},"symbolNative":{"type":"string","description":"Currency native symbol.","x-example":"$"},"decimalDigits":{"type":"integer","description":"Number of decimal digits.","x-example":2,"format":"int32"},"rounding":{"type":"number","description":"Currency digit rounding.","x-example":0,"format":"double"},"code":{"type":"string","description":"Currency code in [ISO 4217-1](http:\/\/en.wikipedia.org\/wiki\/ISO_4217) three-character format.","x-example":"USD"},"namePlural":{"type":"string","description":"Currency plural name","x-example":"US dollars"}},"required":["symbol","name","symbolNative","decimalDigits","rounding","code","namePlural"]},"phone":{"description":"Phone","type":"object","properties":{"code":{"type":"string","description":"Phone code.","x-example":"+1"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"}},"required":["code","countryCode","countryName"]},"healthAntivirus":{"description":"Health Antivirus","type":"object","properties":{"version":{"type":"string","description":"Antivirus version.","x-example":"1.0.0"},"status":{"type":"string","description":"Antivirus status. Possible values can are: `disabled`, `offline`, `online`","x-example":"online"}},"required":["version","status"]},"healthQueue":{"description":"Health Queue","type":"object","properties":{"size":{"type":"integer","description":"Amount of actions in the queue.","x-example":8,"format":"int32"}},"required":["size"]},"healthStatus":{"description":"Health Status","type":"object","properties":{"ping":{"type":"integer","description":"Duration in milliseconds how long the health check took.","x-example":128,"format":"int32"},"status":{"type":"string","description":"Service status. Possible values can are: `pass`, `fail`","x-example":"pass"}},"required":["ping","status"]},"healthTime":{"description":"Health Time","type":"object","properties":{"remoteTime":{"type":"integer","description":"Current unix timestamp on trustful remote server.","x-example":1639490751,"format":"int32"},"localTime":{"type":"integer","description":"Current unix timestamp of local server where Appwrite runs.","x-example":1639490844,"format":"int32"},"diff":{"type":"integer","description":"Difference of unix remote and local timestamps in milliseconds.","x-example":93,"format":"int32"}},"required":["remoteTime","localTime","diff"]},"usageDatabase":{"description":"UsageDatabase","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"documentsCount":{"type":"array","description":"Aggregated stats for total number of documents.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"collectionsCount":{"type":"array","description":"Aggregated stats for total number of collections.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"documentsCreate":{"type":"array","description":"Aggregated stats for documents created.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"documentsRead":{"type":"array","description":"Aggregated stats for documents read.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"documentsUpdate":{"type":"array","description":"Aggregated stats for documents updated.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"documentsDelete":{"type":"array","description":"Aggregated stats for documents deleted.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"collectionsCreate":{"type":"array","description":"Aggregated stats for collections created.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"collectionsRead":{"type":"array","description":"Aggregated stats for collections read.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"collectionsUpdate":{"type":"array","description":"Aggregated stats for collections updated.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"collectionsDelete":{"type":"array","description":"Aggregated stats for collections delete.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}}},"required":["range","documentsCount","collectionsCount","documentsCreate","documentsRead","documentsUpdate","documentsDelete","collectionsCreate","collectionsRead","collectionsUpdate","collectionsDelete"]},"usageCollection":{"description":"UsageCollection","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"documentsCount":{"type":"array","description":"Aggregated stats for total number of documents.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"documentsCreate":{"type":"array","description":"Aggregated stats for documents created.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"documentsRead":{"type":"array","description":"Aggregated stats for documents read.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"documentsUpdate":{"type":"array","description":"Aggregated stats for documents updated.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"documentsDelete":{"type":"array","description":"Aggregated stats for documents deleted.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}}},"required":["range","documentsCount","documentsCreate","documentsRead","documentsUpdate","documentsDelete"]},"usageUsers":{"description":"UsageUsers","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"usersCount":{"type":"array","description":"Aggregated stats for total number of users.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"usersCreate":{"type":"array","description":"Aggregated stats for users created.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"usersRead":{"type":"array","description":"Aggregated stats for users read.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"usersUpdate":{"type":"array","description":"Aggregated stats for users updated.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"usersDelete":{"type":"array","description":"Aggregated stats for users deleted.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"sessionsCreate":{"type":"array","description":"Aggregated stats for sessions created.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"sessionsProviderCreate":{"type":"array","description":"Aggregated stats for sessions created for a provider ( email, anonymous or oauth2 ).","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"sessionsDelete":{"type":"array","description":"Aggregated stats for sessions deleted.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}}},"required":["range","usersCount","usersCreate","usersRead","usersUpdate","usersDelete","sessionsCreate","sessionsProviderCreate","sessionsDelete"]},"usageStorage":{"description":"StorageUsage","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"filesStorage":{"type":"array","description":"Aggregated stats for the occupied storage size by files (in bytes).","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"tagsStorage":{"type":"array","description":"Aggregated stats for the occupied storage size by tags (in bytes).","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"filesCount":{"type":"array","description":"Aggregated stats for total number of files.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"bucketsCount":{"type":"array","description":"Aggregated stats for total number of buckets.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"bucketsCreate":{"type":"array","description":"Aggregated stats for buckets created.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"bucketsRead":{"type":"array","description":"Aggregated stats for buckets read.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"bucketsUpdate":{"type":"array","description":"Aggregated stats for buckets updated.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"bucketsDelete":{"type":"array","description":"Aggregated stats for buckets deleted.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"filesCreate":{"type":"array","description":"Aggregated stats for files created.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"filesRead":{"type":"array","description":"Aggregated stats for files read.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"filesUpdate":{"type":"array","description":"Aggregated stats for files updated.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"filesDelete":{"type":"array","description":"Aggregated stats for files deleted.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}}},"required":["range","filesStorage","tagsStorage","filesCount","bucketsCount","bucketsCreate","bucketsRead","bucketsUpdate","bucketsDelete","filesCreate","filesRead","filesUpdate","filesDelete"]},"usageBuckets":{"description":"UsageBuckets","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"filesCount":{"type":"array","description":"Aggregated stats for total number of files in this bucket.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"filesStorage":{"type":"array","description":"Aggregated stats for total storage of files in this bucket.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"filesCreate":{"type":"array","description":"Aggregated stats for files created.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"filesRead":{"type":"array","description":"Aggregated stats for files read.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"filesUpdate":{"type":"array","description":"Aggregated stats for files updated.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"filesDelete":{"type":"array","description":"Aggregated stats for files deleted.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}}},"required":["range","filesCount","filesStorage","filesCreate","filesRead","filesUpdate","filesDelete"]},"usageFunctions":{"description":"UsageFunctions","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"functionsExecutions":{"type":"array","description":"Aggregated stats for function executions.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"functionsFailures":{"type":"array","description":"Aggregated stats for function execution failures.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"functionsCompute":{"type":"array","description":"Aggregated stats for function execution duration.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}}},"required":["range","functionsExecutions","functionsFailures","functionsCompute"]},"usageProject":{"description":"UsageProject","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"requests":{"type":"array","description":"Aggregated stats for number of requests.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"network":{"type":"array","description":"Aggregated stats for consumed bandwidth.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"functions":{"type":"array","description":"Aggregated stats for function executions.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"documents":{"type":"array","description":"Aggregated stats for number of documents.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"collections":{"type":"array","description":"Aggregated stats for number of collections.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"users":{"type":"array","description":"Aggregated stats for number of users.","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}},"storage":{"type":"array","description":"Aggregated stats for the occupied storage size (in bytes).","items":{"$ref":"#\/components\/schemas\/metricList"},"x-example":{}}},"required":["range","requests","network","functions","documents","collections","users","storage"]}},"securitySchemes":{"Project":{"type":"apiKey","name":"X-Appwrite-Project","description":"Your project ID","in":"header","x-appwrite":{"demo":"5df5acd0d48c2"}},"Key":{"type":"apiKey","name":"X-Appwrite-Key","description":"Your secret API key","in":"header","x-appwrite":{"demo":"919c2d18fb5d4...a2ae413da83346ad2"}},"JWT":{"type":"apiKey","name":"X-Appwrite-JWT","description":"Your secret JSON Web Token","in":"header"},"Locale":{"type":"apiKey","name":"X-Appwrite-Locale","description":"","in":"header","x-appwrite":{"demo":"en"}},"Mode":{"type":"apiKey","name":"X-Appwrite-Mode","description":"","in":"header","x-appwrite":{"demo":""}}}},"externalDocs":{"description":"Full API docs, specs and tutorials","url":"https:\/\/appwrite.io\/docs"}} \ No newline at end of file diff --git a/app/config/specs/open-api3-0.15.x-server.json b/app/config/specs/open-api3-0.15.x-server.json deleted file mode 100644 index ed69ed2d1b..0000000000 --- a/app/config/specs/open-api3-0.15.x-server.json +++ /dev/null @@ -1 +0,0 @@ -{"openapi":"3.0.0","info":{"version":"0.15.0","title":"Appwrite","description":"Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https:\/\/appwrite.io\/docs](https:\/\/appwrite.io\/docs)","termsOfService":"https:\/\/appwrite.io\/policy\/terms","contact":{"name":"Appwrite Team","url":"https:\/\/appwrite.io\/support","email":"team@appwrite.io"},"license":{"name":"BSD-3-Clause","url":"https:\/\/raw.githubusercontent.com\/appwrite\/appwrite\/master\/LICENSE"}},"servers":[{"url":"https:\/\/HOSTNAME\/v1"}],"paths":{"\/account":{"get":{"summary":"Get Account","operationId":"accountGet","tags":["account"],"description":"Get currently logged in user data as JSON object.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"get","weight":49,"cookies":false,"type":"","demo":"account\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/email":{"patch":{"summary":"Update Account Email","operationId":"accountUpdateEmail","tags":["account"],"description":"Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use the send confirmation email endpoint again to send the confirmation email. For security measures, user password is required to complete this request.\nThis endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.\n","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updateEmail","weight":56,"cookies":false,"type":"","demo":"account\/update-email.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-email.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","x-example":"password"}},"required":["email","password"]}}}}}},"\/account\/logs":{"get":{"summary":"Get Account Logs","operationId":"accountGetLogs","tags":["account"],"description":"Get currently logged in user list of latest security activity logs. Each log returns user IP address, location and date and time of log.","responses":{"200":{"description":"Logs List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/logList"}}}}},"x-appwrite":{"method":"getLogs","weight":52,"cookies":false,"type":"","demo":"account\/get-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"}]}},"\/account\/name":{"patch":{"summary":"Update Account Name","operationId":"accountUpdateName","tags":["account"],"description":"Update currently logged in user account name.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updateName","weight":54,"cookies":false,"type":"","demo":"account\/update-name.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-name.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["name"]}}}}}},"\/account\/password":{"patch":{"summary":"Update Account Password","operationId":"accountUpdatePassword","tags":["account"],"description":"Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updatePassword","weight":55,"cookies":false,"type":"","demo":"account\/update-password.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-password.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"password":{"type":"string","description":"New user password. Must be at least 8 chars.","x-example":"password"},"oldPassword":{"type":"string","description":"Current user password. Must be at least 8 chars.","x-example":"password"}},"required":["password"]}}}}}},"\/account\/prefs":{"get":{"summary":"Get Account Preferences","operationId":"accountGetPrefs","tags":["account"],"description":"Get currently logged in user preferences as a key-value object.","responses":{"200":{"description":"Preferences","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/preferences"}}}}},"x-appwrite":{"method":"getPrefs","weight":50,"cookies":false,"type":"","demo":"account\/get-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}]},"patch":{"summary":"Update Account Preferences","operationId":"accountUpdatePrefs","tags":["account"],"description":"Update currently logged in user account preferences. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updatePrefs","weight":57,"cookies":false,"type":"","demo":"account\/update-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"prefs":{"type":"object","description":"Prefs key-value JSON object.","x-example":"{}"}},"required":["prefs"]}}}}}},"\/account\/recovery":{"post":{"summary":"Create Password Recovery","operationId":"accountCreateRecovery","tags":["account"],"description":"Sends the user an email with a temporary secret key for password reset. When the user clicks the confirmation link he is redirected back to your app password reset URL with the secret key and email address values attached to the URL query string. Use the query string params to submit a request to the [PUT \/account\/recovery](\/docs\/client\/account#accountUpdateRecovery) endpoint to complete the process. The verification link sent to the user's email address is valid for 1 hour.","responses":{"201":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"createRecovery","weight":62,"cookies":false,"type":"","demo":"account\/create-recovery.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-recovery.md","rate-limit":10,"rate-time":3600,"rate-key":["url:{url},email:{param-email}","ip:{ip}"],"scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"url":{"type":"string","description":"URL to redirect the user back to your app from the recovery email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","x-example":"https:\/\/example.com"}},"required":["email","url"]}}}}},"put":{"summary":"Create Password Recovery (confirmation)","operationId":"accountUpdateRecovery","tags":["account"],"description":"Use this endpoint to complete the user account password reset. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST \/account\/recovery](\/docs\/client\/account#accountCreateRecovery) endpoint.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.","responses":{"200":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"updateRecovery","weight":63,"cookies":false,"type":"","demo":"account\/update-recovery.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-recovery.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid reset token.","x-example":"[SECRET]"},"password":{"type":"string","description":"New user password. Must be at least 8 chars.","x-example":"password"},"passwordAgain":{"type":"string","description":"Repeat new user password. Must be at least 8 chars.","x-example":"password"}},"required":["userId","secret","password","passwordAgain"]}}}}}},"\/account\/sessions":{"get":{"summary":"Get Account Sessions","operationId":"accountGetSessions","tags":["account"],"description":"Get currently logged in user list of active sessions across different devices.","responses":{"200":{"description":"Sessions List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sessionList"}}}}},"x-appwrite":{"method":"getSessions","weight":51,"cookies":false,"type":"","demo":"account\/get-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}]},"delete":{"summary":"Delete All Account Sessions","operationId":"accountDeleteSessions","tags":["account"],"description":"Delete all sessions from the user account and remove any sessions cookies from the end client.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSessions","weight":61,"cookies":false,"type":"","demo":"account\/delete-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-sessions.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/sessions\/{sessionId}":{"get":{"summary":"Get Session By ID","operationId":"accountGetSession","tags":["account"],"description":"Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.","responses":{"200":{"description":"Session","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/session"}}}}},"x-appwrite":{"method":"getSession","weight":53,"cookies":false,"type":"","demo":"account\/get-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-session.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to get the current device session.","required":true,"schema":{"type":"string","x-example":"[SESSION_ID]"},"in":"path"}]},"patch":{"summary":"Update Session (Refresh Tokens)","operationId":"accountUpdateSession","tags":["account"],"description":"Access tokens have limited lifespan and expire to mitigate security risks. If session was created using an OAuth provider, this route can be used to \"refresh\" the access token.","responses":{"200":{"description":"Session","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/session"}}}}},"x-appwrite":{"method":"updateSession","weight":60,"cookies":false,"type":"","demo":"account\/update-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to update the current device session.","required":true,"schema":{"type":"string","x-example":"[SESSION_ID]"},"in":"path"}]},"delete":{"summary":"Delete Account Session","operationId":"accountDeleteSession","tags":["account"],"description":"Use this endpoint to log out the currently logged in user from all their account sessions across all of their different devices. When using the Session ID argument, only the unique session ID provided is deleted.\n","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSession","weight":59,"cookies":false,"type":"","demo":"account\/delete-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-session.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to delete the current device session.","required":true,"schema":{"type":"string","x-example":"[SESSION_ID]"},"in":"path"}]}},"\/account\/status":{"patch":{"summary":"Update Account Status","operationId":"accountUpdateStatus","tags":["account"],"description":"Block the currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. To completely delete a user, use the Users API instead.","responses":{"200":{"description":"Account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/account"}}}}},"x-appwrite":{"method":"updateStatus","weight":58,"cookies":false,"type":"","demo":"account\/update-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/verification":{"post":{"summary":"Create Email Verification","operationId":"accountCreateVerification","tags":["account"],"description":"Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](\/docs\/client\/account#accountUpdateVerification). The verification link sent to the user's email address is valid for 7 days.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.\n","responses":{"201":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"createVerification","weight":64,"cookies":false,"type":"","demo":"account\/create-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-verification.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{userId}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","x-example":"https:\/\/example.com"}},"required":["url"]}}}}},"put":{"summary":"Create Email Verification (confirmation)","operationId":"accountUpdateVerification","tags":["account"],"description":"Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.","responses":{"200":{"description":"Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/token"}}}}},"x-appwrite":{"method":"updateVerification","weight":65,"cookies":false,"type":"","demo":"account\/update-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-verification.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid verification token.","x-example":"[SECRET]"}},"required":["userId","secret"]}}}}}},"\/avatars\/browsers\/{code}":{"get":{"summary":"Get Browser Icon","operationId":"avatarsGetBrowser","tags":["avatars"],"description":"You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET \/account\/sessions](\/docs\/client\/account#accountGetSessions) endpoint. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getBrowser","weight":67,"cookies":false,"type":"location","demo":"avatars\/get-browser.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-browser.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"code","description":"Browser Code.","required":true,"schema":{"type":"string","x-example":"aa"},"in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"}]}},"\/avatars\/credit-cards\/{code}":{"get":{"summary":"Get Credit Card Icon","operationId":"avatarsGetCreditCard","tags":["avatars"],"description":"The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getCreditCard","weight":66,"cookies":false,"type":"location","demo":"avatars\/get-credit-card.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-credit-card.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"code","description":"Credit Card Code. Possible values: amex, argencard, cabal, censosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.","required":true,"schema":{"type":"string","x-example":"amex"},"in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"}]}},"\/avatars\/favicon":{"get":{"summary":"Get Favicon","operationId":"avatarsGetFavicon","tags":["avatars"],"description":"Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getFavicon","weight":70,"cookies":false,"type":"location","demo":"avatars\/get-favicon.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-favicon.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"url","description":"Website URL which you want to fetch the favicon from.","required":true,"schema":{"type":"string","format":"url","x-example":"https:\/\/example.com"},"in":"query"}]}},"\/avatars\/flags\/{code}":{"get":{"summary":"Get Country Flag","operationId":"avatarsGetFlag","tags":["avatars"],"description":"You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getFlag","weight":68,"cookies":false,"type":"location","demo":"avatars\/get-flag.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-flag.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"code","description":"Country Code. ISO Alpha-2 country code format.","required":true,"schema":{"type":"string","x-example":"af"},"in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"}]}},"\/avatars\/image":{"get":{"summary":"Get Image from URL","operationId":"avatarsGetImage","tags":["avatars"],"description":"Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make sure a 3rd party image is properly served using a TLS protocol.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 400x400px.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getImage","weight":69,"cookies":false,"type":"location","demo":"avatars\/get-image.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-image.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"url","description":"Image URL which you want to crop.","required":true,"schema":{"type":"string","format":"url","x-example":"https:\/\/example.com"},"in":"query"},{"name":"width","description":"Resize preview image width, Pass an integer between 0 to 2000. Defaults to 400.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":400},"in":"query"},{"name":"height","description":"Resize preview image height, Pass an integer between 0 to 2000. Defaults to 400.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":400},"in":"query"}]}},"\/avatars\/initials":{"get":{"summary":"Get User Initials","operationId":"avatarsGetInitials","tags":["avatars"],"description":"Use this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user name if you pass the 'name' parameter. If no name is given and no user is logged, an empty avatar will be returned.\n\nYou can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user's initials when reloading the same theme will always return for the same initials.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getInitials","weight":72,"cookies":false,"type":"location","demo":"avatars\/get-initials.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-initials.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"name","description":"Full Name. When empty, current user name or email will be used. Max length: 128 chars.","required":false,"schema":{"type":"string","x-example":"[NAME]","default":""},"in":"query"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":500},"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":500},"in":"query"},{"name":"color","description":"Changes text color. By default a random color will be picked and stay will persistent to the given name.","required":false,"schema":{"type":"string","default":""},"in":"query"},{"name":"background","description":"Changes background color. By default a random color will be picked and stay will persistent to the given name.","required":false,"schema":{"type":"string","default":""},"in":"query"}]}},"\/avatars\/qr":{"get":{"summary":"Get QR Code","operationId":"avatarsGetQR","tags":["avatars"],"description":"Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.\n","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getQR","weight":71,"cookies":false,"type":"location","demo":"avatars\/get-q-r.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"text","description":"Plain text to be converted to QR code image.","required":true,"schema":{"type":"string","x-example":"[TEXT]"},"in":"query"},{"name":"size","description":"QR code size. Pass an integer between 1 to 1000. Defaults to 400.","required":false,"schema":{"type":"integer","format":"int32","x-example":1,"default":400},"in":"query"},{"name":"margin","description":"Margin from edge. Pass an integer between 0 to 10. Defaults to 1.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":1},"in":"query"},{"name":"download","description":"Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0.","required":false,"schema":{"type":"boolean","x-example":false,"default":false},"in":"query"}]}},"\/database\/collections":{"get":{"summary":"List Collections","operationId":"databaseListCollections","tags":["database"],"description":"Get a list of all the user collections. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's collections. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Collections List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/collectionList"}}}}},"x-appwrite":{"method":"listCollections","weight":74,"cookies":false,"type":"","demo":"database\/list-collections.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-collections.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of collection to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the collection used as the starting point for the query, excluding the collection itself. Should be used for efficient pagination when working with large sets of data.","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Collection","operationId":"databaseCreateCollection","tags":["database"],"description":"Create a new Collection.","responses":{"201":{"description":"Collection","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/collection"}}}}},"x-appwrite":{"method":"createCollection","weight":73,"cookies":false,"type":"","demo":"database\/create-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"collectionId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[COLLECTION_ID]"},"name":{"type":"string","description":"Collection name. Max length: 128 chars.","x-example":"[NAME]"},"permission":{"type":"string","description":"Specifies the permissions model used in this collection, which accepts either 'collection' or 'document'. For 'collection' level permission, the permissions specified in read and write params are applied to all documents in the collection. For 'document' level permissions, read and write permissions are specified in each document. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":"document"},"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}},"required":["collectionId","name","permission","read","write"]}}}}}},"\/database\/collections\/{collectionId}":{"get":{"summary":"Get Collection","operationId":"databaseGetCollection","tags":["database"],"description":"Get a collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.","responses":{"200":{"description":"Collection","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/collection"}}}}},"x-appwrite":{"method":"getCollection","weight":75,"cookies":false,"type":"","demo":"database\/get-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}]},"put":{"summary":"Update Collection","operationId":"databaseUpdateCollection","tags":["database"],"description":"Update a collection by its unique ID.","responses":{"200":{"description":"Collection","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/collection"}}}}},"x-appwrite":{"method":"updateCollection","weight":79,"cookies":false,"type":"","demo":"database\/update-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/update-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Collection name. Max length: 128 chars.","x-example":"[NAME]"},"permission":{"type":"string","description":"Permissions type model to use for reading documents in this collection. You can use collection-level permission set once on the collection using the `read` and `write` params, or you can set document-level permission where each document read and write params will decide who has access to read and write to each document individually. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":"document"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"enabled":{"type":"boolean","description":"Is collection enabled?","x-example":false}},"required":["name","permission"]}}}}},"delete":{"summary":"Delete Collection","operationId":"databaseDeleteCollection","tags":["database"],"description":"Delete a collection by its unique ID. Only users with write permissions have access to delete this resource.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteCollection","weight":80,"cookies":false,"type":"","demo":"database\/delete-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}]}},"\/database\/collections\/{collectionId}\/attributes":{"get":{"summary":"List Attributes","operationId":"databaseListAttributes","tags":["database"],"description":"","responses":{"200":{"description":"Attributes List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeList"}}}}},"x-appwrite":{"method":"listAttributes","weight":89,"cookies":false,"type":"","demo":"database\/list-attributes.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-attributes.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}]}},"\/database\/collections\/{collectionId}\/attributes\/boolean":{"post":{"summary":"Create Boolean Attribute","operationId":"databaseCreateBooleanAttribute","tags":["database"],"description":"Create a boolean attribute.\n","responses":{"201":{"description":"AttributeBoolean","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeBoolean"}}}}},"x-appwrite":{"method":"createBooleanAttribute","weight":88,"cookies":false,"type":"","demo":"database\/create-boolean-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-boolean-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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":"boolean","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":false},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/email":{"post":{"summary":"Create Email Attribute","operationId":"databaseCreateEmailAttribute","tags":["database"],"description":"Create an email attribute.\n","responses":{"201":{"description":"AttributeEmail","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeEmail"}}}}},"x-appwrite":{"method":"createEmailAttribute","weight":82,"cookies":false,"type":"","demo":"database\/create-email-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-email-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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":"email@example.com"},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/enum":{"post":{"summary":"Create Enum Attribute","operationId":"databaseCreateEnumAttribute","tags":["database"],"description":"","responses":{"201":{"description":"AttributeEnum","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeEnum"}}}}},"x-appwrite":{"method":"createEnumAttribute","weight":83,"cookies":false,"type":"","demo":"database\/create-enum-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-attribute-enum.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":null},"elements":{"type":"array","description":"Array of elements in enumerated type. Uses length of longest element to determine size. Maximum of 100 elements are allowed, each 1024 characters long.","x-example":null,"items":{"type":"string"}},"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":"[DEFAULT]"},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","elements","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/float":{"post":{"summary":"Create Float Attribute","operationId":"databaseCreateFloatAttribute","tags":["database"],"description":"Create a float attribute. Optionally, minimum and maximum values can be provided.\n","responses":{"201":{"description":"AttributeFloat","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeFloat"}}}}},"x-appwrite":{"method":"createFloatAttribute","weight":87,"cookies":false,"type":"","demo":"database\/create-float-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-float-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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},"min":{"type":"number","description":"Minimum value to enforce on new documents","x-example":null},"max":{"type":"number","description":"Maximum value to enforce on new documents","x-example":null},"default":{"type":"number","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":null},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/integer":{"post":{"summary":"Create Integer Attribute","operationId":"databaseCreateIntegerAttribute","tags":["database"],"description":"Create an integer attribute. Optionally, minimum and maximum values can be provided.\n","responses":{"201":{"description":"AttributeInteger","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeInteger"}}}}},"x-appwrite":{"method":"createIntegerAttribute","weight":86,"cookies":false,"type":"","demo":"database\/create-integer-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-integer-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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},"min":{"type":"integer","description":"Minimum value to enforce on new documents","x-example":null},"max":{"type":"integer","description":"Maximum value to enforce on new documents","x-example":null},"default":{"type":"integer","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":null},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/ip":{"post":{"summary":"Create IP Address Attribute","operationId":"databaseCreateIpAttribute","tags":["database"],"description":"Create IP address attribute.\n","responses":{"201":{"description":"AttributeIP","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeIp"}}}}},"x-appwrite":{"method":"createIpAttribute","weight":84,"cookies":false,"type":"","demo":"database\/create-ip-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-ip-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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":null},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/string":{"post":{"summary":"Create String Attribute","operationId":"databaseCreateStringAttribute","tags":["database"],"description":"Create a string attribute.\n","responses":{"201":{"description":"AttributeString","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeString"}}}}},"x-appwrite":{"method":"createStringAttribute","weight":81,"cookies":false,"type":"","demo":"database\/create-string-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-string-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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 text attributes, in number of characters.","x-example":1},"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":"[DEFAULT]"},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","size","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/url":{"post":{"summary":"Create URL Attribute","operationId":"databaseCreateUrlAttribute","tags":["database"],"description":"Create a URL attribute.\n","responses":{"201":{"description":"AttributeURL","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/attributeUrl"}}}}},"x-appwrite":{"method":"createUrlAttribute","weight":85,"cookies":false,"type":"","demo":"database\/create-url-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-url-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"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":"https:\/\/example.com"},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false}},"required":["key","required"]}}}}}},"\/database\/collections\/{collectionId}\/attributes\/{key}":{"get":{"summary":"Get Attribute","operationId":"databaseGetAttribute","tags":["database"],"description":"","responses":{"200":{"description":"AttributeBoolean, or AttributeInteger, or AttributeFloat, or AttributeEmail, or AttributeEnum, or AttributeURL, or AttributeIP, or AttributeString","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/attributeBoolean"},{"$ref":"#\/components\/schemas\/attributeInteger"},{"$ref":"#\/components\/schemas\/attributeFloat"},{"$ref":"#\/components\/schemas\/attributeEmail"},{"$ref":"#\/components\/schemas\/attributeEnum"},{"$ref":"#\/components\/schemas\/attributeUrl"},{"$ref":"#\/components\/schemas\/attributeIp"},{"$ref":"#\/components\/schemas\/attributeString"}]}}}}},"x-appwrite":{"method":"getAttribute","weight":90,"cookies":false,"type":"","demo":"database\/get-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"key","description":"Attribute Key.","required":true,"schema":{"type":"string"},"in":"path"}]},"delete":{"summary":"Delete Attribute","operationId":"databaseDeleteAttribute","tags":["database"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteAttribute","weight":91,"cookies":false,"type":"","demo":"database\/delete-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"key","description":"Attribute Key.","required":true,"schema":{"type":"string"},"in":"path"}]}},"\/database\/collections\/{collectionId}\/documents":{"get":{"summary":"List Documents","operationId":"databaseListDocuments","tags":["database"],"description":"Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's documents. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Documents List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/documentList"}}}}},"x-appwrite":{"method":"listDocuments","weight":97,"cookies":false,"type":"","demo":"database\/list-documents.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-documents.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"queries","description":"Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/database#querying-documents). Maximum of 100 queries are allowed, each 128 characters long.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]},"in":"query"},{"name":"limit","description":"Maximum number of documents to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the document used as the starting point for the query, excluding the document itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderAttributes","description":"Array of attributes used to sort results. Maximum of 100 order attributes are allowed, each 128 characters long.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]},"in":"query"},{"name":"orderTypes","description":"Array of order directions for sorting attribtues. Possible values are DESC for descending order, or ASC for ascending order. Maximum of 100 order types are allowed.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]},"in":"query"}]},"post":{"summary":"Create Document","operationId":"databaseCreateDocument","tags":["database"],"description":"Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](\/docs\/server\/database#databaseCreateCollection) API or directly from your database console.","responses":{"201":{"description":"Document","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/document"}}}}},"x-appwrite":{"method":"createDocument","weight":96,"cookies":false,"type":"","demo":"database\/create-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection). Make sure to define attributes before creating documents.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"documentId":{"type":"string","description":"Document ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[DOCUMENT_ID]"},"data":{"type":"object","description":"Document data as JSON object.","x-example":"{}"},"read":{"type":"array","description":"An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}},"required":["documentId","data"]}}}}}},"\/database\/collections\/{collectionId}\/documents\/{documentId}":{"get":{"summary":"Get Document","operationId":"databaseGetDocument","tags":["database"],"description":"Get a document by its unique ID. This endpoint response returns a JSON object with the document data.","responses":{"200":{"description":"Document","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/document"}}}}},"x-appwrite":{"method":"getDocument","weight":98,"cookies":false,"type":"","demo":"database\/get-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"documentId","description":"Document ID.","required":true,"schema":{"type":"string","x-example":"[DOCUMENT_ID]"},"in":"path"}]},"patch":{"summary":"Update Document","operationId":"databaseUpdateDocument","tags":["database"],"description":"Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.","responses":{"200":{"description":"Document","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/document"}}}}},"x-appwrite":{"method":"updateDocument","weight":100,"cookies":false,"type":"","demo":"database\/update-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/update-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"documentId","description":"Document ID.","required":true,"schema":{"type":"string","x-example":"[DOCUMENT_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Document data as JSON object. Include only attribute and value pairs to be updated.","x-example":"{}"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}},"required":["data"]}}}}},"delete":{"summary":"Delete Document","operationId":"databaseDeleteDocument","tags":["database"],"description":"Delete a document by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteDocument","weight":101,"cookies":false,"type":"","demo":"database\/delete-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"documentId","description":"Document ID.","required":true,"schema":{"type":"string","x-example":"[DOCUMENT_ID]"},"in":"path"}]}},"\/database\/collections\/{collectionId}\/indexes":{"get":{"summary":"List Indexes","operationId":"databaseListIndexes","tags":["database"],"description":"","responses":{"200":{"description":"Indexes List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/indexList"}}}}},"x-appwrite":{"method":"listIndexes","weight":93,"cookies":false,"type":"","demo":"database\/list-indexes.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-indexes.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}]},"post":{"summary":"Create Index","operationId":"databaseCreateIndex","tags":["database"],"description":"","responses":{"201":{"description":"Index","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/index"}}}}},"x-appwrite":{"method":"createIndex","weight":92,"cookies":false,"type":"","demo":"database\/create-index.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-index.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"key":{"type":"string","description":"Index Key.","x-example":null},"type":{"type":"string","description":"Index type.","x-example":"key"},"attributes":{"type":"array","description":"Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.","x-example":null,"items":{"type":"string"}},"orders":{"type":"array","description":"Array of index orders. Maximum of 100 orders are allowed.","x-example":null,"items":{"type":"string"}}},"required":["key","type","attributes"]}}}}}},"\/database\/collections\/{collectionId}\/indexes\/{key}":{"get":{"summary":"Get Index","operationId":"databaseGetIndex","tags":["database"],"description":"","responses":{"200":{"description":"Index","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/index"}}}}},"x-appwrite":{"method":"getIndex","weight":94,"cookies":false,"type":"","demo":"database\/get-index.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-index.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"key","description":"Index Key.","required":true,"schema":{"type":"string"},"in":"path"}]},"delete":{"summary":"Delete Index","operationId":"databaseDeleteIndex","tags":["database"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteIndex","weight":95,"cookies":false,"type":"","demo":"database\/delete-index.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-index.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"schema":{"type":"string","x-example":"[COLLECTION_ID]"},"in":"path"},{"name":"key","description":"Index Key.","required":true,"schema":{"type":"string"},"in":"path"}]}},"\/functions":{"get":{"summary":"List Functions","operationId":"functionsList","tags":["functions"],"description":"Get a list of all the project's functions. You can use the query params to filter your results.","responses":{"200":{"description":"Functions List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/functionList"}}}}},"x-appwrite":{"method":"list","weight":203,"cookies":false,"type":"","demo":"functions\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-functions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of functions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the function used as the starting point for the query, excluding the function itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Function","operationId":"functionsCreate","tags":["functions"],"description":"Create a new function. You can pass a list of [permissions](\/docs\/permissions) to allow different project users or team with access to execute the function using the client API.","responses":{"201":{"description":"Function","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/function"}}}}},"x-appwrite":{"method":"create","weight":202,"cookies":false,"type":"","demo":"functions\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"functionId":{"type":"string","description":"Function ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[FUNCTION_ID]"},"name":{"type":"string","description":"Function name. Max length: 128 chars.","x-example":"[NAME]"},"execute":{"type":"array","description":"An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions. Maximum of 100 scopes are allowed, each 64 characters long.","x-example":null,"items":{"type":"string"}},"runtime":{"type":"string","description":"Execution runtime.","x-example":"node-14.5"},"vars":{"type":"object","description":"Key-value JSON object that will be passed to the function as environment variables.","x-example":"{}"},"events":{"type":"array","description":"Events list. Maximum of 100 events are allowed.","x-example":null,"items":{"type":"string"}},"schedule":{"type":"string","description":"Schedule CRON syntax.","x-example":null},"timeout":{"type":"integer","description":"Function maximum execution time in seconds.","x-example":1}},"required":["functionId","name","execute","runtime"]}}}}}},"\/functions\/runtimes":{"get":{"summary":"List runtimes","operationId":"functionsListRuntimes","tags":["functions"],"description":"Get a list of all runtimes that are currently active on your instance.","responses":{"200":{"description":"Runtimes List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/runtimeList"}}}}},"x-appwrite":{"method":"listRuntimes","weight":204,"cookies":false,"type":"","demo":"functions\/list-runtimes.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-runtimes.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/functions\/{functionId}":{"get":{"summary":"Get Function","operationId":"functionsGet","tags":["functions"],"description":"Get a function by its unique ID.","responses":{"200":{"description":"Function","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/function"}}}}},"x-appwrite":{"method":"get","weight":205,"cookies":false,"type":"","demo":"functions\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"}]},"put":{"summary":"Update Function","operationId":"functionsUpdate","tags":["functions"],"description":"Update function by its unique ID.","responses":{"200":{"description":"Function","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/function"}}}}},"x-appwrite":{"method":"update","weight":207,"cookies":false,"type":"","demo":"functions\/update.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Function name. Max length: 128 chars.","x-example":"[NAME]"},"execute":{"type":"array","description":"An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions. Maximum of 100 scopes are allowed, each 64 characters long.","x-example":null,"items":{"type":"string"}},"vars":{"type":"object","description":"Key-value JSON object that will be passed to the function as environment variables.","x-example":"{}"},"events":{"type":"array","description":"Events list. Maximum of 100 events are allowed.","x-example":null,"items":{"type":"string"}},"schedule":{"type":"string","description":"Schedule CRON syntax.","x-example":null},"timeout":{"type":"integer","description":"Maximum execution time in seconds.","x-example":1}},"required":["name","execute"]}}}}},"delete":{"summary":"Delete Function","operationId":"functionsDelete","tags":["functions"],"description":"Delete a function by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":209,"cookies":false,"type":"","demo":"functions\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/delete-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"}]}},"\/functions\/{functionId}\/deployments":{"get":{"summary":"List Deployments","operationId":"functionsListDeployments","tags":["functions"],"description":"Get a list of all the project's code deployments. You can use the query params to filter your results.","responses":{"200":{"description":"Deployments List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/deploymentList"}}}}},"x-appwrite":{"method":"listDeployments","weight":211,"cookies":false,"type":"","demo":"functions\/list-deployments.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-deployments.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of deployments to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the deployment used as the starting point for the query, excluding the deployment itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Deployment","operationId":"functionsCreateDeployment","tags":["functions"],"description":"Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.\n\nThis endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](\/docs\/functions).\n\nUse the \"command\" param to set the entry point used to execute your code.","responses":{"201":{"description":"Deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/deployment"}}}}},"x-appwrite":{"method":"createDeployment","weight":210,"cookies":false,"type":"","demo":"functions\/create-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":true,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"}],"requestBody":{"content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"entrypoint":{"type":"string","description":"Entrypoint File.","x-example":"[ENTRYPOINT]"},"code":{"type":"string","description":"Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.","x-example":null},"activate":{"type":"boolean","description":"Automatically activate the deployment when it is finished building.","x-example":false}},"required":["entrypoint","code","activate"]}}}}}},"\/functions\/{functionId}\/deployments\/{deploymentId}":{"get":{"summary":"Get Deployment","operationId":"functionsGetDeployment","tags":["functions"],"description":"Get a code deployment by its unique ID.","responses":{"200":{"description":"Deployments List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/deploymentList"}}}}},"x-appwrite":{"method":"getDeployment","weight":212,"cookies":false,"type":"","demo":"functions\/get-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"schema":{"type":"string","x-example":"[DEPLOYMENT_ID]"},"in":"path"}]},"patch":{"summary":"Update Function Deployment","operationId":"functionsUpdateDeployment","tags":["functions"],"description":"Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.","responses":{"200":{"description":"Function","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/function"}}}}},"x-appwrite":{"method":"updateDeployment","weight":208,"cookies":false,"type":"","demo":"functions\/update-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-function-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"schema":{"type":"string","x-example":"[DEPLOYMENT_ID]"},"in":"path"}]},"delete":{"summary":"Delete Deployment","operationId":"functionsDeleteDeployment","tags":["functions"],"description":"Delete a code deployment by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteDeployment","weight":213,"cookies":false,"type":"","demo":"functions\/delete-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/delete-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"schema":{"type":"string","x-example":"[DEPLOYMENT_ID]"},"in":"path"}]}},"\/functions\/{functionId}\/deployments\/{deploymentId}\/builds\/{buildId}":{"post":{"summary":"Retry Build","operationId":"functionsRetryBuild","tags":["functions"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"retryBuild","weight":217,"cookies":false,"type":"","demo":"functions\/retry-build.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/retry-build.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"schema":{"type":"string","x-example":"[DEPLOYMENT_ID]"},"in":"path"},{"name":"buildId","description":"Build unique ID.","required":true,"schema":{"type":"string","x-example":"[BUILD_ID]"},"in":"path"}]}},"\/functions\/{functionId}\/executions":{"get":{"summary":"List Executions","operationId":"functionsListExecutions","tags":["functions"],"description":"Get a list of all the current user function execution logs. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's executions. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Executions List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/executionList"}}}}},"x-appwrite":{"method":"listExecutions","weight":215,"cookies":false,"type":"","demo":"functions\/list-executions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-executions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"execution.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"limit","description":"Maximum number of executions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"cursor","description":"ID of the execution used as the starting point for the query, excluding the execution itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"}]},"post":{"summary":"Create Execution","operationId":"functionsCreateExecution","tags":["functions"],"description":"Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.","responses":{"201":{"description":"Execution","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/execution"}}}}},"x-appwrite":{"method":"createExecution","weight":214,"cookies":false,"type":"","demo":"functions\/create-execution.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-execution.md","rate-limit":60,"rate-time":60,"rate-key":"url:{url},ip:{ip}","scope":"execution.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"string","description":"String of custom data to send to function.","x-example":"[DATA]"},"async":{"type":"boolean","description":"Execute code asynchronously. Default value is true.","x-example":false}}}}}}}},"\/functions\/{functionId}\/executions\/{executionId}":{"get":{"summary":"Get Execution","operationId":"functionsGetExecution","tags":["functions"],"description":"Get a function execution log by its unique ID.","responses":{"200":{"description":"Execution","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/execution"}}}}},"x-appwrite":{"method":"getExecution","weight":216,"cookies":false,"type":"","demo":"functions\/get-execution.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-execution.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"execution.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"schema":{"type":"string","x-example":"[FUNCTION_ID]"},"in":"path"},{"name":"executionId","description":"Execution ID.","required":true,"schema":{"type":"string","x-example":"[EXECUTION_ID]"},"in":"path"}]}},"\/health":{"get":{"summary":"Get HTTP","operationId":"healthGet","tags":["health"],"description":"Check the Appwrite HTTP server is up and responsive.","responses":{"200":{"description":"Health Status","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthStatus"}}}}},"x-appwrite":{"method":"get","weight":109,"cookies":false,"type":"","demo":"health\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/anti-virus":{"get":{"summary":"Get Antivirus","operationId":"healthGetAntivirus","tags":["health"],"description":"Check the Appwrite Antivirus server is up and connection is successful.","responses":{"200":{"description":"Health Antivirus","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthAntivirus"}}}}},"x-appwrite":{"method":"getAntivirus","weight":119,"cookies":false,"type":"","demo":"health\/get-antivirus.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-storage-anti-virus.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/cache":{"get":{"summary":"Get Cache","operationId":"healthGetCache","tags":["health"],"description":"Check the Appwrite in-memory cache server is up and connection is successful.","responses":{"200":{"description":"Health Status","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthStatus"}}}}},"x-appwrite":{"method":"getCache","weight":112,"cookies":false,"type":"","demo":"health\/get-cache.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-cache.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/db":{"get":{"summary":"Get DB","operationId":"healthGetDB","tags":["health"],"description":"Check the Appwrite database server is up and connection is successful.","responses":{"200":{"description":"Health Status","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthStatus"}}}}},"x-appwrite":{"method":"getDB","weight":111,"cookies":false,"type":"","demo":"health\/get-d-b.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-db.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/certificates":{"get":{"summary":"Get Certificates Queue","operationId":"healthGetQueueCertificates","tags":["health"],"description":"Get the number of certificates that are waiting to be issued against [Letsencrypt](https:\/\/letsencrypt.org\/) in the Appwrite internal queue server.","responses":{"200":{"description":"Health Queue","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthQueue"}}}}},"x-appwrite":{"method":"getQueueCertificates","weight":116,"cookies":false,"type":"","demo":"health\/get-queue-certificates.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-certificates.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/functions":{"get":{"summary":"Get Functions Queue","operationId":"healthGetQueueFunctions","tags":["health"],"description":"","responses":{"200":{"description":"Health Queue","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthQueue"}}}}},"x-appwrite":{"method":"getQueueFunctions","weight":117,"cookies":false,"type":"","demo":"health\/get-queue-functions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-functions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/logs":{"get":{"summary":"Get Logs Queue","operationId":"healthGetQueueLogs","tags":["health"],"description":"Get the number of logs that are waiting to be processed in the Appwrite internal queue server.","responses":{"200":{"description":"Health Queue","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthQueue"}}}}},"x-appwrite":{"method":"getQueueLogs","weight":115,"cookies":false,"type":"","demo":"health\/get-queue-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/webhooks":{"get":{"summary":"Get Webhooks Queue","operationId":"healthGetQueueWebhooks","tags":["health"],"description":"Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.","responses":{"200":{"description":"Health Queue","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthQueue"}}}}},"x-appwrite":{"method":"getQueueWebhooks","weight":114,"cookies":false,"type":"","demo":"health\/get-queue-webhooks.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-webhooks.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/storage\/local":{"get":{"summary":"Get Local Storage","operationId":"healthGetStorageLocal","tags":["health"],"description":"Check the Appwrite local storage device is up and connection is successful.","responses":{"200":{"description":"Health Status","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthStatus"}}}}},"x-appwrite":{"method":"getStorageLocal","weight":118,"cookies":false,"type":"","demo":"health\/get-storage-local.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-storage-local.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/time":{"get":{"summary":"Get Time","operationId":"healthGetTime","tags":["health"],"description":"Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https:\/\/en.wikipedia.org\/wiki\/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.","responses":{"200":{"description":"Health Time","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/healthTime"}}}}},"x-appwrite":{"method":"getTime","weight":113,"cookies":false,"type":"","demo":"health\/get-time.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-time.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/locale":{"get":{"summary":"Get User Locale","operationId":"localeGet","tags":["locale"],"description":"Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.\n\n([IP Geolocation by DB-IP](https:\/\/db-ip.com))","responses":{"200":{"description":"Locale","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/locale"}}}}},"x-appwrite":{"method":"get","weight":102,"cookies":false,"type":"","demo":"locale\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-locale.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/continents":{"get":{"summary":"List Continents","operationId":"localeGetContinents","tags":["locale"],"description":"List of all continents. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Continents List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/continentList"}}}}},"x-appwrite":{"method":"getContinents","weight":106,"cookies":false,"type":"","demo":"locale\/get-continents.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-continents.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/countries":{"get":{"summary":"List Countries","operationId":"localeGetCountries","tags":["locale"],"description":"List of all countries. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Countries List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/countryList"}}}}},"x-appwrite":{"method":"getCountries","weight":103,"cookies":false,"type":"","demo":"locale\/get-countries.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/countries\/eu":{"get":{"summary":"List EU Countries","operationId":"localeGetCountriesEU","tags":["locale"],"description":"List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Countries List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/countryList"}}}}},"x-appwrite":{"method":"getCountriesEU","weight":104,"cookies":false,"type":"","demo":"locale\/get-countries-e-u.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries-eu.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/countries\/phones":{"get":{"summary":"List Countries Phone Codes","operationId":"localeGetCountriesPhones","tags":["locale"],"description":"List of all countries phone codes. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Phones List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/phoneList"}}}}},"x-appwrite":{"method":"getCountriesPhones","weight":105,"cookies":false,"type":"","demo":"locale\/get-countries-phones.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries-phones.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/currencies":{"get":{"summary":"List Currencies","operationId":"localeGetCurrencies","tags":["locale"],"description":"List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Currencies List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/currencyList"}}}}},"x-appwrite":{"method":"getCurrencies","weight":107,"cookies":false,"type":"","demo":"locale\/get-currencies.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-currencies.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/languages":{"get":{"summary":"List Languages","operationId":"localeGetLanguages","tags":["locale"],"description":"List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.","responses":{"200":{"description":"Languages List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/languageList"}}}}},"x-appwrite":{"method":"getLanguages","weight":108,"cookies":false,"type":"","demo":"locale\/get-languages.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-languages.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/storage\/buckets":{"get":{"summary":"List buckets","operationId":"storageListBuckets","tags":["storage"],"description":"Get a list of all the storage buckets. You can use the query params to filter your results.","responses":{"200":{"description":"Buckets List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/bucketList"}}}}},"x-appwrite":{"method":"listBuckets","weight":152,"cookies":false,"type":"","demo":"storage\/list-buckets.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/list-buckets.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Results offset. The default value is 0. Use this param to manage pagination.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the bucket used as the starting point for the query, excluding the bucket itself. Should be used for efficient pagination when working with large sets of data.","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create bucket","operationId":"storageCreateBucket","tags":["storage"],"description":"Create a new storage bucket.","responses":{"201":{"description":"Bucket","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/bucket"}}}}},"x-appwrite":{"method":"createBucket","weight":151,"cookies":false,"type":"","demo":"storage\/create-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/create-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"bucketId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string `unique()` to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[BUCKET_ID]"},"name":{"type":"string","description":"Bucket name","x-example":"[NAME]"},"permission":{"type":"string","description":"Permissions type model to use for reading files in this bucket. You can use bucket-level permission set once on the bucket using the `read` and `write` params, or you can set file-level permission where each file read and write params will decide who has access to read and write to each file individually. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","x-example":"file"},"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"enabled":{"type":"boolean","description":"Is bucket enabled?","x-example":false},"maximumFileSize":{"type":"integer","description":"Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self-hosted setups you can change the max limit by changing the `_APP_STORAGE_LIMIT` environment variable. [Learn more about storage environment variables](docs\/environment-variables#storage)","x-example":1},"allowedFileExtensions":{"type":"array","description":"Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.","x-example":null,"items":{"type":"string"}},"encryption":{"type":"boolean","description":"Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled","x-example":false},"antivirus":{"type":"boolean","description":"Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled","x-example":false}},"required":["bucketId","name","permission"]}}}}}},"\/storage\/buckets\/{bucketId}":{"get":{"summary":"Get Bucket","operationId":"storageGetBucket","tags":["storage"],"description":"Get a storage bucket by its unique ID. This endpoint response returns a JSON object with the storage bucket metadata.","responses":{"200":{"description":"Bucket","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/bucket"}}}}},"x-appwrite":{"method":"getBucket","weight":153,"cookies":false,"type":"","demo":"storage\/get-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"bucketId","description":"Bucket unique ID.","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"}]},"put":{"summary":"Update Bucket","operationId":"storageUpdateBucket","tags":["storage"],"description":"Update a storage bucket by its unique ID.","responses":{"200":{"description":"Bucket","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/bucket"}}}}},"x-appwrite":{"method":"updateBucket","weight":154,"cookies":false,"type":"","demo":"storage\/update-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/update-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"bucketId","description":"Bucket unique ID.","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Bucket name","x-example":"[NAME]"},"permission":{"type":"string","description":"Permissions type model to use for reading files in this bucket. You can use bucket-level permission set once on the bucket using the `read` and `write` params, or you can set file-level permission where each file read and write params will decide who has access to read and write to each file individually. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","x-example":"file"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"enabled":{"type":"boolean","description":"Is bucket enabled?","x-example":false},"maximumFileSize":{"type":"integer","description":"Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self hosted version you can change the limit by changing _APP_STORAGE_LIMIT environment variable. [Learn more about storage environment variables](docs\/environment-variables#storage)","x-example":1},"allowedFileExtensions":{"type":"array","description":"Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.","x-example":null,"items":{"type":"string"}},"encryption":{"type":"boolean","description":"Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled","x-example":false},"antivirus":{"type":"boolean","description":"Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled","x-example":false}},"required":["name","permission"]}}}}},"delete":{"summary":"Delete Bucket","operationId":"storageDeleteBucket","tags":["storage"],"description":"Delete a storage bucket by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteBucket","weight":155,"cookies":false,"type":"","demo":"storage\/delete-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/delete-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"bucketId","description":"Bucket unique ID.","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files":{"get":{"summary":"List Files","operationId":"storageListFiles","tags":["storage"],"description":"Get a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's files. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Files List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/fileList"}}}}},"x-appwrite":{"method":"listFiles","weight":157,"cookies":false,"type":"","demo":"storage\/list-files.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/list-files.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of files to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the file used as the starting point for the query, excluding the file itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create File","operationId":"storageCreateFile","tags":["storage"],"description":"Create a new file. Before using this route, you should create a new bucket resource using either a [server integration](\/docs\/server\/database#storageCreateBucket) API or directly from your Appwrite console.\n\nLarger files should be uploaded using multiple requests with the [content-range](https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Headers\/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.\n\nWhen the first request is sent, the server will return the **File** object, and the subsequent part request must include the file's **id** in `x-appwrite-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.\n\nIf you're creating a new file using one of the Appwrite SDKs, all the chunking logic will be managed by the SDK internally.\n","responses":{"201":{"description":"File","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/file"}}}}},"x-appwrite":{"method":"createFile","weight":156,"cookies":false,"type":"upload","demo":"storage\/create-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/create-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"}],"requestBody":{"content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"fileId":{"type":"string","description":"File ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[FILE_ID]","x-upload-id":true},"file":{"type":"string","description":"Binary file.","x-example":null},"read":{"type":"array","description":"An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}},"required":["fileId","file"]}}}}}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}":{"get":{"summary":"Get File","operationId":"storageGetFile","tags":["storage"],"description":"Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.","responses":{"200":{"description":"File","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/file"}}}}},"x-appwrite":{"method":"getFile","weight":158,"cookies":false,"type":"","demo":"storage\/get-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}]},"put":{"summary":"Update File","operationId":"storageUpdateFile","tags":["storage"],"description":"Update a file by its unique ID. Only users with write permissions have access to update this resource.","responses":{"200":{"description":"File","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/file"}}}}},"x-appwrite":{"method":"updateFile","weight":162,"cookies":false,"type":"","demo":"storage\/update-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/update-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File unique ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","x-example":null,"items":{"type":"string"}}}}}}}},"delete":{"summary":"Delete File","operationId":"storageDeleteFile","tags":["storage"],"description":"Delete a file by its unique ID. Only users with write permissions have access to delete this resource.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteFile","weight":163,"cookies":false,"type":"","demo":"storage\/delete-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/delete-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/download":{"get":{"summary":"Get File for Download","operationId":"storageGetFileDownload","tags":["storage"],"description":"Get a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.","responses":{"200":{"description":"File"}},"x-appwrite":{"method":"getFileDownload","weight":160,"cookies":false,"type":"location","demo":"storage\/get-file-download.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-download.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/preview":{"get":{"summary":"Get File Preview","operationId":"storageGetFilePreview","tags":["storage"],"description":"Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image. Preview is supported only for image files smaller than 10MB.","responses":{"200":{"description":"Image"}},"x-appwrite":{"method":"getFilePreview","weight":159,"cookies":false,"type":"location","demo":"storage\/get-file-preview.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-preview.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"},{"name":"width","description":"Resize preview image width, Pass an integer between 0 to 4000.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"height","description":"Resize preview image height, Pass an integer between 0 to 4000.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"gravity","description":"Image crop gravity. Can be one of center,top-left,top,top-right,left,right,bottom-left,bottom,bottom-right","required":false,"schema":{"type":"string","x-example":"center","default":"center"},"in":"query"},{"name":"quality","description":"Preview image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":100},"in":"query"},{"name":"borderWidth","description":"Preview image border in pixels. Pass an integer between 0 to 100. Defaults to 0.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"borderColor","description":"Preview image border color. Use a valid HEX color, no # is needed for prefix.","required":false,"schema":{"type":"string","default":""},"in":"query"},{"name":"borderRadius","description":"Preview image border radius in pixels. Pass an integer between 0 to 4000.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"opacity","description":"Preview image opacity. Only works with images having an alpha channel (like png). Pass a number between 0 to 1.","required":false,"schema":{"type":"number","format":"float","x-example":0,"default":1},"in":"query"},{"name":"rotation","description":"Preview image rotation in degrees. Pass an integer between -360 and 360.","required":false,"schema":{"type":"integer","format":"int32","x-example":-360,"default":0},"in":"query"},{"name":"background","description":"Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix.","required":false,"schema":{"type":"string","default":""},"in":"query"},{"name":"output","description":"Output format type (jpeg, jpg, png, gif and webp).","required":false,"schema":{"type":"string","x-example":"jpg","default":""},"in":"query"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/view":{"get":{"summary":"Get File for View","operationId":"storageGetFileView","tags":["storage"],"description":"Get a file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header.","responses":{"200":{"description":"File"}},"x-appwrite":{"method":"getFileView","weight":161,"cookies":false,"type":"location","demo":"storage\/get-file-view.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-view.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"schema":{"type":"string","x-example":"[BUCKET_ID]"},"in":"path"},{"name":"fileId","description":"File ID.","required":true,"schema":{"type":"string","x-example":"[FILE_ID]"},"in":"path"}]}},"\/teams":{"get":{"summary":"List Teams","operationId":"teamsList","tags":["teams"],"description":"Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.\r\n\r\nIn admin mode, this endpoint returns a list of all the teams in the current project. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Teams List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/teamList"}}}}},"x-appwrite":{"method":"list","weight":167,"cookies":false,"type":"","demo":"teams\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/list-teams.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of teams to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the team used as the starting point for the query, excluding the team itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Team","operationId":"teamsCreate","tags":["teams"],"description":"Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.","responses":{"201":{"description":"Team","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/team"}}}}},"x-appwrite":{"method":"create","weight":166,"cookies":false,"type":"","demo":"teams\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/create-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"teamId":{"type":"string","description":"Team ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[TEAM_ID]"},"name":{"type":"string","description":"Team name. Max length: 128 chars.","x-example":"[NAME]"},"roles":{"type":"array","description":"Array of strings. Use this param to set the roles in the team for the user who created it. The default role is **owner**. A role can be any string. Learn more about [roles and permissions](\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","x-example":null,"items":{"type":"string"}}},"required":["teamId","name"]}}}}}},"\/teams\/{teamId}":{"get":{"summary":"Get Team","operationId":"teamsGet","tags":["teams"],"description":"Get a team by its ID. All team members have read access for this resource.","responses":{"200":{"description":"Team","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/team"}}}}},"x-appwrite":{"method":"get","weight":168,"cookies":false,"type":"","demo":"teams\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"}]},"put":{"summary":"Update Team","operationId":"teamsUpdate","tags":["teams"],"description":"Update a team using its ID. Only members with the owner role can update the team.","responses":{"200":{"description":"Team","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/team"}}}}},"x-appwrite":{"method":"update","weight":169,"cookies":false,"type":"","demo":"teams\/update.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"New team name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["name"]}}}}},"delete":{"summary":"Delete Team","operationId":"teamsDelete","tags":["teams"],"description":"Delete a team using its ID. Only team members with the owner role can delete the team.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":170,"cookies":false,"type":"","demo":"teams\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/delete-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"}]}},"\/teams\/{teamId}\/memberships":{"get":{"summary":"Get Team Memberships","operationId":"teamsGetMemberships","tags":["teams"],"description":"Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint.","responses":{"200":{"description":"Memberships List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membershipList"}}}}},"x-appwrite":{"method":"getMemberships","weight":172,"cookies":false,"type":"","demo":"teams\/get-memberships.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-members.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of memberships to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the membership used as the starting point for the query, excluding the membership itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create Team Membership","operationId":"teamsCreateMembership","tags":["teams"],"description":"Invite a new member to join your team. If initiated from the client SDK, an email with a link to join the team will be sent to the member's email address and an account will be created for them should they not be signed up already. If initiated from server-side SDKs, the new member will automatically be added to the team.\n\nUse the 'url' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the [Update Team Membership Status](\/docs\/client\/teams#teamsUpdateMembershipStatus) endpoint to allow the user to accept the invitation to the team. \n\nPlease note that to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when adding your platforms in the console interface.","responses":{"201":{"description":"Membership","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membership"}}}}},"x-appwrite":{"method":"createMembership","weight":171,"cookies":false,"type":"","demo":"teams\/create-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/create-team-membership.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email of the new team member.","x-example":"email@example.com"},"roles":{"type":"array","description":"Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","x-example":null,"items":{"type":"string"}},"url":{"type":"string","description":"URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","x-example":"https:\/\/example.com"},"name":{"type":"string","description":"Name of the new team member. Max length: 128 chars.","x-example":"[NAME]"}},"required":["email","roles","url"]}}}}}},"\/teams\/{teamId}\/memberships\/{membershipId}":{"get":{"summary":"Get Team Membership","operationId":"teamsGetMembership","tags":["teams"],"description":"Get a team member by the membership unique id. All team members have read access for this resource.","responses":{"200":{"description":"Memberships List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membershipList"}}}}},"x-appwrite":{"method":"getMembership","weight":173,"cookies":false,"type":"","demo":"teams\/get-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-member.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"schema":{"type":"string","x-example":"[MEMBERSHIP_ID]"},"in":"path"}]},"patch":{"summary":"Update Membership Roles","operationId":"teamsUpdateMembershipRoles","tags":["teams"],"description":"Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](\/docs\/permissions).","responses":{"200":{"description":"Membership","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membership"}}}}},"x-appwrite":{"method":"updateMembershipRoles","weight":174,"cookies":false,"type":"","demo":"teams\/update-membership-roles.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team-membership-roles.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"schema":{"type":"string","x-example":"[MEMBERSHIP_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","description":"An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https:\/\/appwrite.io\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","x-example":null,"items":{"type":"string"}}},"required":["roles"]}}}}},"delete":{"summary":"Delete Team Membership","operationId":"teamsDeleteMembership","tags":["teams"],"description":"This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteMembership","weight":176,"cookies":false,"type":"","demo":"teams\/delete-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/delete-team-membership.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"schema":{"type":"string","x-example":"[MEMBERSHIP_ID]"},"in":"path"}]}},"\/teams\/{teamId}\/memberships\/{membershipId}\/status":{"patch":{"summary":"Update Team Membership Status","operationId":"teamsUpdateMembershipStatus","tags":["teams"],"description":"Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email received by the user.\n\nIf the request is successful, a session for the user is automatically created.\n","responses":{"200":{"description":"Membership","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membership"}}}}},"x-appwrite":{"method":"updateMembershipStatus","weight":175,"cookies":false,"type":"","demo":"teams\/update-membership-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team-membership-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"schema":{"type":"string","x-example":"[TEAM_ID]"},"in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"schema":{"type":"string","x-example":"[MEMBERSHIP_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","x-example":"[USER_ID]"},"secret":{"type":"string","description":"Secret key.","x-example":"[SECRET]"}},"required":["userId","secret"]}}}}}},"\/users":{"get":{"summary":"List Users","operationId":"usersList","tags":["users"],"description":"Get a list of all the project's users. You can use the query params to filter your results.","responses":{"200":{"description":"Users List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/userList"}}}}},"x-appwrite":{"method":"list","weight":186,"cookies":false,"type":"","demo":"users\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/list-users.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"schema":{"type":"string","x-example":"[SEARCH]","default":""},"in":"query"},{"name":"limit","description":"Maximum number of users to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"},{"name":"cursor","description":"ID of the user used as the starting point for the query, excluding the user itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"string","x-example":"[CURSOR]","default":""},"in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"schema":{"type":"string","x-example":"after","default":"after"},"in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"schema":{"type":"string","x-example":"ASC","default":"ASC"},"in":"query"}]},"post":{"summary":"Create User","operationId":"usersCreate","tags":["users"],"description":"Create a new user.","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"create","weight":178,"cookies":false,"type":"","demo":"users\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"Plaintext user password. Must be at least 8 chars.","x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/import\/argon2":{"post":{"summary":"Create User with Argon2 Password","operationId":"usersCreateArgon2User","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createArgon2User","weight":181,"cookies":false,"type":"","demo":"users\/create-argon2user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-argon2-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using Argon2.","x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/import\/bcrypt":{"post":{"summary":"Create User with BCrypt Password","operationId":"usersCreateBcryptUser","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createBcryptUser","weight":179,"cookies":false,"type":"","demo":"users\/create-bcrypt-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-bcrypt-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using BCrypt.","x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/import\/md5":{"post":{"summary":"Create User with MD5 Password","operationId":"usersCreateMD5User","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createMD5User","weight":180,"cookies":false,"type":"","demo":"users\/create-m-d5user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-md5-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using MD5.","x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/import\/phpass":{"post":{"summary":"Create User with PHPass Password","operationId":"usersCreatePHPassUser","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createPHPassUser","weight":183,"cookies":false,"type":"","demo":"users\/create-p-h-pass-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-phpass-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using PHPass.","x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/import\/scrypt":{"post":{"summary":"Create User with SCrypt Password","operationId":"usersCreateSCryptUser","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createSCryptUser","weight":184,"cookies":false,"type":"","demo":"users\/create-s-crypt-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-scrypt-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using SCrypt.","x-example":"password"},"passwordSalt":{"type":"string","description":"Optional salt used to hash password.","x-example":"[PASSWORD_SALT]"},"passwordCpu":{"type":"integer","description":"Optional CPU cost used to hash password.","x-example":null},"passwordMemory":{"type":"integer","description":"Optional memory cost used to hash password.","x-example":null},"passwordParallel":{"type":"integer","description":"Optional parallelization cost used to hash password.","x-example":null},"passwordLength":{"type":"integer","description":"Optional hash length used to hash password.","x-example":null},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/import\/scrypt-modified":{"post":{"summary":"Create User with SCrypt Modified Password","operationId":"usersCreateSCryptModifiedUser","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createSCryptModifiedUser","weight":185,"cookies":false,"type":"","demo":"users\/create-s-crypt-modified-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-scrypt-modified-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using SCrypt Modified.","x-example":"password"},"passwordSalt":{"type":"string","description":"Salt used to hash password.","x-example":"[PASSWORD_SALT]"},"passwordSaltSeparator":{"type":"string","description":"Salt separator used to hash password.","x-example":"[PASSWORD_SALT_SEPARATOR]"},"passwordSignerKey":{"type":"string","description":"Signer key used to hash password.","x-example":"[PASSWORD_SIGNER_KEY]"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password","passwordSalt","passwordSaltSeparator","passwordSignerKey"]}}}}}},"\/users\/import\/sha":{"post":{"summary":"Create User with SHA Password","operationId":"usersCreateSHAUser","tags":["users"],"description":"","responses":{"201":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"createSHAUser","weight":182,"cookies":false,"type":"","demo":"users\/create-s-h-a-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-sha-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using SHA.","x-example":"password"},"passwordVersion":{"type":"string","description":"Optional SHA version used to hash password. Allowed values are: 'sha1', 'sha224', 'sha256', 'sha384', 'sha512\/224', 'sha512\/256', 'sha512', 'sha3-224', 'sha3-256', 'sha3-384', 'sha3-512'","x-example":"sha1"},"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["userId","email","password"]}}}}}},"\/users\/{userId}":{"get":{"summary":"Get User","operationId":"usersGet","tags":["users"],"description":"Get a user by its unique ID.","responses":{"200":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"get","weight":187,"cookies":false,"type":"","demo":"users\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}]},"delete":{"summary":"Delete User","operationId":"usersDelete","tags":["users"],"description":"Delete a user by its unique ID, thereby releasing it's ID. Since ID is released and can be reused, all user-related resources like documents or storage files should be deleted before user deletion. If you want to keep ID reserved, use the [updateStatus](\/docs\/server\/users#usersUpdateStatus) endpoint instead.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":200,"cookies":false,"type":"","demo":"users\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/delete.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}]}},"\/users\/{userId}\/email":{"patch":{"summary":"Update Email","operationId":"usersUpdateEmail","tags":["users"],"description":"Update the user email by its unique ID.","responses":{"200":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"updateEmail","weight":196,"cookies":false,"type":"","demo":"users\/update-email.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-email.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","x-example":"email@example.com"}},"required":["email"]}}}}}},"\/users\/{userId}\/logs":{"get":{"summary":"Get User Logs","operationId":"usersGetLogs","tags":["users"],"description":"Get the user activity logs list by its unique ID.","responses":{"200":{"description":"Logs List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/logList"}}}}},"x-appwrite":{"method":"getLogs","weight":191,"cookies":false,"type":"","demo":"users\/get-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"},{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":25},"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"schema":{"type":"integer","format":"int32","x-example":0,"default":0},"in":"query"}]}},"\/users\/{userId}\/memberships":{"get":{"summary":"Get User Memberships","operationId":"usersGetMemberships","tags":["users"],"description":"Get the user membership list by its unique ID.","responses":{"200":{"description":"Memberships List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/membershipList"}}}}},"x-appwrite":{"method":"getMemberships","weight":190,"cookies":false,"type":"","demo":"users\/get-memberships.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-memberships.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}]}},"\/users\/{userId}\/name":{"patch":{"summary":"Update Name","operationId":"usersUpdateName","tags":["users"],"description":"Update the user name by its unique ID.","responses":{"200":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"updateName","weight":194,"cookies":false,"type":"","demo":"users\/update-name.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-name.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"User name. Max length: 128 chars.","x-example":"[NAME]"}},"required":["name"]}}}}}},"\/users\/{userId}\/password":{"patch":{"summary":"Update Password","operationId":"usersUpdatePassword","tags":["users"],"description":"Update the user password by its unique ID.","responses":{"200":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"updatePassword","weight":195,"cookies":false,"type":"","demo":"users\/update-password.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-password.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"password":{"type":"string","description":"New user password. Must be at least 8 chars.","x-example":"password"}},"required":["password"]}}}}}},"\/users\/{userId}\/prefs":{"get":{"summary":"Get User Preferences","operationId":"usersGetPrefs","tags":["users"],"description":"Get the user preferences by its unique ID.","responses":{"200":{"description":"Preferences","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/preferences"}}}}},"x-appwrite":{"method":"getPrefs","weight":188,"cookies":false,"type":"","demo":"users\/get-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}]},"patch":{"summary":"Update User Preferences","operationId":"usersUpdatePrefs","tags":["users"],"description":"Update the user preferences by its unique ID. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.","responses":{"200":{"description":"Preferences","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/preferences"}}}}},"x-appwrite":{"method":"updatePrefs","weight":197,"cookies":false,"type":"","demo":"users\/update-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"prefs":{"type":"object","description":"Prefs key-value JSON object.","x-example":"{}"}},"required":["prefs"]}}}}}},"\/users\/{userId}\/sessions":{"get":{"summary":"Get User Sessions","operationId":"usersGetSessions","tags":["users"],"description":"Get the user sessions list by its unique ID.","responses":{"200":{"description":"Sessions List","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sessionList"}}}}},"x-appwrite":{"method":"getSessions","weight":189,"cookies":false,"type":"","demo":"users\/get-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}]},"delete":{"summary":"Delete User Sessions","operationId":"usersDeleteSessions","tags":["users"],"description":"Delete all user's sessions by using the user's unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSessions","weight":199,"cookies":false,"type":"","demo":"users\/delete-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/delete-user-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}]}},"\/users\/{userId}\/sessions\/{sessionId}":{"delete":{"summary":"Delete User Session","operationId":"usersDeleteSession","tags":["users"],"description":"Delete a user sessions by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSession","weight":198,"cookies":false,"type":"","demo":"users\/delete-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/delete-user-session.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"},{"name":"sessionId","description":"Session ID.","required":true,"schema":{"type":"string","x-example":"[SESSION_ID]"},"in":"path"}]}},"\/users\/{userId}\/status":{"patch":{"summary":"Update User Status","operationId":"usersUpdateStatus","tags":["users"],"description":"Update the user status by its unique ID. Use this endpoint as an alternative to deleting a user if you want to keep user's ID reserved.","responses":{"200":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"updateStatus","weight":192,"cookies":false,"type":"","demo":"users\/update-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"status":{"type":"boolean","description":"User Status. To activate the user pass `true` and to block the user pass `false`.","x-example":false}},"required":["status"]}}}}}},"\/users\/{userId}\/verification":{"patch":{"summary":"Update Email Verification","operationId":"usersUpdateVerification","tags":["users"],"description":"Update the user email verification status by its unique ID.","responses":{"200":{"description":"User","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/user"}}}}},"x-appwrite":{"method":"updateVerification","weight":193,"cookies":false,"type":"","demo":"users\/update-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-verification.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"schema":{"type":"string","x-example":"[USER_ID]"},"in":"path"}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"emailVerification":{"type":"boolean","description":"User email verification status.","x-example":false}},"required":["emailVerification"]}}}}}}},"tags":[{"name":"account","description":"The Account service allows you to authenticate and manage a user account."},{"name":"avatars","description":"The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars."},{"name":"database","description":"The Database service allows you to create structured collections of documents, query and filter lists of documents"},{"name":"locale","description":"The Locale service allows you to customize your app based on your users' location."},{"name":"health","description":"The Health service allows you to both validate and monitor your Appwrite server's health."},{"name":"projects","description":"The Project service allows you to manage all the projects in your Appwrite server."},{"name":"storage","description":"The Storage service allows you to manage your project files."},{"name":"teams","description":"The Teams service allows you to group users of your project and to enable them to share read and write access to your project resources"},{"name":"users","description":"The Users service allows you to manage your project users."},{"name":"functions","description":"The Functions Service allows you view, create and manage your Cloud Functions."}],"components":{"schemas":{"error":{"description":"Error","type":"object","properties":{"message":{"type":"string","description":"Error message.","x-example":"Not found"},"code":{"type":"string","description":"Error code.","x-example":"404"},"type":{"type":"string","description":"Error type. You can learn more about all the error types at https:\/\/appwrite.io\/docs\/error-codes#errorTypes","x-example":"not_found"},"version":{"type":"string","description":"Server version number.","x-example":"1.0"}},"required":["message","code","type","version"]},"documentList":{"description":"Documents List","type":"object","properties":{"total":{"type":"integer","description":"Total number of documents documents that matched your query.","x-example":5,"format":"int32"},"documents":{"type":"array","description":"List of documents.","items":{"$ref":"#\/components\/schemas\/document"},"x-example":""}},"required":["total","documents"]},"collectionList":{"description":"Collections List","type":"object","properties":{"total":{"type":"integer","description":"Total number of collections documents that matched your query.","x-example":5,"format":"int32"},"collections":{"type":"array","description":"List of collections.","items":{"$ref":"#\/components\/schemas\/collection"},"x-example":""}},"required":["total","collections"]},"indexList":{"description":"Indexes List","type":"object","properties":{"total":{"type":"integer","description":"Total number of indexes documents that matched your query.","x-example":5,"format":"int32"},"indexes":{"type":"array","description":"List of indexes.","items":{"$ref":"#\/components\/schemas\/index"},"x-example":""}},"required":["total","indexes"]},"userList":{"description":"Users List","type":"object","properties":{"total":{"type":"integer","description":"Total number of users documents that matched your query.","x-example":5,"format":"int32"},"users":{"type":"array","description":"List of users.","items":{"$ref":"#\/components\/schemas\/user"},"x-example":""}},"required":["total","users"]},"sessionList":{"description":"Sessions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of sessions documents that matched your query.","x-example":5,"format":"int32"},"sessions":{"type":"array","description":"List of sessions.","items":{"$ref":"#\/components\/schemas\/session"},"x-example":""}},"required":["total","sessions"]},"logList":{"description":"Logs List","type":"object","properties":{"total":{"type":"integer","description":"Total number of logs documents that matched your query.","x-example":5,"format":"int32"},"logs":{"type":"array","description":"List of logs.","items":{"$ref":"#\/components\/schemas\/log"},"x-example":""}},"required":["total","logs"]},"fileList":{"description":"Files List","type":"object","properties":{"total":{"type":"integer","description":"Total number of files documents that matched your query.","x-example":5,"format":"int32"},"files":{"type":"array","description":"List of files.","items":{"$ref":"#\/components\/schemas\/file"},"x-example":""}},"required":["total","files"]},"bucketList":{"description":"Buckets List","type":"object","properties":{"total":{"type":"integer","description":"Total number of buckets documents that matched your query.","x-example":5,"format":"int32"},"buckets":{"type":"array","description":"List of buckets.","items":{"$ref":"#\/components\/schemas\/bucket"},"x-example":""}},"required":["total","buckets"]},"teamList":{"description":"Teams List","type":"object","properties":{"total":{"type":"integer","description":"Total number of teams documents that matched your query.","x-example":5,"format":"int32"},"teams":{"type":"array","description":"List of teams.","items":{"$ref":"#\/components\/schemas\/team"},"x-example":""}},"required":["total","teams"]},"membershipList":{"description":"Memberships List","type":"object","properties":{"total":{"type":"integer","description":"Total number of memberships documents that matched your query.","x-example":5,"format":"int32"},"memberships":{"type":"array","description":"List of memberships.","items":{"$ref":"#\/components\/schemas\/membership"},"x-example":""}},"required":["total","memberships"]},"functionList":{"description":"Functions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of functions documents that matched your query.","x-example":5,"format":"int32"},"functions":{"type":"array","description":"List of functions.","items":{"$ref":"#\/components\/schemas\/function"},"x-example":""}},"required":["total","functions"]},"runtimeList":{"description":"Runtimes List","type":"object","properties":{"total":{"type":"integer","description":"Total number of runtimes documents that matched your query.","x-example":5,"format":"int32"},"runtimes":{"type":"array","description":"List of runtimes.","items":{"$ref":"#\/components\/schemas\/runtime"},"x-example":""}},"required":["total","runtimes"]},"deploymentList":{"description":"Deployments List","type":"object","properties":{"total":{"type":"integer","description":"Total number of deployments documents that matched your query.","x-example":5,"format":"int32"},"deployments":{"type":"array","description":"List of deployments.","items":{"$ref":"#\/components\/schemas\/deployment"},"x-example":""}},"required":["total","deployments"]},"executionList":{"description":"Executions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of executions documents that matched your query.","x-example":5,"format":"int32"},"executions":{"type":"array","description":"List of executions.","items":{"$ref":"#\/components\/schemas\/execution"},"x-example":""}},"required":["total","executions"]},"countryList":{"description":"Countries List","type":"object","properties":{"total":{"type":"integer","description":"Total number of countries documents that matched your query.","x-example":5,"format":"int32"},"countries":{"type":"array","description":"List of countries.","items":{"$ref":"#\/components\/schemas\/country"},"x-example":""}},"required":["total","countries"]},"continentList":{"description":"Continents List","type":"object","properties":{"total":{"type":"integer","description":"Total number of continents documents that matched your query.","x-example":5,"format":"int32"},"continents":{"type":"array","description":"List of continents.","items":{"$ref":"#\/components\/schemas\/continent"},"x-example":""}},"required":["total","continents"]},"languageList":{"description":"Languages List","type":"object","properties":{"total":{"type":"integer","description":"Total number of languages documents that matched your query.","x-example":5,"format":"int32"},"languages":{"type":"array","description":"List of languages.","items":{"$ref":"#\/components\/schemas\/language"},"x-example":""}},"required":["total","languages"]},"currencyList":{"description":"Currencies List","type":"object","properties":{"total":{"type":"integer","description":"Total number of currencies documents that matched your query.","x-example":5,"format":"int32"},"currencies":{"type":"array","description":"List of currencies.","items":{"$ref":"#\/components\/schemas\/currency"},"x-example":""}},"required":["total","currencies"]},"phoneList":{"description":"Phones List","type":"object","properties":{"total":{"type":"integer","description":"Total number of phones documents that matched your query.","x-example":5,"format":"int32"},"phones":{"type":"array","description":"List of phones.","items":{"$ref":"#\/components\/schemas\/phone"},"x-example":""}},"required":["total","phones"]},"collection":{"description":"Collection","type":"object","properties":{"$id":{"type":"string","description":"Collection ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"Collection read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"Collection write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"},"name":{"type":"string","description":"Collection name.","x-example":"My Collection"},"enabled":{"type":"boolean","description":"Collection enabled.","x-example":false},"permission":{"type":"string","description":"Collection permission model. Possible values: `document` or `collection`","x-example":"document"},"attributes":{"type":"array","description":"Collection attributes.","items":{"anyOf":[{"$ref":"#\/components\/schemas\/attributeBoolean"},{"$ref":"#\/components\/schemas\/attributeInteger"},{"$ref":"#\/components\/schemas\/attributeFloat"},{"$ref":"#\/components\/schemas\/attributeEmail"},{"$ref":"#\/components\/schemas\/attributeEnum"},{"$ref":"#\/components\/schemas\/attributeUrl"},{"$ref":"#\/components\/schemas\/attributeIp"},{"$ref":"#\/components\/schemas\/attributeString"}]},"x-example":{}},"indexes":{"type":"array","description":"Collection indexes.","items":{"$ref":"#\/components\/schemas\/index"},"x-example":{}}},"required":["$id","$read","$write","name","enabled","permission","attributes","indexes"]},"attributeList":{"description":"Attributes List","type":"object","properties":{"total":{"type":"integer","description":"Total number of attributes in the given collection.","x-example":5,"format":"int32"},"attributes":{"type":"array","description":"List of attributes.","items":{"anyOf":[{"$ref":"#\/components\/schemas\/attributeBoolean"},{"$ref":"#\/components\/schemas\/attributeInteger"},{"$ref":"#\/components\/schemas\/attributeFloat"},{"$ref":"#\/components\/schemas\/attributeEmail"},{"$ref":"#\/components\/schemas\/attributeEnum"},{"$ref":"#\/components\/schemas\/attributeUrl"},{"$ref":"#\/components\/schemas\/attributeIp"},{"$ref":"#\/components\/schemas\/attributeString"}]},"x-example":""}},"required":["total","attributes"]},"attributeString":{"description":"AttributeString","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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"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","required","size"]},"attributeInteger":{"description":"AttributeInteger","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"count"},"type":{"type":"string","description":"Attribute type.","x-example":"integer"},"status":{"type":"string","description":"Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"min":{"type":"integer","description":"Minimum value to enforce for new documents.","x-example":1,"format":"int32","nullable":true},"max":{"type":"integer","description":"Maximum value to enforce for new documents.","x-example":10,"format":"int32","nullable":true},"default":{"type":"integer","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":10,"format":"int32","nullable":true}},"required":["key","type","status","required"]},"attributeFloat":{"description":"AttributeFloat","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"percentageCompleted"},"type":{"type":"string","description":"Attribute type.","x-example":"double"},"status":{"type":"string","description":"Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"min":{"type":"number","description":"Minimum value to enforce for new documents.","x-example":1.5,"format":"double","nullable":true},"max":{"type":"number","description":"Maximum value to enforce for new documents.","x-example":10.5,"format":"double","nullable":true},"default":{"type":"number","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":2.5,"format":"double","nullable":true}},"required":["key","type","status","required"]},"attributeBoolean":{"description":"AttributeBoolean","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"isEnabled"},"type":{"type":"string","description":"Attribute type.","x-example":"boolean"},"status":{"type":"string","description":"Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"default":{"type":"boolean","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":false,"nullable":true}},"required":["key","type","status","required"]},"attributeEmail":{"description":"AttributeEmail","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"userEmail"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"format":{"type":"string","description":"String format.","x-example":"email"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"default@example.com","nullable":true}},"required":["key","type","status","required","format"]},"attributeEnum":{"description":"AttributeEnum","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"status"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"elements":{"type":"array","description":"Array of elements in enumerated type.","items":{"type":"string"},"x-example":"element"},"format":{"type":"string","description":"String format.","x-example":"enum"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"element","nullable":true}},"required":["key","type","status","required","elements","format"]},"attributeIp":{"description":"AttributeIP","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"ipAddress"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"format":{"type":"string","description":"String format.","x-example":"ip"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"192.0.2.0","nullable":true}},"required":["key","type","status","required","format"]},"attributeUrl":{"description":"AttributeURL","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"githubUrl"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"nullable":true},"format":{"type":"string","description":"String format.","x-example":"url"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"http:\/\/example.com","nullable":true}},"required":["key","type","status","required","format"]},"index":{"description":"Index","type":"object","properties":{"key":{"type":"string","description":"Index Key.","x-example":"index1"},"type":{"type":"string","description":"Index type.","x-example":"primary"},"status":{"type":"string","description":"Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"attributes":{"type":"array","description":"Index attributes.","items":{"type":"string"},"x-example":[]},"orders":{"type":"array","description":"Index orders.","items":{"type":"string"},"x-example":[]}},"required":["key","type","status","attributes","orders"]},"document":{"description":"Document","type":"object","properties":{"$id":{"type":"string","description":"Document ID.","x-example":"5e5ea5c16897e"},"$collection":{"type":"string","description":"Collection ID.","x-example":"5e5ea5c15117e"},"$read":{"type":"array","description":"Document read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"Document write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"}},"additionalProperties":true,"required":["$id","$collection","$read","$write"]},"log":{"description":"Log","type":"object","properties":{"event":{"type":"string","description":"Event name.","x-example":"account.sessions.create"},"userId":{"type":"string","description":"User ID.","x-example":"610fc2f985ee0"},"userEmail":{"type":"string","description":"User Email.","x-example":"john@appwrite.io"},"userName":{"type":"string","description":"User Name.","x-example":"John Doe"},"mode":{"type":"string","description":"API mode when event triggered.","x-example":"admin"},"ip":{"type":"string","description":"IP session in use when the session was created.","x-example":"127.0.0.1"},"time":{"type":"integer","description":"Log creation time in Unix timestamp.","x-example":1592981250,"format":"int32"},"osCode":{"type":"string","description":"Operating system code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/os.json).","x-example":"Mac"},"osName":{"type":"string","description":"Operating system name.","x-example":"Mac"},"osVersion":{"type":"string","description":"Operating system version.","x-example":"Mac"},"clientType":{"type":"string","description":"Client type.","x-example":"browser"},"clientCode":{"type":"string","description":"Client code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/clients.json).","x-example":"CM"},"clientName":{"type":"string","description":"Client name.","x-example":"Chrome Mobile iOS"},"clientVersion":{"type":"string","description":"Client version.","x-example":"84.0"},"clientEngine":{"type":"string","description":"Client engine name.","x-example":"WebKit"},"clientEngineVersion":{"type":"string","description":"Client engine name.","x-example":"605.1.15"},"deviceName":{"type":"string","description":"Device name.","x-example":"smartphone"},"deviceBrand":{"type":"string","description":"Device brand name.","x-example":"Google"},"deviceModel":{"type":"string","description":"Device model name.","x-example":"Nexus 5"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"}},"required":["event","userId","userEmail","userName","mode","ip","time","osCode","osName","osVersion","clientType","clientCode","clientName","clientVersion","clientEngine","clientEngineVersion","deviceName","deviceBrand","deviceModel","countryCode","countryName"]},"user":{"description":"User","type":"object","properties":{"$id":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"User name.","x-example":"John Doe"},"password":{"type":"string","description":"Hashed user password.","x-example":"$argon2id$v=19$m=2048,t=4,p=3$aUZjLnliVWRINmFNTWMudg$5S+x+7uA31xFnrHFT47yFwcJeaP0w92L\/4LdgrVRXxE"},"hash":{"type":"string","description":"Password hashing algorithm.","x-example":"argon2"},"hashOptions":{"type":"string","description":"Password hashing algorithm configuration.","x-example":"{}"},"registration":{"type":"integer","description":"User registration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"status":{"type":"boolean","description":"User status. Pass `true` for enabled and `false` for disabled.","x-example":true},"passwordUpdate":{"type":"integer","description":"Unix timestamp of the most recent password update","x-example":1592981250,"format":"int32"},"email":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"emailVerification":{"type":"boolean","description":"Email verification status.","x-example":true},"prefs":{"type":"object","description":"User preferences as a key-value object","x-example":{"theme":"pink","timezone":"UTC"},"items":{"$ref":"#\/components\/schemas\/preferences"}}},"required":["$id","name","password","hash","hashOptions","registration","status","passwordUpdate","email","emailVerification","prefs"]},"account":{"description":"Account","type":"object","properties":{"$id":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"User name.","x-example":"John Doe"},"registration":{"type":"integer","description":"User registration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"status":{"type":"boolean","description":"User status. Pass `true` for enabled and `false` for disabled.","x-example":true},"passwordUpdate":{"type":"integer","description":"Unix timestamp of the most recent password update","x-example":1592981250,"format":"int32"},"email":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"emailVerification":{"type":"boolean","description":"Email verification status.","x-example":true},"prefs":{"type":"object","description":"User preferences as a key-value object","x-example":{"theme":"pink","timezone":"UTC"},"items":{"$ref":"#\/components\/schemas\/preferences"}}},"required":["$id","name","registration","status","passwordUpdate","email","emailVerification","prefs"]},"preferences":{"description":"Preferences","type":"object","additionalProperties":true},"session":{"description":"Session","type":"object","properties":{"$id":{"type":"string","description":"Session ID.","x-example":"5e5ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5bb8c16897e"},"expire":{"type":"integer","description":"Session expiration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"provider":{"type":"string","description":"Session Provider.","x-example":"email"},"providerUid":{"type":"string","description":"Session Provider User ID.","x-example":"user@example.com"},"providerAccessToken":{"type":"string","description":"Session Provider Access Token.","x-example":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"},"providerAccessTokenExpiry":{"type":"integer","description":"Date, the Unix timestamp of when the access token expires.","x-example":1592981250,"format":"int32"},"providerRefreshToken":{"type":"string","description":"Session Provider Refresh Token.","x-example":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"},"ip":{"type":"string","description":"IP in use when the session was created.","x-example":"127.0.0.1"},"osCode":{"type":"string","description":"Operating system code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/os.json).","x-example":"Mac"},"osName":{"type":"string","description":"Operating system name.","x-example":"Mac"},"osVersion":{"type":"string","description":"Operating system version.","x-example":"Mac"},"clientType":{"type":"string","description":"Client type.","x-example":"browser"},"clientCode":{"type":"string","description":"Client code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/clients.json).","x-example":"CM"},"clientName":{"type":"string","description":"Client name.","x-example":"Chrome Mobile iOS"},"clientVersion":{"type":"string","description":"Client version.","x-example":"84.0"},"clientEngine":{"type":"string","description":"Client engine name.","x-example":"WebKit"},"clientEngineVersion":{"type":"string","description":"Client engine name.","x-example":"605.1.15"},"deviceName":{"type":"string","description":"Device name.","x-example":"smartphone"},"deviceBrand":{"type":"string","description":"Device brand name.","x-example":"Google"},"deviceModel":{"type":"string","description":"Device model name.","x-example":"Nexus 5"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"},"current":{"type":"boolean","description":"Returns true if this the current user session.","x-example":true}},"required":["$id","userId","expire","provider","providerUid","providerAccessToken","providerAccessTokenExpiry","providerRefreshToken","ip","osCode","osName","osVersion","clientType","clientCode","clientName","clientVersion","clientEngine","clientEngineVersion","deviceName","deviceBrand","deviceModel","countryCode","countryName","current"]},"token":{"description":"Token","type":"object","properties":{"$id":{"type":"string","description":"Token ID.","x-example":"bb8ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5ea5c168bb8"},"secret":{"type":"string","description":"Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.","x-example":""},"expire":{"type":"integer","description":"Token expiration date in Unix timestamp.","x-example":1592981250,"format":"int32"}},"required":["$id","userId","secret","expire"]},"locale":{"description":"Locale","type":"object","properties":{"ip":{"type":"string","description":"User IP address.","x-example":"127.0.0.1"},"countryCode":{"type":"string","description":"Country code in [ISO 3166-1](http:\/\/en.wikipedia.org\/wiki\/ISO_3166-1) two-character format","x-example":"US"},"country":{"type":"string","description":"Country name. This field support localization.","x-example":"United States"},"continentCode":{"type":"string","description":"Continent code. A two character continent code \"AF\" for Africa, \"AN\" for Antarctica, \"AS\" for Asia, \"EU\" for Europe, \"NA\" for North America, \"OC\" for Oceania, and \"SA\" for South America.","x-example":"NA"},"continent":{"type":"string","description":"Continent name. This field support localization.","x-example":"North America"},"eu":{"type":"boolean","description":"True if country is part of the Europian Union.","x-example":false},"currency":{"type":"string","description":"Currency code in [ISO 4217-1](http:\/\/en.wikipedia.org\/wiki\/ISO_4217) three-character format","x-example":"USD"}},"required":["ip","countryCode","country","continentCode","continent","eu","currency"]},"file":{"description":"File","type":"object","properties":{"$id":{"type":"string","description":"File ID.","x-example":"5e5ea5c16897e"},"bucketId":{"type":"string","description":"Bucket ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"File read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"File write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"},"name":{"type":"string","description":"File name.","x-example":"Pink.png"},"dateCreated":{"type":"integer","description":"File creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"signature":{"type":"string","description":"File MD5 signature.","x-example":"5d529fd02b544198ae075bd57c1762bb"},"mimeType":{"type":"string","description":"File mime type.","x-example":"image\/png"},"sizeOriginal":{"type":"integer","description":"File original size in bytes.","x-example":17890,"format":"int32"},"chunksTotal":{"type":"integer","description":"Total number of chunks available","x-example":17890,"format":"int32"},"chunksUploaded":{"type":"integer","description":"Total number of chunks uploaded","x-example":17890,"format":"int32"}},"required":["$id","bucketId","$read","$write","name","dateCreated","signature","mimeType","sizeOriginal","chunksTotal","chunksUploaded"]},"bucket":{"description":"Bucket","type":"object","properties":{"$id":{"type":"string","description":"Bucket ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"File read permissions.","items":{"type":"string"},"x-example":["role:all"]},"$write":{"type":"array","description":"File write permissions.","items":{"type":"string"},"x-example":["user:608f9da25e7e1"]},"permission":{"type":"string","description":"Bucket permission model. Possible values: `bucket` or `file`","x-example":"file"},"dateCreated":{"type":"integer","description":"Bucket creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"dateUpdated":{"type":"integer","description":"Bucket update date in Unix timestamp.","x-example":1592981250,"format":"int32"},"name":{"type":"string","description":"Bucket name.","x-example":"Documents"},"enabled":{"type":"boolean","description":"Bucket enabled.","x-example":false},"maximumFileSize":{"type":"integer","description":"Maximum file size supported.","x-example":100,"format":"int32"},"allowedFileExtensions":{"type":"array","description":"Allowed file extensions.","items":{"type":"string"},"x-example":["jpg","png"]},"encryption":{"type":"boolean","description":"Bucket is encrypted.","x-example":false},"antivirus":{"type":"boolean","description":"Virus scanning is enabled.","x-example":false}},"required":["$id","$read","$write","permission","dateCreated","dateUpdated","name","enabled","maximumFileSize","allowedFileExtensions","encryption","antivirus"]},"team":{"description":"Team","type":"object","properties":{"$id":{"type":"string","description":"Team ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Team name.","x-example":"VIP"},"dateCreated":{"type":"integer","description":"Team creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"total":{"type":"integer","description":"Total number of team members.","x-example":7,"format":"int32"}},"required":["$id","name","dateCreated","total"]},"membership":{"description":"Membership","type":"object","properties":{"$id":{"type":"string","description":"Membership ID.","x-example":"5e5ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"userName":{"type":"string","description":"User name.","x-example":"John Doe"},"userEmail":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"teamId":{"type":"string","description":"Team ID.","x-example":"5e5ea5c16897e"},"teamName":{"type":"string","description":"Team name.","x-example":"VIP"},"invited":{"type":"integer","description":"Date, the user has been invited to join the team in Unix timestamp.","x-example":1592981250,"format":"int32"},"joined":{"type":"integer","description":"Date, the user has accepted the invitation to join the team in Unix timestamp.","x-example":1592981250,"format":"int32"},"confirm":{"type":"boolean","description":"User confirmation status, true if the user has joined the team or false otherwise.","x-example":false},"roles":{"type":"array","description":"User list of roles","items":{"type":"string"},"x-example":"admin"}},"required":["$id","userId","userName","userEmail","teamId","teamName","invited","joined","confirm","roles"]},"function":{"description":"Function","type":"object","properties":{"$id":{"type":"string","description":"Function ID.","x-example":"5e5ea5c16897e"},"execute":{"type":"array","description":"Execution permissions.","items":{"type":"string"},"x-example":"role:member"},"name":{"type":"string","description":"Function name.","x-example":"My Function"},"dateCreated":{"type":"integer","description":"Function creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"dateUpdated":{"type":"integer","description":"Function update date in Unix timestamp.","x-example":1592981257,"format":"int32"},"status":{"type":"string","description":"Function status. Possible values: `disabled`, `enabled`","x-example":"enabled"},"runtime":{"type":"string","description":"Function execution runtime.","x-example":"python-3.8"},"deployment":{"type":"string","description":"Function's active deployment ID.","x-example":"5e5ea5c16897e"},"vars":{"type":"object","description":"Function environment variables.","x-example":{"key":"value"}},"events":{"type":"array","description":"Function trigger events.","items":{"type":"string"},"x-example":"account.create"},"schedule":{"type":"string","description":"Function execution schedult in CRON format.","x-example":"5 4 * * *"},"scheduleNext":{"type":"integer","description":"Function next scheduled execution date in Unix timestamp.","x-example":1592981292,"format":"int32"},"schedulePrevious":{"type":"integer","description":"Function next scheduled execution date in Unix timestamp.","x-example":1592981237,"format":"int32"},"timeout":{"type":"integer","description":"Function execution timeout in seconds.","x-example":1592981237,"format":"int32"}},"required":["$id","execute","name","dateCreated","dateUpdated","status","runtime","deployment","vars","events","schedule","scheduleNext","schedulePrevious","timeout"]},"runtime":{"description":"Runtime","type":"object","properties":{"$id":{"type":"string","description":"Runtime ID.","x-example":"python-3.8"},"name":{"type":"string","description":"Runtime Name.","x-example":"Python"},"version":{"type":"string","description":"Runtime version.","x-example":"3.8"},"base":{"type":"string","description":"Base Docker image used to build the runtime.","x-example":"python:3.8-alpine"},"image":{"type":"string","description":"Image name of Docker Hub.","x-example":"appwrite\\\/runtime-for-python:3.8"},"logo":{"type":"string","description":"Name of the logo image.","x-example":"python.png"},"supports":{"type":"array","description":"List of supported architectures.","items":{"type":"string"},"x-example":"amd64"}},"required":["$id","name","version","base","image","logo","supports"]},"deployment":{"description":"Deployment","type":"object","properties":{"$id":{"type":"string","description":"Deployment ID.","x-example":"5e5ea5c16897e"},"resourceId":{"type":"string","description":"Resource ID.","x-example":"5e5ea6g16897e"},"resourceType":{"type":"string","description":"Resource type.","x-example":"functions"},"dateCreated":{"type":"integer","description":"The deployment creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"entrypoint":{"type":"string","description":"The entrypoint file to use to execute the deployment code.","x-example":"enabled"},"size":{"type":"integer","description":"The code size in bytes.","x-example":128,"format":"int32"},"buildId":{"type":"string","description":"The current build ID.","x-example":"5e5ea5c16897e"},"activate":{"type":"boolean","description":"Whether the deployment should be automatically activated.","x-example":true},"status":{"type":"string","description":"The deployment status.","x-example":"enabled"},"buildStdout":{"type":"string","description":"The build stdout.","x-example":"enabled"},"buildStderr":{"type":"string","description":"The build stderr.","x-example":"enabled"}},"required":["$id","resourceId","resourceType","dateCreated","entrypoint","size","buildId","activate","status","buildStdout","buildStderr"]},"execution":{"description":"Execution","type":"object","properties":{"$id":{"type":"string","description":"Execution ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"Execution read permissions.","items":{"type":"string"},"x-example":"role:all"},"functionId":{"type":"string","description":"Function ID.","x-example":"5e5ea6g16897e"},"dateCreated":{"type":"integer","description":"The execution creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"trigger":{"type":"string","description":"The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.","x-example":"http"},"status":{"type":"string","description":"The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.","x-example":"processing"},"statusCode":{"type":"integer","description":"The script status code.","x-example":0,"format":"int32"},"response":{"type":"string","description":"The script response output string. Logs the last 4,000 characters of the execution response output.","x-example":""},"stderr":{"type":"string","description":"The script stderr output string. Logs the last 4,000 characters of the execution stderr output","x-example":""},"time":{"type":"number","description":"The script execution time in seconds.","x-example":0.4,"format":"double"}},"required":["$id","$read","functionId","dateCreated","trigger","status","statusCode","response","stderr","time"]},"country":{"description":"Country","type":"object","properties":{"name":{"type":"string","description":"Country name.","x-example":"United States"},"code":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"}},"required":["name","code"]},"continent":{"description":"Continent","type":"object","properties":{"name":{"type":"string","description":"Continent name.","x-example":"Europe"},"code":{"type":"string","description":"Continent two letter code.","x-example":"EU"}},"required":["name","code"]},"language":{"description":"Language","type":"object","properties":{"name":{"type":"string","description":"Language name.","x-example":"Italian"},"code":{"type":"string","description":"Language two-character ISO 639-1 codes.","x-example":"it"},"nativeName":{"type":"string","description":"Language native name.","x-example":"Italiano"}},"required":["name","code","nativeName"]},"currency":{"description":"Currency","type":"object","properties":{"symbol":{"type":"string","description":"Currency symbol.","x-example":"$"},"name":{"type":"string","description":"Currency name.","x-example":"US dollar"},"symbolNative":{"type":"string","description":"Currency native symbol.","x-example":"$"},"decimalDigits":{"type":"integer","description":"Number of decimal digits.","x-example":2,"format":"int32"},"rounding":{"type":"number","description":"Currency digit rounding.","x-example":0,"format":"double"},"code":{"type":"string","description":"Currency code in [ISO 4217-1](http:\/\/en.wikipedia.org\/wiki\/ISO_4217) three-character format.","x-example":"USD"},"namePlural":{"type":"string","description":"Currency plural name","x-example":"US dollars"}},"required":["symbol","name","symbolNative","decimalDigits","rounding","code","namePlural"]},"phone":{"description":"Phone","type":"object","properties":{"code":{"type":"string","description":"Phone code.","x-example":"+1"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"}},"required":["code","countryCode","countryName"]},"healthAntivirus":{"description":"Health Antivirus","type":"object","properties":{"version":{"type":"string","description":"Antivirus version.","x-example":"1.0.0"},"status":{"type":"string","description":"Antivirus status. Possible values can are: `disabled`, `offline`, `online`","x-example":"online"}},"required":["version","status"]},"healthQueue":{"description":"Health Queue","type":"object","properties":{"size":{"type":"integer","description":"Amount of actions in the queue.","x-example":8,"format":"int32"}},"required":["size"]},"healthStatus":{"description":"Health Status","type":"object","properties":{"ping":{"type":"integer","description":"Duration in milliseconds how long the health check took.","x-example":128,"format":"int32"},"status":{"type":"string","description":"Service status. Possible values can are: `pass`, `fail`","x-example":"pass"}},"required":["ping","status"]},"healthTime":{"description":"Health Time","type":"object","properties":{"remoteTime":{"type":"integer","description":"Current unix timestamp on trustful remote server.","x-example":1639490751,"format":"int32"},"localTime":{"type":"integer","description":"Current unix timestamp of local server where Appwrite runs.","x-example":1639490844,"format":"int32"},"diff":{"type":"integer","description":"Difference of unix remote and local timestamps in milliseconds.","x-example":93,"format":"int32"}},"required":["remoteTime","localTime","diff"]}},"securitySchemes":{"Project":{"type":"apiKey","name":"X-Appwrite-Project","description":"Your project ID","in":"header","x-appwrite":{"demo":"5df5acd0d48c2"}},"Key":{"type":"apiKey","name":"X-Appwrite-Key","description":"Your secret API key","in":"header","x-appwrite":{"demo":"919c2d18fb5d4...a2ae413da83346ad2"}},"JWT":{"type":"apiKey","name":"X-Appwrite-JWT","description":"Your secret JSON Web Token","in":"header"},"Locale":{"type":"apiKey","name":"X-Appwrite-Locale","description":"","in":"header","x-appwrite":{"demo":"en"}}}},"externalDocs":{"description":"Full API docs, specs and tutorials","url":"https:\/\/appwrite.io\/docs"}} \ No newline at end of file diff --git a/app/config/specs/swagger2-0.15.x-client.json b/app/config/specs/swagger2-0.15.x-client.json deleted file mode 100644 index c2db00f601..0000000000 --- a/app/config/specs/swagger2-0.15.x-client.json +++ /dev/null @@ -1 +0,0 @@ -{"swagger":"2.0","info":{"version":"0.15.0","title":"Appwrite","description":"Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https:\/\/appwrite.io\/docs](https:\/\/appwrite.io\/docs)","termsOfService":"https:\/\/appwrite.io\/policy\/terms","contact":{"name":"Appwrite Team","url":"https:\/\/appwrite.io\/support","email":"team@appwrite.io"},"license":{"name":"BSD-3-Clause","url":"https:\/\/raw.githubusercontent.com\/appwrite\/appwrite\/master\/LICENSE"}},"host":"HOSTNAME","basePath":"\/v1","schemes":["https"],"consumes":["application\/json","multipart\/form-data"],"produces":["application\/json"],"securityDefinitions":{"Project":{"type":"apiKey","name":"X-Appwrite-Project","description":"Your project ID","in":"header","x-appwrite":{"demo":"5df5acd0d48c2"}},"JWT":{"type":"apiKey","name":"X-Appwrite-JWT","description":"Your secret JSON Web Token","in":"header","x-appwrite":{"demo":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."}},"Locale":{"type":"apiKey","name":"X-Appwrite-Locale","description":"","in":"header","x-appwrite":{"demo":"en"}}},"paths":{"\/account":{"get":{"summary":"Get Account","operationId":"accountGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Get currently logged in user data as JSON object.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"get","weight":49,"cookies":false,"type":"","demo":"account\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]},"post":{"summary":"Create Account","operationId":"accountCreate","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [\/account\/verfication](\/docs\/client\/account#accountCreateVerification) route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new [account session](\/docs\/client\/account#accountCreateSession).","responses":{"201":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"create","weight":39,"cookies":false,"type":"","demo":"account\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","default":null,"x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/account\/email":{"patch":{"summary":"Update Account Email","operationId":"accountUpdateEmail","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use the send confirmation email endpoint again to send the confirmation email. For security measures, user password is required to complete this request.\nThis endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.\n","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updateEmail","weight":56,"cookies":false,"type":"","demo":"account\/update-email.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-email.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","default":null,"x-example":"password"}},"required":["email","password"]}}]}},"\/account\/jwt":{"post":{"summary":"Create Account JWT","operationId":"accountCreateJWT","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes from its creation and will be invalid if the user will logout in that time frame.","responses":{"201":{"description":"JWT","schema":{"$ref":"#\/definitions\/jwt"}}},"x-appwrite":{"method":"createJWT","weight":48,"cookies":false,"type":"","demo":"account\/create-j-w-t.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},userId:{userId}","scope":"account","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}]}},"\/account\/logs":{"get":{"summary":"Get Account Logs","operationId":"accountGetLogs","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Get currently logged in user list of latest security activity logs. Each log returns user IP address, location and date and time of log.","responses":{"200":{"description":"Logs List","schema":{"$ref":"#\/definitions\/logList"}}},"x-appwrite":{"method":"getLogs","weight":52,"cookies":false,"type":"","demo":"account\/get-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"}]}},"\/account\/name":{"patch":{"summary":"Update Account Name","operationId":"accountUpdateName","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Update currently logged in user account name.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updateName","weight":54,"cookies":false,"type":"","demo":"account\/update-name.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-name.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"User name. Max length: 128 chars.","default":null,"x-example":"[NAME]"}},"required":["name"]}}]}},"\/account\/password":{"patch":{"summary":"Update Account Password","operationId":"accountUpdatePassword","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updatePassword","weight":55,"cookies":false,"type":"","demo":"account\/update-password.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-password.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"password":{"type":"string","description":"New user password. Must be at least 8 chars.","default":null,"x-example":"password"},"oldPassword":{"type":"string","description":"Current user password. Must be at least 8 chars.","default":"","x-example":"password"}},"required":["password"]}}]}},"\/account\/prefs":{"get":{"summary":"Get Account Preferences","operationId":"accountGetPrefs","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Get currently logged in user preferences as a key-value object.","responses":{"200":{"description":"Preferences","schema":{"$ref":"#\/definitions\/preferences"}}},"x-appwrite":{"method":"getPrefs","weight":50,"cookies":false,"type":"","demo":"account\/get-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]},"patch":{"summary":"Update Account Preferences","operationId":"accountUpdatePrefs","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Update currently logged in user account preferences. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updatePrefs","weight":57,"cookies":false,"type":"","demo":"account\/update-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"prefs":{"type":"object","description":"Prefs key-value JSON object.","default":{},"x-example":"{}"}},"required":["prefs"]}}]}},"\/account\/recovery":{"post":{"summary":"Create Password Recovery","operationId":"accountCreateRecovery","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Sends the user an email with a temporary secret key for password reset. When the user clicks the confirmation link he is redirected back to your app password reset URL with the secret key and email address values attached to the URL query string. Use the query string params to submit a request to the [PUT \/account\/recovery](\/docs\/client\/account#accountUpdateRecovery) endpoint to complete the process. The verification link sent to the user's email address is valid for 1 hour.","responses":{"201":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"createRecovery","weight":62,"cookies":false,"type":"","demo":"account\/create-recovery.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-recovery.md","rate-limit":10,"rate-time":3600,"rate-key":["url:{url},email:{param-email}","ip:{ip}"],"scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"url":{"type":"string","description":"URL to redirect the user back to your app from the recovery email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","default":null,"x-example":"https:\/\/example.com"}},"required":["email","url"]}}]},"put":{"summary":"Create Password Recovery (confirmation)","operationId":"accountUpdateRecovery","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to complete the user account password reset. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST \/account\/recovery](\/docs\/client\/account#accountCreateRecovery) endpoint.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.","responses":{"200":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"updateRecovery","weight":63,"cookies":false,"type":"","demo":"account\/update-recovery.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-recovery.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","default":null,"x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid reset token.","default":null,"x-example":"[SECRET]"},"password":{"type":"string","description":"New user password. Must be at least 8 chars.","default":null,"x-example":"password"},"passwordAgain":{"type":"string","description":"Repeat new user password. Must be at least 8 chars.","default":null,"x-example":"password"}},"required":["userId","secret","password","passwordAgain"]}}]}},"\/account\/sessions":{"get":{"summary":"Get Account Sessions","operationId":"accountGetSessions","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Get currently logged in user list of active sessions across different devices.","responses":{"200":{"description":"Sessions List","schema":{"$ref":"#\/definitions\/sessionList"}}},"x-appwrite":{"method":"getSessions","weight":51,"cookies":false,"type":"","demo":"account\/get-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]},"post":{"summary":"Create Account Session","operationId":"accountCreateSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Allow the user to login into their account by providing a valid email and password combination. This route will create a new session for the user.","responses":{"201":{"description":"Session","schema":{"$ref":"#\/definitions\/session"}}},"x-appwrite":{"method":"createSession","weight":40,"cookies":false,"type":"","demo":"account\/create-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},email:{param-email}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","default":null,"x-example":"password"}},"required":["email","password"]}}]},"delete":{"summary":"Delete All Account Sessions","operationId":"accountDeleteSessions","consumes":["application\/json"],"produces":[],"tags":["account"],"description":"Delete all sessions from the user account and remove any sessions cookies from the end client.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSessions","weight":61,"cookies":false,"type":"","demo":"account\/delete-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-sessions.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/sessions\/anonymous":{"post":{"summary":"Create Anonymous Session","operationId":"accountCreateAnonymousSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to allow a new user to register an anonymous account in your project. This route will also create a new session for the user. To allow the new user to convert an anonymous account to a normal account, you need to update its [email and password](\/docs\/client\/account#accountUpdateEmail) or create an [OAuth2 session](\/docs\/client\/account#accountCreateOAuth2Session).","responses":{"201":{"description":"Session","schema":{"$ref":"#\/definitions\/session"}}},"x-appwrite":{"method":"createAnonymousSession","weight":47,"cookies":false,"type":"","demo":"account\/create-anonymous-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-anonymous.md","rate-limit":50,"rate-time":3600,"rate-key":"ip:{ip}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}]}},"\/account\/sessions\/magic-url":{"post":{"summary":"Create Magic URL session","operationId":"accountCreateMagicURLSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Sends the user an email with a secret key for creating a session. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [PUT \/account\/sessions\/magic-url](\/docs\/client\/account#accountUpdateMagicURLSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour. If you are on a mobile device you can leave the URL parameter empty, so that the login completion will be handled by your Appwrite instance by default.","responses":{"201":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"createMagicURLSession","weight":45,"cookies":false,"type":"","demo":"account\/create-magic-u-r-l-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-magic-url-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},email:{param-email}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"url":{"type":"string","description":"URL to redirect the user back to your app from the magic URL login. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","default":"","x-example":"https:\/\/example.com"}},"required":["userId","email"]}}]},"put":{"summary":"Create Magic URL session (confirmation)","operationId":"accountUpdateMagicURLSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to complete creating the session with the Magic URL. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST \/account\/sessions\/magic-url](\/docs\/client\/account#accountCreateMagicURLSession) endpoint.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.","responses":{"200":{"description":"Session","schema":{"$ref":"#\/definitions\/session"}}},"x-appwrite":{"method":"updateMagicURLSession","weight":46,"cookies":false,"type":"","demo":"account\/update-magic-u-r-l-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-magic-url-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","default":null,"x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid verification token.","default":null,"x-example":"[SECRET]"}},"required":["userId","secret"]}}]}},"\/account\/sessions\/oauth2\/{provider}":{"get":{"summary":"Create Account Session with OAuth2","operationId":"accountCreateOAuth2Session","consumes":["application\/json"],"produces":["text\/html"],"tags":["account"],"description":"Allow the user to login to their account using the OAuth2 provider of their choice. Each OAuth2 provider should be enabled from the Appwrite console first. Use the success and failure arguments to provide a redirect URL's back to your app when login is completed.\n\nIf there is already an active session, the new session will be attached to the logged-in account. If there are no active sessions, the server will attempt to look for a user with the same email address as the email received from the OAuth2 provider and attach the new session to the existing user. If no matching user is found - the server will create a new user..\n","responses":{"301":{"description":"No content"}},"x-appwrite":{"method":"createOAuth2Session","weight":41,"cookies":false,"type":"webAuth","demo":"account\/create-o-auth2session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-oauth2.md","rate-limit":50,"rate-time":3600,"rate-key":"ip:{ip}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"provider","description":"OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, bitbucket, bitly, box, dailymotion, discord, dropbox, facebook, github, gitlab, google, linkedin, microsoft, notion, okta, paypal, paypalSandbox, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoom.","required":true,"type":"string","x-example":"amazon","in":"path"},{"name":"success","description":"URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","required":false,"type":"string","format":"url","x-example":"https:\/\/example.com","default":"","in":"query"},{"name":"failure","description":"URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","required":false,"type":"string","format":"url","x-example":"https:\/\/example.com","default":"","in":"query"},{"name":"scopes","description":"A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 128 characters long.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"default":[],"in":"query"}]}},"\/account\/sessions\/{sessionId}":{"get":{"summary":"Get Session By ID","operationId":"accountGetSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.","responses":{"200":{"description":"Session","schema":{"$ref":"#\/definitions\/session"}}},"x-appwrite":{"method":"getSession","weight":53,"cookies":false,"type":"","demo":"account\/get-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-session.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to get the current device session.","required":true,"type":"string","x-example":"[SESSION_ID]","in":"path"}]},"patch":{"summary":"Update Session (Refresh Tokens)","operationId":"accountUpdateSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Access tokens have limited lifespan and expire to mitigate security risks. If session was created using an OAuth provider, this route can be used to \"refresh\" the access token.","responses":{"200":{"description":"Session","schema":{"$ref":"#\/definitions\/session"}}},"x-appwrite":{"method":"updateSession","weight":60,"cookies":false,"type":"","demo":"account\/update-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to update the current device session.","required":true,"type":"string","x-example":"[SESSION_ID]","in":"path"}]},"delete":{"summary":"Delete Account Session","operationId":"accountDeleteSession","consumes":["application\/json"],"produces":[],"tags":["account"],"description":"Use this endpoint to log out the currently logged in user from all their account sessions across all of their different devices. When using the Session ID argument, only the unique session ID provided is deleted.\n","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSession","weight":59,"cookies":false,"type":"","demo":"account\/delete-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-session.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to delete the current device session.","required":true,"type":"string","x-example":"[SESSION_ID]","in":"path"}]}},"\/account\/status":{"patch":{"summary":"Update Account Status","operationId":"accountUpdateStatus","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Block the currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. To completely delete a user, use the Users API instead.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updateStatus","weight":58,"cookies":false,"type":"","demo":"account\/update-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/verification":{"post":{"summary":"Create Email Verification","operationId":"accountCreateVerification","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](\/docs\/client\/account#accountUpdateVerification). The verification link sent to the user's email address is valid for 7 days.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.\n","responses":{"201":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"createVerification","weight":64,"cookies":false,"type":"","demo":"account\/create-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-verification.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{userId}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"url":{"type":"string","description":"URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","default":null,"x-example":"https:\/\/example.com"}},"required":["url"]}}]},"put":{"summary":"Create Email Verification (confirmation)","operationId":"accountUpdateVerification","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.","responses":{"200":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"updateVerification","weight":65,"cookies":false,"type":"","demo":"account\/update-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-verification.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","default":null,"x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid verification token.","default":null,"x-example":"[SECRET]"}},"required":["userId","secret"]}}]}},"\/avatars\/browsers\/{code}":{"get":{"summary":"Get Browser Icon","operationId":"avatarsGetBrowser","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET \/account\/sessions](\/docs\/client\/account#accountGetSessions) endpoint. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getBrowser","weight":67,"cookies":false,"type":"location","demo":"avatars\/get-browser.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-browser.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"code","description":"Browser Code.","required":true,"type":"string","x-example":"aa","in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"}]}},"\/avatars\/credit-cards\/{code}":{"get":{"summary":"Get Credit Card Icon","operationId":"avatarsGetCreditCard","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getCreditCard","weight":66,"cookies":false,"type":"location","demo":"avatars\/get-credit-card.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-credit-card.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"code","description":"Credit Card Code. Possible values: amex, argencard, cabal, censosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.","required":true,"type":"string","x-example":"amex","in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"}]}},"\/avatars\/favicon":{"get":{"summary":"Get Favicon","operationId":"avatarsGetFavicon","consumes":["application\/json"],"produces":["image\/*"],"tags":["avatars"],"description":"Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getFavicon","weight":70,"cookies":false,"type":"location","demo":"avatars\/get-favicon.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-favicon.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"url","description":"Website URL which you want to fetch the favicon from.","required":true,"type":"string","format":"url","x-example":"https:\/\/example.com","in":"query"}]}},"\/avatars\/flags\/{code}":{"get":{"summary":"Get Country Flag","operationId":"avatarsGetFlag","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getFlag","weight":68,"cookies":false,"type":"location","demo":"avatars\/get-flag.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-flag.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"code","description":"Country Code. ISO Alpha-2 country code format.","required":true,"type":"string","x-example":"af","in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"}]}},"\/avatars\/image":{"get":{"summary":"Get Image from URL","operationId":"avatarsGetImage","consumes":["application\/json"],"produces":["image\/*"],"tags":["avatars"],"description":"Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make sure a 3rd party image is properly served using a TLS protocol.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 400x400px.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getImage","weight":69,"cookies":false,"type":"location","demo":"avatars\/get-image.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-image.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"url","description":"Image URL which you want to crop.","required":true,"type":"string","format":"url","x-example":"https:\/\/example.com","in":"query"},{"name":"width","description":"Resize preview image width, Pass an integer between 0 to 2000. Defaults to 400.","required":false,"type":"integer","format":"int32","x-example":0,"default":400,"in":"query"},{"name":"height","description":"Resize preview image height, Pass an integer between 0 to 2000. Defaults to 400.","required":false,"type":"integer","format":"int32","x-example":0,"default":400,"in":"query"}]}},"\/avatars\/initials":{"get":{"summary":"Get User Initials","operationId":"avatarsGetInitials","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"Use this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user name if you pass the 'name' parameter. If no name is given and no user is logged, an empty avatar will be returned.\n\nYou can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user's initials when reloading the same theme will always return for the same initials.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getInitials","weight":72,"cookies":false,"type":"location","demo":"avatars\/get-initials.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-initials.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"name","description":"Full Name. When empty, current user name or email will be used. Max length: 128 chars.","required":false,"type":"string","x-example":"[NAME]","default":"","in":"query"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":500,"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":500,"in":"query"},{"name":"color","description":"Changes text color. By default a random color will be picked and stay will persistent to the given name.","required":false,"type":"string","default":"","in":"query"},{"name":"background","description":"Changes background color. By default a random color will be picked and stay will persistent to the given name.","required":false,"type":"string","default":"","in":"query"}]}},"\/avatars\/qr":{"get":{"summary":"Get QR Code","operationId":"avatarsGetQR","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getQR","weight":71,"cookies":false,"type":"location","demo":"avatars\/get-q-r.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"text","description":"Plain text to be converted to QR code image.","required":true,"type":"string","x-example":"[TEXT]","in":"query"},{"name":"size","description":"QR code size. Pass an integer between 1 to 1000. Defaults to 400.","required":false,"type":"integer","format":"int32","x-example":1,"default":400,"in":"query"},{"name":"margin","description":"Margin from edge. Pass an integer between 0 to 10. Defaults to 1.","required":false,"type":"integer","format":"int32","x-example":0,"default":1,"in":"query"},{"name":"download","description":"Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0.","required":false,"type":"boolean","x-example":false,"default":false,"in":"query"}]}},"\/database\/collections\/{collectionId}\/documents":{"get":{"summary":"List Documents","operationId":"databaseListDocuments","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's documents. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Documents List","schema":{"$ref":"#\/definitions\/documentList"}}},"x-appwrite":{"method":"listDocuments","weight":97,"cookies":false,"type":"","demo":"database\/list-documents.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-documents.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"queries","description":"Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/database#querying-documents). Maximum of 100 queries are allowed, each 128 characters long.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"default":[],"in":"query"},{"name":"limit","description":"Maximum number of documents to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the document used as the starting point for the query, excluding the document itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderAttributes","description":"Array of attributes used to sort results. Maximum of 100 order attributes are allowed, each 128 characters long.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"default":[],"in":"query"},{"name":"orderTypes","description":"Array of order directions for sorting attribtues. Possible values are DESC for descending order, or ASC for ascending order. Maximum of 100 order types are allowed.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"default":[],"in":"query"}]},"post":{"summary":"Create Document","operationId":"databaseCreateDocument","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](\/docs\/server\/database#databaseCreateCollection) API or directly from your database console.","responses":{"201":{"description":"Document","schema":{"$ref":"#\/definitions\/document"}}},"x-appwrite":{"method":"createDocument","weight":96,"cookies":false,"type":"","demo":"database\/create-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection). Make sure to define attributes before creating documents.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"documentId":{"type":"string","description":"Document ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[DOCUMENT_ID]"},"data":{"type":"object","description":"Document data as JSON object.","default":{},"x-example":"{}"},"read":{"type":"array","description":"An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}}},"required":["documentId","data"]}}]}},"\/database\/collections\/{collectionId}\/documents\/{documentId}":{"get":{"summary":"Get Document","operationId":"databaseGetDocument","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Get a document by its unique ID. This endpoint response returns a JSON object with the document data.","responses":{"200":{"description":"Document","schema":{"$ref":"#\/definitions\/document"}}},"x-appwrite":{"method":"getDocument","weight":98,"cookies":false,"type":"","demo":"database\/get-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"documentId","description":"Document ID.","required":true,"type":"string","x-example":"[DOCUMENT_ID]","in":"path"}]},"patch":{"summary":"Update Document","operationId":"databaseUpdateDocument","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.","responses":{"200":{"description":"Document","schema":{"$ref":"#\/definitions\/document"}}},"x-appwrite":{"method":"updateDocument","weight":100,"cookies":false,"type":"","demo":"database\/update-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/update-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"documentId","description":"Document ID.","required":true,"type":"string","x-example":"[DOCUMENT_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"data":{"type":"object","description":"Document data as JSON object. Include only attribute and value pairs to be updated.","default":{},"x-example":"{}"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}}},"required":["data"]}}]},"delete":{"summary":"Delete Document","operationId":"databaseDeleteDocument","consumes":["application\/json"],"produces":[],"tags":["database"],"description":"Delete a document by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteDocument","weight":101,"cookies":false,"type":"","demo":"database\/delete-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"documentId","description":"Document ID.","required":true,"type":"string","x-example":"[DOCUMENT_ID]","in":"path"}]}},"\/functions\/{functionId}\/deployments\/{deploymentId}\/builds\/{buildId}":{"post":{"summary":"Retry Build","operationId":"functionsRetryBuild","consumes":["application\/json"],"produces":[],"tags":["functions"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"retryBuild","weight":217,"cookies":false,"type":"","demo":"functions\/retry-build.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/retry-build.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"type":"string","x-example":"[DEPLOYMENT_ID]","in":"path"},{"name":"buildId","description":"Build unique ID.","required":true,"type":"string","x-example":"[BUILD_ID]","in":"path"}]}},"\/functions\/{functionId}\/executions":{"get":{"summary":"List Executions","operationId":"functionsListExecutions","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a list of all the current user function execution logs. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's executions. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Executions List","schema":{"$ref":"#\/definitions\/executionList"}}},"x-appwrite":{"method":"listExecutions","weight":215,"cookies":false,"type":"","demo":"functions\/list-executions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-executions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"execution.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"limit","description":"Maximum number of executions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"cursor","description":"ID of the execution used as the starting point for the query, excluding the execution itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"}]},"post":{"summary":"Create Execution","operationId":"functionsCreateExecution","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.","responses":{"201":{"description":"Execution","schema":{"$ref":"#\/definitions\/execution"}}},"x-appwrite":{"method":"createExecution","weight":214,"cookies":false,"type":"","demo":"functions\/create-execution.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-execution.md","rate-limit":60,"rate-time":60,"rate-key":"url:{url},ip:{ip}","scope":"execution.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"data":{"type":"string","description":"String of custom data to send to function.","default":"","x-example":"[DATA]"},"async":{"type":"boolean","description":"Execute code asynchronously. Default value is true.","default":true,"x-example":false}}}}]}},"\/functions\/{functionId}\/executions\/{executionId}":{"get":{"summary":"Get Execution","operationId":"functionsGetExecution","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a function execution log by its unique ID.","responses":{"200":{"description":"Execution","schema":{"$ref":"#\/definitions\/execution"}}},"x-appwrite":{"method":"getExecution","weight":216,"cookies":false,"type":"","demo":"functions\/get-execution.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-execution.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"execution.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"executionId","description":"Execution ID.","required":true,"type":"string","x-example":"[EXECUTION_ID]","in":"path"}]}},"\/locale":{"get":{"summary":"Get User Locale","operationId":"localeGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.\n\n([IP Geolocation by DB-IP](https:\/\/db-ip.com))","responses":{"200":{"description":"Locale","schema":{"$ref":"#\/definitions\/locale"}}},"x-appwrite":{"method":"get","weight":102,"cookies":false,"type":"","demo":"locale\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-locale.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/locale\/continents":{"get":{"summary":"List Continents","operationId":"localeGetContinents","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all continents. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Continents List","schema":{"$ref":"#\/definitions\/continentList"}}},"x-appwrite":{"method":"getContinents","weight":106,"cookies":false,"type":"","demo":"locale\/get-continents.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-continents.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/locale\/countries":{"get":{"summary":"List Countries","operationId":"localeGetCountries","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all countries. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Countries List","schema":{"$ref":"#\/definitions\/countryList"}}},"x-appwrite":{"method":"getCountries","weight":103,"cookies":false,"type":"","demo":"locale\/get-countries.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/locale\/countries\/eu":{"get":{"summary":"List EU Countries","operationId":"localeGetCountriesEU","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Countries List","schema":{"$ref":"#\/definitions\/countryList"}}},"x-appwrite":{"method":"getCountriesEU","weight":104,"cookies":false,"type":"","demo":"locale\/get-countries-e-u.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries-eu.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/locale\/countries\/phones":{"get":{"summary":"List Countries Phone Codes","operationId":"localeGetCountriesPhones","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all countries phone codes. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Phones List","schema":{"$ref":"#\/definitions\/phoneList"}}},"x-appwrite":{"method":"getCountriesPhones","weight":105,"cookies":false,"type":"","demo":"locale\/get-countries-phones.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries-phones.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/locale\/currencies":{"get":{"summary":"List Currencies","operationId":"localeGetCurrencies","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Currencies List","schema":{"$ref":"#\/definitions\/currencyList"}}},"x-appwrite":{"method":"getCurrencies","weight":107,"cookies":false,"type":"","demo":"locale\/get-currencies.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-currencies.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/locale\/languages":{"get":{"summary":"List Languages","operationId":"localeGetLanguages","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.","responses":{"200":{"description":"Languages List","schema":{"$ref":"#\/definitions\/languageList"}}},"x-appwrite":{"method":"getLanguages","weight":108,"cookies":false,"type":"","demo":"locale\/get-languages.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-languages.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/storage\/buckets\/{bucketId}\/files":{"get":{"summary":"List Files","operationId":"storageListFiles","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Get a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's files. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Files List","schema":{"$ref":"#\/definitions\/fileList"}}},"x-appwrite":{"method":"listFiles","weight":157,"cookies":false,"type":"","demo":"storage\/list-files.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/list-files.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of files to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the file used as the starting point for the query, excluding the file itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create File","operationId":"storageCreateFile","consumes":["multipart\/form-data"],"produces":["application\/json"],"tags":["storage"],"description":"Create a new file. Before using this route, you should create a new bucket resource using either a [server integration](\/docs\/server\/database#storageCreateBucket) API or directly from your Appwrite console.\n\nLarger files should be uploaded using multiple requests with the [content-range](https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Headers\/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.\n\nWhen the first request is sent, the server will return the **File** object, and the subsequent part request must include the file's **id** in `x-appwrite-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.\n\nIf you're creating a new file using one of the Appwrite SDKs, all the chunking logic will be managed by the SDK internally.\n","responses":{"201":{"description":"File","schema":{"$ref":"#\/definitions\/file"}}},"x-appwrite":{"method":"createFile","weight":156,"cookies":false,"type":"upload","demo":"storage\/create-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/create-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","required":true,"x-upload-id":true,"type":"string","x-example":"[FILE_ID]","in":"formData"},{"name":"file","description":"Binary file.","required":true,"type":"file","in":"formData"},{"name":"read","description":"An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"x-example":"[\"role:all\"]","in":"formData"},{"name":"write","description":"An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"x-example":"[\"role:all\"]","in":"formData"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}":{"get":{"summary":"Get File","operationId":"storageGetFile","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.","responses":{"200":{"description":"File","schema":{"$ref":"#\/definitions\/file"}}},"x-appwrite":{"method":"getFile","weight":158,"cookies":false,"type":"","demo":"storage\/get-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"}]},"put":{"summary":"Update File","operationId":"storageUpdateFile","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Update a file by its unique ID. Only users with write permissions have access to update this resource.","responses":{"200":{"description":"File","schema":{"$ref":"#\/definitions\/file"}}},"x-appwrite":{"method":"updateFile","weight":162,"cookies":false,"type":"","demo":"storage\/update-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/update-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File unique ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}}}}}]},"delete":{"summary":"Delete File","operationId":"storageDeleteFile","consumes":["application\/json"],"produces":[],"tags":["storage"],"description":"Delete a file by its unique ID. Only users with write permissions have access to delete this resource.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteFile","weight":163,"cookies":false,"type":"","demo":"storage\/delete-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/delete-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/download":{"get":{"summary":"Get File for Download","operationId":"storageGetFileDownload","consumes":["application\/json"],"produces":["*\/*"],"tags":["storage"],"description":"Get a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.","responses":{"200":{"description":"File","schema":{"type":"file"}}},"x-appwrite":{"method":"getFileDownload","weight":160,"cookies":false,"type":"location","demo":"storage\/get-file-download.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-download.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/preview":{"get":{"summary":"Get File Preview","operationId":"storageGetFilePreview","consumes":["application\/json"],"produces":["image\/*"],"tags":["storage"],"description":"Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image. Preview is supported only for image files smaller than 10MB.","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getFilePreview","weight":159,"cookies":false,"type":"location","demo":"storage\/get-file-preview.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-preview.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"},{"name":"width","description":"Resize preview image width, Pass an integer between 0 to 4000.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"height","description":"Resize preview image height, Pass an integer between 0 to 4000.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"gravity","description":"Image crop gravity. Can be one of center,top-left,top,top-right,left,right,bottom-left,bottom,bottom-right","required":false,"type":"string","x-example":"center","default":"center","in":"query"},{"name":"quality","description":"Preview image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"borderWidth","description":"Preview image border in pixels. Pass an integer between 0 to 100. Defaults to 0.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"borderColor","description":"Preview image border color. Use a valid HEX color, no # is needed for prefix.","required":false,"type":"string","default":"","in":"query"},{"name":"borderRadius","description":"Preview image border radius in pixels. Pass an integer between 0 to 4000.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"opacity","description":"Preview image opacity. Only works with images having an alpha channel (like png). Pass a number between 0 to 1.","required":false,"type":"number","format":"float","x-example":0,"default":1,"in":"query"},{"name":"rotation","description":"Preview image rotation in degrees. Pass an integer between -360 and 360.","required":false,"type":"integer","format":"int32","x-example":-360,"default":0,"in":"query"},{"name":"background","description":"Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix.","required":false,"type":"string","default":"","in":"query"},{"name":"output","description":"Output format type (jpeg, jpg, png, gif and webp).","required":false,"type":"string","x-example":"jpg","default":"","in":"query"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/view":{"get":{"summary":"Get File for View","operationId":"storageGetFileView","consumes":["application\/json"],"produces":["*\/*"],"tags":["storage"],"description":"Get a file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header.","responses":{"200":{"description":"File","schema":{"type":"file"}}},"x-appwrite":{"method":"getFileView","weight":161,"cookies":false,"type":"location","demo":"storage\/get-file-view.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-view.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"}]}},"\/teams":{"get":{"summary":"List Teams","operationId":"teamsList","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.\r\n\r\nIn admin mode, this endpoint returns a list of all the teams in the current project. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Teams List","schema":{"$ref":"#\/definitions\/teamList"}}},"x-appwrite":{"method":"list","weight":167,"cookies":false,"type":"","demo":"teams\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/list-teams.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of teams to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the team used as the starting point for the query, excluding the team itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Team","operationId":"teamsCreate","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.","responses":{"201":{"description":"Team","schema":{"$ref":"#\/definitions\/team"}}},"x-appwrite":{"method":"create","weight":166,"cookies":false,"type":"","demo":"teams\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/create-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"teamId":{"type":"string","description":"Team ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[TEAM_ID]"},"name":{"type":"string","description":"Team name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"roles":{"type":"array","description":"Array of strings. Use this param to set the roles in the team for the user who created it. The default role is **owner**. A role can be any string. Learn more about [roles and permissions](\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","default":["owner"],"x-example":null,"items":{"type":"string"}}},"required":["teamId","name"]}}]}},"\/teams\/{teamId}":{"get":{"summary":"Get Team","operationId":"teamsGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Get a team by its ID. All team members have read access for this resource.","responses":{"200":{"description":"Team","schema":{"$ref":"#\/definitions\/team"}}},"x-appwrite":{"method":"get","weight":168,"cookies":false,"type":"","demo":"teams\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"}]},"put":{"summary":"Update Team","operationId":"teamsUpdate","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Update a team using its ID. Only members with the owner role can update the team.","responses":{"200":{"description":"Team","schema":{"$ref":"#\/definitions\/team"}}},"x-appwrite":{"method":"update","weight":169,"cookies":false,"type":"","demo":"teams\/update.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"New team name. Max length: 128 chars.","default":null,"x-example":"[NAME]"}},"required":["name"]}}]},"delete":{"summary":"Delete Team","operationId":"teamsDelete","consumes":["application\/json"],"produces":[],"tags":["teams"],"description":"Delete a team using its ID. Only team members with the owner role can delete the team.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":170,"cookies":false,"type":"","demo":"teams\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/delete-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"}]}},"\/teams\/{teamId}\/memberships":{"get":{"summary":"Get Team Memberships","operationId":"teamsGetMemberships","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint.","responses":{"200":{"description":"Memberships List","schema":{"$ref":"#\/definitions\/membershipList"}}},"x-appwrite":{"method":"getMemberships","weight":172,"cookies":false,"type":"","demo":"teams\/get-memberships.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-members.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of memberships to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the membership used as the starting point for the query, excluding the membership itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Team Membership","operationId":"teamsCreateMembership","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Invite a new member to join your team. If initiated from the client SDK, an email with a link to join the team will be sent to the member's email address and an account will be created for them should they not be signed up already. If initiated from server-side SDKs, the new member will automatically be added to the team.\n\nUse the 'url' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the [Update Team Membership Status](\/docs\/client\/teams#teamsUpdateMembershipStatus) endpoint to allow the user to accept the invitation to the team. \n\nPlease note that to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when adding your platforms in the console interface.","responses":{"201":{"description":"Membership","schema":{"$ref":"#\/definitions\/membership"}}},"x-appwrite":{"method":"createMembership","weight":171,"cookies":false,"type":"","demo":"teams\/create-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/create-team-membership.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"Email of the new team member.","default":null,"x-example":"email@example.com"},"roles":{"type":"array","description":"Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","default":null,"x-example":null,"items":{"type":"string"}},"url":{"type":"string","description":"URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","default":null,"x-example":"https:\/\/example.com"},"name":{"type":"string","description":"Name of the new team member. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["email","roles","url"]}}]}},"\/teams\/{teamId}\/memberships\/{membershipId}":{"get":{"summary":"Get Team Membership","operationId":"teamsGetMembership","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Get a team member by the membership unique id. All team members have read access for this resource.","responses":{"200":{"description":"Memberships List","schema":{"$ref":"#\/definitions\/membershipList"}}},"x-appwrite":{"method":"getMembership","weight":173,"cookies":false,"type":"","demo":"teams\/get-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-member.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"type":"string","x-example":"[MEMBERSHIP_ID]","in":"path"}]},"patch":{"summary":"Update Membership Roles","operationId":"teamsUpdateMembershipRoles","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](\/docs\/permissions).","responses":{"200":{"description":"Membership","schema":{"$ref":"#\/definitions\/membership"}}},"x-appwrite":{"method":"updateMembershipRoles","weight":174,"cookies":false,"type":"","demo":"teams\/update-membership-roles.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team-membership-roles.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"type":"string","x-example":"[MEMBERSHIP_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"roles":{"type":"array","description":"An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https:\/\/appwrite.io\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","default":null,"x-example":null,"items":{"type":"string"}}},"required":["roles"]}}]},"delete":{"summary":"Delete Team Membership","operationId":"teamsDeleteMembership","consumes":["application\/json"],"produces":[],"tags":["teams"],"description":"This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteMembership","weight":176,"cookies":false,"type":"","demo":"teams\/delete-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/delete-team-membership.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"type":"string","x-example":"[MEMBERSHIP_ID]","in":"path"}]}},"\/teams\/{teamId}\/memberships\/{membershipId}\/status":{"patch":{"summary":"Update Team Membership Status","operationId":"teamsUpdateMembershipStatus","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email received by the user.\n\nIf the request is successful, a session for the user is automatically created.\n","responses":{"200":{"description":"Membership","schema":{"$ref":"#\/definitions\/membership"}}},"x-appwrite":{"method":"updateMembershipStatus","weight":175,"cookies":false,"type":"","demo":"teams\/update-membership-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team-membership-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"type":"string","x-example":"[MEMBERSHIP_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","default":null,"x-example":"[USER_ID]"},"secret":{"type":"string","description":"Secret key.","default":null,"x-example":"[SECRET]"}},"required":["userId","secret"]}}]}}},"tags":[{"name":"account","description":"The Account service allows you to authenticate and manage a user account."},{"name":"avatars","description":"The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars."},{"name":"database","description":"The Database service allows you to create structured collections of documents, query and filter lists of documents"},{"name":"locale","description":"The Locale service allows you to customize your app based on your users' location."},{"name":"health","description":"The Health service allows you to both validate and monitor your Appwrite server's health."},{"name":"projects","description":"The Project service allows you to manage all the projects in your Appwrite server."},{"name":"storage","description":"The Storage service allows you to manage your project files."},{"name":"teams","description":"The Teams service allows you to group users of your project and to enable them to share read and write access to your project resources"},{"name":"users","description":"The Users service allows you to manage your project users."},{"name":"functions","description":"The Functions Service allows you view, create and manage your Cloud Functions."}],"definitions":{"documentList":{"description":"Documents List","type":"object","properties":{"total":{"type":"integer","description":"Total number of documents documents that matched your query.","x-example":5,"format":"int32"},"documents":{"type":"array","description":"List of documents.","items":{"type":"object","$ref":"#\/definitions\/document"},"x-example":""}},"required":["total","documents"]},"sessionList":{"description":"Sessions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of sessions documents that matched your query.","x-example":5,"format":"int32"},"sessions":{"type":"array","description":"List of sessions.","items":{"type":"object","$ref":"#\/definitions\/session"},"x-example":""}},"required":["total","sessions"]},"logList":{"description":"Logs List","type":"object","properties":{"total":{"type":"integer","description":"Total number of logs documents that matched your query.","x-example":5,"format":"int32"},"logs":{"type":"array","description":"List of logs.","items":{"type":"object","$ref":"#\/definitions\/log"},"x-example":""}},"required":["total","logs"]},"fileList":{"description":"Files List","type":"object","properties":{"total":{"type":"integer","description":"Total number of files documents that matched your query.","x-example":5,"format":"int32"},"files":{"type":"array","description":"List of files.","items":{"type":"object","$ref":"#\/definitions\/file"},"x-example":""}},"required":["total","files"]},"teamList":{"description":"Teams List","type":"object","properties":{"total":{"type":"integer","description":"Total number of teams documents that matched your query.","x-example":5,"format":"int32"},"teams":{"type":"array","description":"List of teams.","items":{"type":"object","$ref":"#\/definitions\/team"},"x-example":""}},"required":["total","teams"]},"membershipList":{"description":"Memberships List","type":"object","properties":{"total":{"type":"integer","description":"Total number of memberships documents that matched your query.","x-example":5,"format":"int32"},"memberships":{"type":"array","description":"List of memberships.","items":{"type":"object","$ref":"#\/definitions\/membership"},"x-example":""}},"required":["total","memberships"]},"executionList":{"description":"Executions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of executions documents that matched your query.","x-example":5,"format":"int32"},"executions":{"type":"array","description":"List of executions.","items":{"type":"object","$ref":"#\/definitions\/execution"},"x-example":""}},"required":["total","executions"]},"countryList":{"description":"Countries List","type":"object","properties":{"total":{"type":"integer","description":"Total number of countries documents that matched your query.","x-example":5,"format":"int32"},"countries":{"type":"array","description":"List of countries.","items":{"type":"object","$ref":"#\/definitions\/country"},"x-example":""}},"required":["total","countries"]},"continentList":{"description":"Continents List","type":"object","properties":{"total":{"type":"integer","description":"Total number of continents documents that matched your query.","x-example":5,"format":"int32"},"continents":{"type":"array","description":"List of continents.","items":{"type":"object","$ref":"#\/definitions\/continent"},"x-example":""}},"required":["total","continents"]},"languageList":{"description":"Languages List","type":"object","properties":{"total":{"type":"integer","description":"Total number of languages documents that matched your query.","x-example":5,"format":"int32"},"languages":{"type":"array","description":"List of languages.","items":{"type":"object","$ref":"#\/definitions\/language"},"x-example":""}},"required":["total","languages"]},"currencyList":{"description":"Currencies List","type":"object","properties":{"total":{"type":"integer","description":"Total number of currencies documents that matched your query.","x-example":5,"format":"int32"},"currencies":{"type":"array","description":"List of currencies.","items":{"type":"object","$ref":"#\/definitions\/currency"},"x-example":""}},"required":["total","currencies"]},"phoneList":{"description":"Phones List","type":"object","properties":{"total":{"type":"integer","description":"Total number of phones documents that matched your query.","x-example":5,"format":"int32"},"phones":{"type":"array","description":"List of phones.","items":{"type":"object","$ref":"#\/definitions\/phone"},"x-example":""}},"required":["total","phones"]},"document":{"description":"Document","type":"object","properties":{"$id":{"type":"string","description":"Document ID.","x-example":"5e5ea5c16897e"},"$collection":{"type":"string","description":"Collection ID.","x-example":"5e5ea5c15117e"},"$read":{"type":"array","description":"Document read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"Document write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"}},"additionalProperties":true,"required":["$id","$collection","$read","$write"]},"log":{"description":"Log","type":"object","properties":{"event":{"type":"string","description":"Event name.","x-example":"account.sessions.create"},"userId":{"type":"string","description":"User ID.","x-example":"610fc2f985ee0"},"userEmail":{"type":"string","description":"User Email.","x-example":"john@appwrite.io"},"userName":{"type":"string","description":"User Name.","x-example":"John Doe"},"mode":{"type":"string","description":"API mode when event triggered.","x-example":"admin"},"ip":{"type":"string","description":"IP session in use when the session was created.","x-example":"127.0.0.1"},"time":{"type":"integer","description":"Log creation time in Unix timestamp.","x-example":1592981250,"format":"int32"},"osCode":{"type":"string","description":"Operating system code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/os.json).","x-example":"Mac"},"osName":{"type":"string","description":"Operating system name.","x-example":"Mac"},"osVersion":{"type":"string","description":"Operating system version.","x-example":"Mac"},"clientType":{"type":"string","description":"Client type.","x-example":"browser"},"clientCode":{"type":"string","description":"Client code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/clients.json).","x-example":"CM"},"clientName":{"type":"string","description":"Client name.","x-example":"Chrome Mobile iOS"},"clientVersion":{"type":"string","description":"Client version.","x-example":"84.0"},"clientEngine":{"type":"string","description":"Client engine name.","x-example":"WebKit"},"clientEngineVersion":{"type":"string","description":"Client engine name.","x-example":"605.1.15"},"deviceName":{"type":"string","description":"Device name.","x-example":"smartphone"},"deviceBrand":{"type":"string","description":"Device brand name.","x-example":"Google"},"deviceModel":{"type":"string","description":"Device model name.","x-example":"Nexus 5"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"}},"required":["event","userId","userEmail","userName","mode","ip","time","osCode","osName","osVersion","clientType","clientCode","clientName","clientVersion","clientEngine","clientEngineVersion","deviceName","deviceBrand","deviceModel","countryCode","countryName"]},"account":{"description":"Account","type":"object","properties":{"$id":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"User name.","x-example":"John Doe"},"registration":{"type":"integer","description":"User registration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"status":{"type":"boolean","description":"User status. Pass `true` for enabled and `false` for disabled.","x-example":true},"passwordUpdate":{"type":"integer","description":"Unix timestamp of the most recent password update","x-example":1592981250,"format":"int32"},"email":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"emailVerification":{"type":"boolean","description":"Email verification status.","x-example":true},"prefs":{"type":"object","description":"User preferences as a key-value object","x-example":{"theme":"pink","timezone":"UTC"},"items":{"type":"object","$ref":"#\/definitions\/preferences"}}},"required":["$id","name","registration","status","passwordUpdate","email","emailVerification","prefs"]},"preferences":{"description":"Preferences","type":"object","additionalProperties":true},"session":{"description":"Session","type":"object","properties":{"$id":{"type":"string","description":"Session ID.","x-example":"5e5ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5bb8c16897e"},"expire":{"type":"integer","description":"Session expiration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"provider":{"type":"string","description":"Session Provider.","x-example":"email"},"providerUid":{"type":"string","description":"Session Provider User ID.","x-example":"user@example.com"},"providerAccessToken":{"type":"string","description":"Session Provider Access Token.","x-example":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"},"providerAccessTokenExpiry":{"type":"integer","description":"Date, the Unix timestamp of when the access token expires.","x-example":1592981250,"format":"int32"},"providerRefreshToken":{"type":"string","description":"Session Provider Refresh Token.","x-example":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"},"ip":{"type":"string","description":"IP in use when the session was created.","x-example":"127.0.0.1"},"osCode":{"type":"string","description":"Operating system code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/os.json).","x-example":"Mac"},"osName":{"type":"string","description":"Operating system name.","x-example":"Mac"},"osVersion":{"type":"string","description":"Operating system version.","x-example":"Mac"},"clientType":{"type":"string","description":"Client type.","x-example":"browser"},"clientCode":{"type":"string","description":"Client code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/clients.json).","x-example":"CM"},"clientName":{"type":"string","description":"Client name.","x-example":"Chrome Mobile iOS"},"clientVersion":{"type":"string","description":"Client version.","x-example":"84.0"},"clientEngine":{"type":"string","description":"Client engine name.","x-example":"WebKit"},"clientEngineVersion":{"type":"string","description":"Client engine name.","x-example":"605.1.15"},"deviceName":{"type":"string","description":"Device name.","x-example":"smartphone"},"deviceBrand":{"type":"string","description":"Device brand name.","x-example":"Google"},"deviceModel":{"type":"string","description":"Device model name.","x-example":"Nexus 5"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"},"current":{"type":"boolean","description":"Returns true if this the current user session.","x-example":true}},"required":["$id","userId","expire","provider","providerUid","providerAccessToken","providerAccessTokenExpiry","providerRefreshToken","ip","osCode","osName","osVersion","clientType","clientCode","clientName","clientVersion","clientEngine","clientEngineVersion","deviceName","deviceBrand","deviceModel","countryCode","countryName","current"]},"token":{"description":"Token","type":"object","properties":{"$id":{"type":"string","description":"Token ID.","x-example":"bb8ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5ea5c168bb8"},"secret":{"type":"string","description":"Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.","x-example":""},"expire":{"type":"integer","description":"Token expiration date in Unix timestamp.","x-example":1592981250,"format":"int32"}},"required":["$id","userId","secret","expire"]},"jwt":{"description":"JWT","type":"object","properties":{"jwt":{"type":"string","description":"JWT encoded string.","x-example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}},"required":["jwt"]},"locale":{"description":"Locale","type":"object","properties":{"ip":{"type":"string","description":"User IP address.","x-example":"127.0.0.1"},"countryCode":{"type":"string","description":"Country code in [ISO 3166-1](http:\/\/en.wikipedia.org\/wiki\/ISO_3166-1) two-character format","x-example":"US"},"country":{"type":"string","description":"Country name. This field support localization.","x-example":"United States"},"continentCode":{"type":"string","description":"Continent code. A two character continent code \"AF\" for Africa, \"AN\" for Antarctica, \"AS\" for Asia, \"EU\" for Europe, \"NA\" for North America, \"OC\" for Oceania, and \"SA\" for South America.","x-example":"NA"},"continent":{"type":"string","description":"Continent name. This field support localization.","x-example":"North America"},"eu":{"type":"boolean","description":"True if country is part of the Europian Union.","x-example":false},"currency":{"type":"string","description":"Currency code in [ISO 4217-1](http:\/\/en.wikipedia.org\/wiki\/ISO_4217) three-character format","x-example":"USD"}},"required":["ip","countryCode","country","continentCode","continent","eu","currency"]},"file":{"description":"File","type":"object","properties":{"$id":{"type":"string","description":"File ID.","x-example":"5e5ea5c16897e"},"bucketId":{"type":"string","description":"Bucket ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"File read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"File write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"},"name":{"type":"string","description":"File name.","x-example":"Pink.png"},"dateCreated":{"type":"integer","description":"File creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"signature":{"type":"string","description":"File MD5 signature.","x-example":"5d529fd02b544198ae075bd57c1762bb"},"mimeType":{"type":"string","description":"File mime type.","x-example":"image\/png"},"sizeOriginal":{"type":"integer","description":"File original size in bytes.","x-example":17890,"format":"int32"},"chunksTotal":{"type":"integer","description":"Total number of chunks available","x-example":17890,"format":"int32"},"chunksUploaded":{"type":"integer","description":"Total number of chunks uploaded","x-example":17890,"format":"int32"}},"required":["$id","bucketId","$read","$write","name","dateCreated","signature","mimeType","sizeOriginal","chunksTotal","chunksUploaded"]},"team":{"description":"Team","type":"object","properties":{"$id":{"type":"string","description":"Team ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Team name.","x-example":"VIP"},"dateCreated":{"type":"integer","description":"Team creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"total":{"type":"integer","description":"Total number of team members.","x-example":7,"format":"int32"}},"required":["$id","name","dateCreated","total"]},"membership":{"description":"Membership","type":"object","properties":{"$id":{"type":"string","description":"Membership ID.","x-example":"5e5ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"userName":{"type":"string","description":"User name.","x-example":"John Doe"},"userEmail":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"teamId":{"type":"string","description":"Team ID.","x-example":"5e5ea5c16897e"},"teamName":{"type":"string","description":"Team name.","x-example":"VIP"},"invited":{"type":"integer","description":"Date, the user has been invited to join the team in Unix timestamp.","x-example":1592981250,"format":"int32"},"joined":{"type":"integer","description":"Date, the user has accepted the invitation to join the team in Unix timestamp.","x-example":1592981250,"format":"int32"},"confirm":{"type":"boolean","description":"User confirmation status, true if the user has joined the team or false otherwise.","x-example":false},"roles":{"type":"array","description":"User list of roles","items":{"type":"string"},"x-example":"admin"}},"required":["$id","userId","userName","userEmail","teamId","teamName","invited","joined","confirm","roles"]},"execution":{"description":"Execution","type":"object","properties":{"$id":{"type":"string","description":"Execution ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"Execution read permissions.","items":{"type":"string"},"x-example":"role:all"},"functionId":{"type":"string","description":"Function ID.","x-example":"5e5ea6g16897e"},"dateCreated":{"type":"integer","description":"The execution creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"trigger":{"type":"string","description":"The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.","x-example":"http"},"status":{"type":"string","description":"The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.","x-example":"processing"},"statusCode":{"type":"integer","description":"The script status code.","x-example":0,"format":"int32"},"response":{"type":"string","description":"The script response output string. Logs the last 4,000 characters of the execution response output.","x-example":""},"stderr":{"type":"string","description":"The script stderr output string. Logs the last 4,000 characters of the execution stderr output","x-example":""},"time":{"type":"number","description":"The script execution time in seconds.","x-example":0.4,"format":"double"}},"required":["$id","$read","functionId","dateCreated","trigger","status","statusCode","response","stderr","time"]},"country":{"description":"Country","type":"object","properties":{"name":{"type":"string","description":"Country name.","x-example":"United States"},"code":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"}},"required":["name","code"]},"continent":{"description":"Continent","type":"object","properties":{"name":{"type":"string","description":"Continent name.","x-example":"Europe"},"code":{"type":"string","description":"Continent two letter code.","x-example":"EU"}},"required":["name","code"]},"language":{"description":"Language","type":"object","properties":{"name":{"type":"string","description":"Language name.","x-example":"Italian"},"code":{"type":"string","description":"Language two-character ISO 639-1 codes.","x-example":"it"},"nativeName":{"type":"string","description":"Language native name.","x-example":"Italiano"}},"required":["name","code","nativeName"]},"currency":{"description":"Currency","type":"object","properties":{"symbol":{"type":"string","description":"Currency symbol.","x-example":"$"},"name":{"type":"string","description":"Currency name.","x-example":"US dollar"},"symbolNative":{"type":"string","description":"Currency native symbol.","x-example":"$"},"decimalDigits":{"type":"integer","description":"Number of decimal digits.","x-example":2,"format":"int32"},"rounding":{"type":"number","description":"Currency digit rounding.","x-example":0,"format":"double"},"code":{"type":"string","description":"Currency code in [ISO 4217-1](http:\/\/en.wikipedia.org\/wiki\/ISO_4217) three-character format.","x-example":"USD"},"namePlural":{"type":"string","description":"Currency plural name","x-example":"US dollars"}},"required":["symbol","name","symbolNative","decimalDigits","rounding","code","namePlural"]},"phone":{"description":"Phone","type":"object","properties":{"code":{"type":"string","description":"Phone code.","x-example":"+1"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"}},"required":["code","countryCode","countryName"]}},"externalDocs":{"description":"Full API docs, specs and tutorials","url":"https:\/\/appwrite.io\/docs"}} \ No newline at end of file diff --git a/app/config/specs/swagger2-0.15.x-console.json b/app/config/specs/swagger2-0.15.x-console.json deleted file mode 100644 index 8c206cb7af..0000000000 --- a/app/config/specs/swagger2-0.15.x-console.json +++ /dev/null @@ -1 +0,0 @@ -{"swagger":"2.0","info":{"version":"0.15.0","title":"Appwrite","description":"Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https:\/\/appwrite.io\/docs](https:\/\/appwrite.io\/docs)","termsOfService":"https:\/\/appwrite.io\/policy\/terms","contact":{"name":"Appwrite Team","url":"https:\/\/appwrite.io\/support","email":"team@appwrite.io"},"license":{"name":"BSD-3-Clause","url":"https:\/\/raw.githubusercontent.com\/appwrite\/appwrite\/master\/LICENSE"}},"host":"HOSTNAME","basePath":"\/v1","schemes":["https"],"consumes":["application\/json","multipart\/form-data"],"produces":["application\/json"],"securityDefinitions":{"Project":{"type":"apiKey","name":"X-Appwrite-Project","description":"Your project ID","in":"header","x-appwrite":{"demo":"5df5acd0d48c2"}},"Key":{"type":"apiKey","name":"X-Appwrite-Key","description":"Your secret API key","in":"header","x-appwrite":{"demo":"919c2d18fb5d4...a2ae413da83346ad2"}},"JWT":{"type":"apiKey","name":"X-Appwrite-JWT","description":"Your secret JSON Web Token","in":"header","x-appwrite":{"demo":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."}},"Locale":{"type":"apiKey","name":"X-Appwrite-Locale","description":"","in":"header","x-appwrite":{"demo":"en"}},"Mode":{"type":"apiKey","name":"X-Appwrite-Mode","description":"","in":"header","x-appwrite":{"demo":""}}},"paths":{"\/account":{"get":{"summary":"Get Account","operationId":"accountGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Get currently logged in user data as JSON object.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"get","weight":49,"cookies":false,"type":"","demo":"account\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]},"post":{"summary":"Create Account","operationId":"accountCreate","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [\/account\/verfication](\/docs\/client\/account#accountCreateVerification) route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new [account session](\/docs\/client\/account#accountCreateSession).","responses":{"201":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"create","weight":39,"cookies":false,"type":"","demo":"account\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","default":null,"x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/account\/email":{"patch":{"summary":"Update Account Email","operationId":"accountUpdateEmail","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use the send confirmation email endpoint again to send the confirmation email. For security measures, user password is required to complete this request.\nThis endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.\n","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updateEmail","weight":56,"cookies":false,"type":"","demo":"account\/update-email.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-email.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","default":null,"x-example":"password"}},"required":["email","password"]}}]}},"\/account\/jwt":{"post":{"summary":"Create Account JWT","operationId":"accountCreateJWT","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes from its creation and will be invalid if the user will logout in that time frame.","responses":{"201":{"description":"JWT","schema":{"$ref":"#\/definitions\/jwt"}}},"x-appwrite":{"method":"createJWT","weight":48,"cookies":false,"type":"","demo":"account\/create-j-w-t.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},userId:{userId}","scope":"account","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}]}},"\/account\/logs":{"get":{"summary":"Get Account Logs","operationId":"accountGetLogs","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Get currently logged in user list of latest security activity logs. Each log returns user IP address, location and date and time of log.","responses":{"200":{"description":"Logs List","schema":{"$ref":"#\/definitions\/logList"}}},"x-appwrite":{"method":"getLogs","weight":52,"cookies":false,"type":"","demo":"account\/get-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"}]}},"\/account\/name":{"patch":{"summary":"Update Account Name","operationId":"accountUpdateName","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Update currently logged in user account name.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updateName","weight":54,"cookies":false,"type":"","demo":"account\/update-name.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-name.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"User name. Max length: 128 chars.","default":null,"x-example":"[NAME]"}},"required":["name"]}}]}},"\/account\/password":{"patch":{"summary":"Update Account Password","operationId":"accountUpdatePassword","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updatePassword","weight":55,"cookies":false,"type":"","demo":"account\/update-password.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-password.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"password":{"type":"string","description":"New user password. Must be at least 8 chars.","default":null,"x-example":"password"},"oldPassword":{"type":"string","description":"Current user password. Must be at least 8 chars.","default":"","x-example":"password"}},"required":["password"]}}]}},"\/account\/prefs":{"get":{"summary":"Get Account Preferences","operationId":"accountGetPrefs","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Get currently logged in user preferences as a key-value object.","responses":{"200":{"description":"Preferences","schema":{"$ref":"#\/definitions\/preferences"}}},"x-appwrite":{"method":"getPrefs","weight":50,"cookies":false,"type":"","demo":"account\/get-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]},"patch":{"summary":"Update Account Preferences","operationId":"accountUpdatePrefs","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Update currently logged in user account preferences. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updatePrefs","weight":57,"cookies":false,"type":"","demo":"account\/update-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"prefs":{"type":"object","description":"Prefs key-value JSON object.","default":{},"x-example":"{}"}},"required":["prefs"]}}]}},"\/account\/recovery":{"post":{"summary":"Create Password Recovery","operationId":"accountCreateRecovery","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Sends the user an email with a temporary secret key for password reset. When the user clicks the confirmation link he is redirected back to your app password reset URL with the secret key and email address values attached to the URL query string. Use the query string params to submit a request to the [PUT \/account\/recovery](\/docs\/client\/account#accountUpdateRecovery) endpoint to complete the process. The verification link sent to the user's email address is valid for 1 hour.","responses":{"201":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"createRecovery","weight":62,"cookies":false,"type":"","demo":"account\/create-recovery.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-recovery.md","rate-limit":10,"rate-time":3600,"rate-key":["url:{url},email:{param-email}","ip:{ip}"],"scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"url":{"type":"string","description":"URL to redirect the user back to your app from the recovery email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","default":null,"x-example":"https:\/\/example.com"}},"required":["email","url"]}}]},"put":{"summary":"Create Password Recovery (confirmation)","operationId":"accountUpdateRecovery","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to complete the user account password reset. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST \/account\/recovery](\/docs\/client\/account#accountCreateRecovery) endpoint.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.","responses":{"200":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"updateRecovery","weight":63,"cookies":false,"type":"","demo":"account\/update-recovery.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-recovery.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","default":null,"x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid reset token.","default":null,"x-example":"[SECRET]"},"password":{"type":"string","description":"New user password. Must be at least 8 chars.","default":null,"x-example":"password"},"passwordAgain":{"type":"string","description":"Repeat new user password. Must be at least 8 chars.","default":null,"x-example":"password"}},"required":["userId","secret","password","passwordAgain"]}}]}},"\/account\/sessions":{"get":{"summary":"Get Account Sessions","operationId":"accountGetSessions","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Get currently logged in user list of active sessions across different devices.","responses":{"200":{"description":"Sessions List","schema":{"$ref":"#\/definitions\/sessionList"}}},"x-appwrite":{"method":"getSessions","weight":51,"cookies":false,"type":"","demo":"account\/get-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]},"post":{"summary":"Create Account Session","operationId":"accountCreateSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Allow the user to login into their account by providing a valid email and password combination. This route will create a new session for the user.","responses":{"201":{"description":"Session","schema":{"$ref":"#\/definitions\/session"}}},"x-appwrite":{"method":"createSession","weight":40,"cookies":false,"type":"","demo":"account\/create-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},email:{param-email}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","default":null,"x-example":"password"}},"required":["email","password"]}}]},"delete":{"summary":"Delete All Account Sessions","operationId":"accountDeleteSessions","consumes":["application\/json"],"produces":[],"tags":["account"],"description":"Delete all sessions from the user account and remove any sessions cookies from the end client.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSessions","weight":61,"cookies":false,"type":"","demo":"account\/delete-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-sessions.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/sessions\/anonymous":{"post":{"summary":"Create Anonymous Session","operationId":"accountCreateAnonymousSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to allow a new user to register an anonymous account in your project. This route will also create a new session for the user. To allow the new user to convert an anonymous account to a normal account, you need to update its [email and password](\/docs\/client\/account#accountUpdateEmail) or create an [OAuth2 session](\/docs\/client\/account#accountCreateOAuth2Session).","responses":{"201":{"description":"Session","schema":{"$ref":"#\/definitions\/session"}}},"x-appwrite":{"method":"createAnonymousSession","weight":47,"cookies":false,"type":"","demo":"account\/create-anonymous-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-anonymous.md","rate-limit":50,"rate-time":3600,"rate-key":"ip:{ip}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}]}},"\/account\/sessions\/magic-url":{"post":{"summary":"Create Magic URL session","operationId":"accountCreateMagicURLSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Sends the user an email with a secret key for creating a session. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [PUT \/account\/sessions\/magic-url](\/docs\/client\/account#accountUpdateMagicURLSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour. If you are on a mobile device you can leave the URL parameter empty, so that the login completion will be handled by your Appwrite instance by default.","responses":{"201":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"createMagicURLSession","weight":45,"cookies":false,"type":"","demo":"account\/create-magic-u-r-l-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-magic-url-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},email:{param-email}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"url":{"type":"string","description":"URL to redirect the user back to your app from the magic URL login. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","default":"","x-example":"https:\/\/example.com"}},"required":["userId","email"]}}]},"put":{"summary":"Create Magic URL session (confirmation)","operationId":"accountUpdateMagicURLSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to complete creating the session with the Magic URL. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST \/account\/sessions\/magic-url](\/docs\/client\/account#accountCreateMagicURLSession) endpoint.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.","responses":{"200":{"description":"Session","schema":{"$ref":"#\/definitions\/session"}}},"x-appwrite":{"method":"updateMagicURLSession","weight":46,"cookies":false,"type":"","demo":"account\/update-magic-u-r-l-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-magic-url-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","default":null,"x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid verification token.","default":null,"x-example":"[SECRET]"}},"required":["userId","secret"]}}]}},"\/account\/sessions\/oauth2\/{provider}":{"get":{"summary":"Create Account Session with OAuth2","operationId":"accountCreateOAuth2Session","consumes":["application\/json"],"produces":["text\/html"],"tags":["account"],"description":"Allow the user to login to their account using the OAuth2 provider of their choice. Each OAuth2 provider should be enabled from the Appwrite console first. Use the success and failure arguments to provide a redirect URL's back to your app when login is completed.\n\nIf there is already an active session, the new session will be attached to the logged-in account. If there are no active sessions, the server will attempt to look for a user with the same email address as the email received from the OAuth2 provider and attach the new session to the existing user. If no matching user is found - the server will create a new user..\n","responses":{"301":{"description":"No content"}},"x-appwrite":{"method":"createOAuth2Session","weight":41,"cookies":false,"type":"webAuth","demo":"account\/create-o-auth2session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-oauth2.md","rate-limit":50,"rate-time":3600,"rate-key":"ip:{ip}","scope":"public","platforms":["client"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"provider","description":"OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, bitbucket, bitly, box, dailymotion, discord, dropbox, facebook, github, gitlab, google, linkedin, microsoft, notion, okta, paypal, paypalSandbox, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoom.","required":true,"type":"string","x-example":"amazon","in":"path"},{"name":"success","description":"URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","required":false,"type":"string","format":"url","x-example":"https:\/\/example.com","default":"","in":"query"},{"name":"failure","description":"URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","required":false,"type":"string","format":"url","x-example":"https:\/\/example.com","default":"","in":"query"},{"name":"scopes","description":"A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 128 characters long.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"default":[],"in":"query"}]}},"\/account\/sessions\/{sessionId}":{"get":{"summary":"Get Session By ID","operationId":"accountGetSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.","responses":{"200":{"description":"Session","schema":{"$ref":"#\/definitions\/session"}}},"x-appwrite":{"method":"getSession","weight":53,"cookies":false,"type":"","demo":"account\/get-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-session.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to get the current device session.","required":true,"type":"string","x-example":"[SESSION_ID]","in":"path"}]},"patch":{"summary":"Update Session (Refresh Tokens)","operationId":"accountUpdateSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Access tokens have limited lifespan and expire to mitigate security risks. If session was created using an OAuth provider, this route can be used to \"refresh\" the access token.","responses":{"200":{"description":"Session","schema":{"$ref":"#\/definitions\/session"}}},"x-appwrite":{"method":"updateSession","weight":60,"cookies":false,"type":"","demo":"account\/update-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to update the current device session.","required":true,"type":"string","x-example":"[SESSION_ID]","in":"path"}]},"delete":{"summary":"Delete Account Session","operationId":"accountDeleteSession","consumes":["application\/json"],"produces":[],"tags":["account"],"description":"Use this endpoint to log out the currently logged in user from all their account sessions across all of their different devices. When using the Session ID argument, only the unique session ID provided is deleted.\n","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSession","weight":59,"cookies":false,"type":"","demo":"account\/delete-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-session.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to delete the current device session.","required":true,"type":"string","x-example":"[SESSION_ID]","in":"path"}]}},"\/account\/status":{"patch":{"summary":"Update Account Status","operationId":"accountUpdateStatus","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Block the currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. To completely delete a user, use the Users API instead.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updateStatus","weight":58,"cookies":false,"type":"","demo":"account\/update-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/verification":{"post":{"summary":"Create Email Verification","operationId":"accountCreateVerification","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](\/docs\/client\/account#accountUpdateVerification). The verification link sent to the user's email address is valid for 7 days.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.\n","responses":{"201":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"createVerification","weight":64,"cookies":false,"type":"","demo":"account\/create-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-verification.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{userId}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"url":{"type":"string","description":"URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","default":null,"x-example":"https:\/\/example.com"}},"required":["url"]}}]},"put":{"summary":"Create Email Verification (confirmation)","operationId":"accountUpdateVerification","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.","responses":{"200":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"updateVerification","weight":65,"cookies":false,"type":"","demo":"account\/update-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-verification.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","default":null,"x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid verification token.","default":null,"x-example":"[SECRET]"}},"required":["userId","secret"]}}]}},"\/avatars\/browsers\/{code}":{"get":{"summary":"Get Browser Icon","operationId":"avatarsGetBrowser","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET \/account\/sessions](\/docs\/client\/account#accountGetSessions) endpoint. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getBrowser","weight":67,"cookies":false,"type":"location","demo":"avatars\/get-browser.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-browser.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"code","description":"Browser Code.","required":true,"type":"string","x-example":"aa","in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"}]}},"\/avatars\/credit-cards\/{code}":{"get":{"summary":"Get Credit Card Icon","operationId":"avatarsGetCreditCard","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getCreditCard","weight":66,"cookies":false,"type":"location","demo":"avatars\/get-credit-card.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-credit-card.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"code","description":"Credit Card Code. Possible values: amex, argencard, cabal, censosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.","required":true,"type":"string","x-example":"amex","in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"}]}},"\/avatars\/favicon":{"get":{"summary":"Get Favicon","operationId":"avatarsGetFavicon","consumes":["application\/json"],"produces":["image\/*"],"tags":["avatars"],"description":"Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getFavicon","weight":70,"cookies":false,"type":"location","demo":"avatars\/get-favicon.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-favicon.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"url","description":"Website URL which you want to fetch the favicon from.","required":true,"type":"string","format":"url","x-example":"https:\/\/example.com","in":"query"}]}},"\/avatars\/flags\/{code}":{"get":{"summary":"Get Country Flag","operationId":"avatarsGetFlag","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getFlag","weight":68,"cookies":false,"type":"location","demo":"avatars\/get-flag.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-flag.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"code","description":"Country Code. ISO Alpha-2 country code format.","required":true,"type":"string","x-example":"af","in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"}]}},"\/avatars\/image":{"get":{"summary":"Get Image from URL","operationId":"avatarsGetImage","consumes":["application\/json"],"produces":["image\/*"],"tags":["avatars"],"description":"Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make sure a 3rd party image is properly served using a TLS protocol.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 400x400px.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getImage","weight":69,"cookies":false,"type":"location","demo":"avatars\/get-image.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-image.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"url","description":"Image URL which you want to crop.","required":true,"type":"string","format":"url","x-example":"https:\/\/example.com","in":"query"},{"name":"width","description":"Resize preview image width, Pass an integer between 0 to 2000. Defaults to 400.","required":false,"type":"integer","format":"int32","x-example":0,"default":400,"in":"query"},{"name":"height","description":"Resize preview image height, Pass an integer between 0 to 2000. Defaults to 400.","required":false,"type":"integer","format":"int32","x-example":0,"default":400,"in":"query"}]}},"\/avatars\/initials":{"get":{"summary":"Get User Initials","operationId":"avatarsGetInitials","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"Use this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user name if you pass the 'name' parameter. If no name is given and no user is logged, an empty avatar will be returned.\n\nYou can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user's initials when reloading the same theme will always return for the same initials.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getInitials","weight":72,"cookies":false,"type":"location","demo":"avatars\/get-initials.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-initials.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"name","description":"Full Name. When empty, current user name or email will be used. Max length: 128 chars.","required":false,"type":"string","x-example":"[NAME]","default":"","in":"query"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":500,"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":500,"in":"query"},{"name":"color","description":"Changes text color. By default a random color will be picked and stay will persistent to the given name.","required":false,"type":"string","default":"","in":"query"},{"name":"background","description":"Changes background color. By default a random color will be picked and stay will persistent to the given name.","required":false,"type":"string","default":"","in":"query"}]}},"\/avatars\/qr":{"get":{"summary":"Get QR Code","operationId":"avatarsGetQR","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getQR","weight":71,"cookies":false,"type":"location","demo":"avatars\/get-q-r.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"text","description":"Plain text to be converted to QR code image.","required":true,"type":"string","x-example":"[TEXT]","in":"query"},{"name":"size","description":"QR code size. Pass an integer between 1 to 1000. Defaults to 400.","required":false,"type":"integer","format":"int32","x-example":1,"default":400,"in":"query"},{"name":"margin","description":"Margin from edge. Pass an integer between 0 to 10. Defaults to 1.","required":false,"type":"integer","format":"int32","x-example":0,"default":1,"in":"query"},{"name":"download","description":"Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0.","required":false,"type":"boolean","x-example":false,"default":false,"in":"query"}]}},"\/database\/collections":{"get":{"summary":"List Collections","operationId":"databaseListCollections","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Get a list of all the user collections. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's collections. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Collections List","schema":{"$ref":"#\/definitions\/collectionList"}}},"x-appwrite":{"method":"listCollections","weight":74,"cookies":false,"type":"","demo":"database\/list-collections.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-collections.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of collection to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the collection used as the starting point for the query, excluding the collection itself. Should be used for efficient pagination when working with large sets of data.","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Collection","operationId":"databaseCreateCollection","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a new Collection.","responses":{"201":{"description":"Collection","schema":{"$ref":"#\/definitions\/collection"}}},"x-appwrite":{"method":"createCollection","weight":73,"cookies":false,"type":"","demo":"database\/create-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"collectionId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[COLLECTION_ID]"},"name":{"type":"string","description":"Collection name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"permission":{"type":"string","description":"Specifies the permissions model used in this collection, which accepts either 'collection' or 'document'. For 'collection' level permission, the permissions specified in read and write params are applied to all documents in the collection. For 'document' level permissions, read and write permissions are specified in each document. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"document"},"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}}},"required":["collectionId","name","permission","read","write"]}}]}},"\/database\/collections\/{collectionId}":{"get":{"summary":"Get Collection","operationId":"databaseGetCollection","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Get a collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.","responses":{"200":{"description":"Collection","schema":{"$ref":"#\/definitions\/collection"}}},"x-appwrite":{"method":"getCollection","weight":75,"cookies":false,"type":"","demo":"database\/get-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"}]},"put":{"summary":"Update Collection","operationId":"databaseUpdateCollection","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Update a collection by its unique ID.","responses":{"200":{"description":"Collection","schema":{"$ref":"#\/definitions\/collection"}}},"x-appwrite":{"method":"updateCollection","weight":79,"cookies":false,"type":"","demo":"database\/update-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/update-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"Collection name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"permission":{"type":"string","description":"Permissions type model to use for reading documents in this collection. You can use collection-level permission set once on the collection using the `read` and `write` params, or you can set document-level permission where each document read and write params will decide who has access to read and write to each document individually. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"document"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"enabled":{"type":"boolean","description":"Is collection enabled?","default":true,"x-example":false}},"required":["name","permission"]}}]},"delete":{"summary":"Delete Collection","operationId":"databaseDeleteCollection","consumes":["application\/json"],"produces":[],"tags":["database"],"description":"Delete a collection by its unique ID. Only users with write permissions have access to delete this resource.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteCollection","weight":80,"cookies":false,"type":"","demo":"database\/delete-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"}]}},"\/database\/collections\/{collectionId}\/attributes":{"get":{"summary":"List Attributes","operationId":"databaseListAttributes","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"200":{"description":"Attributes List","schema":{"$ref":"#\/definitions\/attributeList"}}},"x-appwrite":{"method":"listAttributes","weight":89,"cookies":false,"type":"","demo":"database\/list-attributes.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-attributes.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"}]}},"\/database\/collections\/{collectionId}\/attributes\/boolean":{"post":{"summary":"Create Boolean Attribute","operationId":"databaseCreateBooleanAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a boolean attribute.\n","responses":{"201":{"description":"AttributeBoolean","schema":{"$ref":"#\/definitions\/attributeBoolean"}}},"x-appwrite":{"method":"createBooleanAttribute","weight":88,"cookies":false,"type":"","demo":"database\/create-boolean-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-boolean-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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":"boolean","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","default":null,"x-example":false},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/email":{"post":{"summary":"Create Email Attribute","operationId":"databaseCreateEmailAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create an email attribute.\n","responses":{"201":{"description":"AttributeEmail","schema":{"$ref":"#\/definitions\/attributeEmail"}}},"x-appwrite":{"method":"createEmailAttribute","weight":82,"cookies":false,"type":"","demo":"database\/create-email-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-email-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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":"email@example.com"},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/enum":{"post":{"summary":"Create Enum Attribute","operationId":"databaseCreateEnumAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"201":{"description":"AttributeEnum","schema":{"$ref":"#\/definitions\/attributeEnum"}}},"x-appwrite":{"method":"createEnumAttribute","weight":83,"cookies":false,"type":"","demo":"database\/create-enum-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-attribute-enum.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","default":null,"x-example":null},"elements":{"type":"array","description":"Array of elements in enumerated type. Uses length of longest element to determine size. Maximum of 100 elements are allowed, each 1024 characters long.","default":null,"x-example":null,"items":{"type":"string"}},"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":"[DEFAULT]"},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","elements","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/float":{"post":{"summary":"Create Float Attribute","operationId":"databaseCreateFloatAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a float attribute. Optionally, minimum and maximum values can be provided.\n","responses":{"201":{"description":"AttributeFloat","schema":{"$ref":"#\/definitions\/attributeFloat"}}},"x-appwrite":{"method":"createFloatAttribute","weight":87,"cookies":false,"type":"","demo":"database\/create-float-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-float-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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},"min":{"type":"number","description":"Minimum value to enforce on new documents","default":null,"x-example":null},"max":{"type":"number","description":"Maximum value to enforce on new documents","default":null,"x-example":null},"default":{"type":"number","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","default":null,"x-example":null},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/integer":{"post":{"summary":"Create Integer Attribute","operationId":"databaseCreateIntegerAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create an integer attribute. Optionally, minimum and maximum values can be provided.\n","responses":{"201":{"description":"AttributeInteger","schema":{"$ref":"#\/definitions\/attributeInteger"}}},"x-appwrite":{"method":"createIntegerAttribute","weight":86,"cookies":false,"type":"","demo":"database\/create-integer-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-integer-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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},"min":{"type":"integer","description":"Minimum value to enforce on new documents","default":null,"x-example":null},"max":{"type":"integer","description":"Maximum value to enforce on new documents","default":null,"x-example":null},"default":{"type":"integer","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","default":null,"x-example":null},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/ip":{"post":{"summary":"Create IP Address Attribute","operationId":"databaseCreateIpAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create IP address attribute.\n","responses":{"201":{"description":"AttributeIP","schema":{"$ref":"#\/definitions\/attributeIp"}}},"x-appwrite":{"method":"createIpAttribute","weight":84,"cookies":false,"type":"","demo":"database\/create-ip-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-ip-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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":null},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/string":{"post":{"summary":"Create String Attribute","operationId":"databaseCreateStringAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a string attribute.\n","responses":{"201":{"description":"AttributeString","schema":{"$ref":"#\/definitions\/attributeString"}}},"x-appwrite":{"method":"createStringAttribute","weight":81,"cookies":false,"type":"","demo":"database\/create-string-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-string-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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 text attributes, in number of characters.","default":null,"x-example":1},"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":"[DEFAULT]"},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","size","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/url":{"post":{"summary":"Create URL Attribute","operationId":"databaseCreateUrlAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a URL attribute.\n","responses":{"201":{"description":"AttributeURL","schema":{"$ref":"#\/definitions\/attributeUrl"}}},"x-appwrite":{"method":"createUrlAttribute","weight":85,"cookies":false,"type":"","demo":"database\/create-url-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-url-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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":"https:\/\/example.com"},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/{key}":{"get":{"summary":"Get Attribute","operationId":"databaseGetAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"200":{"description":"AttributeBoolean, or AttributeInteger, or AttributeFloat, or AttributeEmail, or AttributeEnum, or AttributeURL, or AttributeIP, or AttributeString","schema":{"x-oneOf":[{"$ref":"#\/definitions\/attributeBoolean"},{"$ref":"#\/definitions\/attributeInteger"},{"$ref":"#\/definitions\/attributeFloat"},{"$ref":"#\/definitions\/attributeEmail"},{"$ref":"#\/definitions\/attributeEnum"},{"$ref":"#\/definitions\/attributeUrl"},{"$ref":"#\/definitions\/attributeIp"},{"$ref":"#\/definitions\/attributeString"}]}}},"x-appwrite":{"method":"getAttribute","weight":90,"cookies":false,"type":"","demo":"database\/get-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"key","description":"Attribute Key.","required":true,"type":"string","in":"path"}]},"delete":{"summary":"Delete Attribute","operationId":"databaseDeleteAttribute","consumes":["application\/json"],"produces":[],"tags":["database"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteAttribute","weight":91,"cookies":false,"type":"","demo":"database\/delete-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"key","description":"Attribute Key.","required":true,"type":"string","in":"path"}]}},"\/database\/collections\/{collectionId}\/documents":{"get":{"summary":"List Documents","operationId":"databaseListDocuments","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's documents. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Documents List","schema":{"$ref":"#\/definitions\/documentList"}}},"x-appwrite":{"method":"listDocuments","weight":97,"cookies":false,"type":"","demo":"database\/list-documents.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-documents.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"queries","description":"Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/database#querying-documents). Maximum of 100 queries are allowed, each 128 characters long.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"default":[],"in":"query"},{"name":"limit","description":"Maximum number of documents to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the document used as the starting point for the query, excluding the document itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderAttributes","description":"Array of attributes used to sort results. Maximum of 100 order attributes are allowed, each 128 characters long.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"default":[],"in":"query"},{"name":"orderTypes","description":"Array of order directions for sorting attribtues. Possible values are DESC for descending order, or ASC for ascending order. Maximum of 100 order types are allowed.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"default":[],"in":"query"}]},"post":{"summary":"Create Document","operationId":"databaseCreateDocument","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](\/docs\/server\/database#databaseCreateCollection) API or directly from your database console.","responses":{"201":{"description":"Document","schema":{"$ref":"#\/definitions\/document"}}},"x-appwrite":{"method":"createDocument","weight":96,"cookies":false,"type":"","demo":"database\/create-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection). Make sure to define attributes before creating documents.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"documentId":{"type":"string","description":"Document ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[DOCUMENT_ID]"},"data":{"type":"object","description":"Document data as JSON object.","default":{},"x-example":"{}"},"read":{"type":"array","description":"An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}}},"required":["documentId","data"]}}]}},"\/database\/collections\/{collectionId}\/documents\/{documentId}":{"get":{"summary":"Get Document","operationId":"databaseGetDocument","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Get a document by its unique ID. This endpoint response returns a JSON object with the document data.","responses":{"200":{"description":"Document","schema":{"$ref":"#\/definitions\/document"}}},"x-appwrite":{"method":"getDocument","weight":98,"cookies":false,"type":"","demo":"database\/get-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"documentId","description":"Document ID.","required":true,"type":"string","x-example":"[DOCUMENT_ID]","in":"path"}]},"patch":{"summary":"Update Document","operationId":"databaseUpdateDocument","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.","responses":{"200":{"description":"Document","schema":{"$ref":"#\/definitions\/document"}}},"x-appwrite":{"method":"updateDocument","weight":100,"cookies":false,"type":"","demo":"database\/update-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/update-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"documentId","description":"Document ID.","required":true,"type":"string","x-example":"[DOCUMENT_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"data":{"type":"object","description":"Document data as JSON object. Include only attribute and value pairs to be updated.","default":{},"x-example":"{}"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}}},"required":["data"]}}]},"delete":{"summary":"Delete Document","operationId":"databaseDeleteDocument","consumes":["application\/json"],"produces":[],"tags":["database"],"description":"Delete a document by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteDocument","weight":101,"cookies":false,"type":"","demo":"database\/delete-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"documentId","description":"Document ID.","required":true,"type":"string","x-example":"[DOCUMENT_ID]","in":"path"}]}},"\/database\/collections\/{collectionId}\/documents\/{documentId}\/logs":{"get":{"summary":"List Document Logs","operationId":"databaseListDocumentLogs","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Get the document activity logs list by its unique ID.","responses":{"200":{"description":"Logs List","schema":{"$ref":"#\/definitions\/logList"}}},"x-appwrite":{"method":"listDocumentLogs","weight":99,"cookies":false,"type":"","demo":"database\/list-document-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-document-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"documentId","description":"Document ID.","required":true,"type":"string","x-example":"[DOCUMENT_ID]","in":"path"},{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"}]}},"\/database\/collections\/{collectionId}\/indexes":{"get":{"summary":"List Indexes","operationId":"databaseListIndexes","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"200":{"description":"Indexes List","schema":{"$ref":"#\/definitions\/indexList"}}},"x-appwrite":{"method":"listIndexes","weight":93,"cookies":false,"type":"","demo":"database\/list-indexes.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-indexes.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"}]},"post":{"summary":"Create Index","operationId":"databaseCreateIndex","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"201":{"description":"Index","schema":{"$ref":"#\/definitions\/index"}}},"x-appwrite":{"method":"createIndex","weight":92,"cookies":false,"type":"","demo":"database\/create-index.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-index.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"key":{"type":"string","description":"Index Key.","default":null,"x-example":null},"type":{"type":"string","description":"Index type.","default":null,"x-example":"key"},"attributes":{"type":"array","description":"Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.","default":null,"x-example":null,"items":{"type":"string"}},"orders":{"type":"array","description":"Array of index orders. Maximum of 100 orders are allowed.","default":[],"x-example":null,"items":{"type":"string"}}},"required":["key","type","attributes"]}}]}},"\/database\/collections\/{collectionId}\/indexes\/{key}":{"get":{"summary":"Get Index","operationId":"databaseGetIndex","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"200":{"description":"Index","schema":{"$ref":"#\/definitions\/index"}}},"x-appwrite":{"method":"getIndex","weight":94,"cookies":false,"type":"","demo":"database\/get-index.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-index.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"key","description":"Index Key.","required":true,"type":"string","in":"path"}]},"delete":{"summary":"Delete Index","operationId":"databaseDeleteIndex","consumes":["application\/json"],"produces":[],"tags":["database"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteIndex","weight":95,"cookies":false,"type":"","demo":"database\/delete-index.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-index.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"key","description":"Index Key.","required":true,"type":"string","in":"path"}]}},"\/database\/collections\/{collectionId}\/logs":{"get":{"summary":"List Collection Logs","operationId":"databaseListCollectionLogs","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Get the collection activity logs list by its unique ID.","responses":{"200":{"description":"Logs List","schema":{"$ref":"#\/definitions\/logList"}}},"x-appwrite":{"method":"listCollectionLogs","weight":78,"cookies":false,"type":"","demo":"database\/list-collection-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-collection-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"}]}},"\/database\/usage":{"get":{"summary":"Get usage stats for the database","operationId":"databaseGetUsage","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"200":{"description":"UsageDatabase","schema":{"$ref":"#\/definitions\/usageDatabase"}}},"x-appwrite":{"method":"getUsage","weight":76,"cookies":false,"type":"","demo":"database\/get-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"range","description":"Date range.","required":false,"type":"string","x-example":"24h","default":"30d","in":"query"}]}},"\/database\/{collectionId}\/usage":{"get":{"summary":"Get usage stats for a collection","operationId":"databaseGetCollectionUsage","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"200":{"description":"UsageCollection","schema":{"$ref":"#\/definitions\/usageCollection"}}},"x-appwrite":{"method":"getCollectionUsage","weight":77,"cookies":false,"type":"","demo":"database\/get-collection-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"range","description":"Date range.","required":false,"type":"string","x-example":"24h","default":"30d","in":"query"},{"name":"collectionId","description":"Collection ID.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"}]}},"\/functions":{"get":{"summary":"List Functions","operationId":"functionsList","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a list of all the project's functions. You can use the query params to filter your results.","responses":{"200":{"description":"Functions List","schema":{"$ref":"#\/definitions\/functionList"}}},"x-appwrite":{"method":"list","weight":203,"cookies":false,"type":"","demo":"functions\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-functions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of functions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the function used as the starting point for the query, excluding the function itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Function","operationId":"functionsCreate","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Create a new function. You can pass a list of [permissions](\/docs\/permissions) to allow different project users or team with access to execute the function using the client API.","responses":{"201":{"description":"Function","schema":{"$ref":"#\/definitions\/function"}}},"x-appwrite":{"method":"create","weight":202,"cookies":false,"type":"","demo":"functions\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"functionId":{"type":"string","description":"Function ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[FUNCTION_ID]"},"name":{"type":"string","description":"Function name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"execute":{"type":"array","description":"An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions. Maximum of 100 scopes are allowed, each 64 characters long.","default":null,"x-example":null,"items":{"type":"string"}},"runtime":{"type":"string","description":"Execution runtime.","default":null,"x-example":"node-14.5"},"vars":{"type":"object","description":"Key-value JSON object that will be passed to the function as environment variables.","default":[],"x-example":"{}"},"events":{"type":"array","description":"Events list. Maximum of 100 events are allowed.","default":[],"x-example":null,"items":{"type":"string"}},"schedule":{"type":"string","description":"Schedule CRON syntax.","default":"","x-example":null},"timeout":{"type":"integer","description":"Function maximum execution time in seconds.","default":15,"x-example":1}},"required":["functionId","name","execute","runtime"]}}]}},"\/functions\/runtimes":{"get":{"summary":"List runtimes","operationId":"functionsListRuntimes","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a list of all runtimes that are currently active on your instance.","responses":{"200":{"description":"Runtimes List","schema":{"$ref":"#\/definitions\/runtimeList"}}},"x-appwrite":{"method":"listRuntimes","weight":204,"cookies":false,"type":"","demo":"functions\/list-runtimes.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-runtimes.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/functions\/{functionId}":{"get":{"summary":"Get Function","operationId":"functionsGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a function by its unique ID.","responses":{"200":{"description":"Function","schema":{"$ref":"#\/definitions\/function"}}},"x-appwrite":{"method":"get","weight":205,"cookies":false,"type":"","demo":"functions\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"}]},"put":{"summary":"Update Function","operationId":"functionsUpdate","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Update function by its unique ID.","responses":{"200":{"description":"Function","schema":{"$ref":"#\/definitions\/function"}}},"x-appwrite":{"method":"update","weight":207,"cookies":false,"type":"","demo":"functions\/update.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"Function name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"execute":{"type":"array","description":"An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions. Maximum of 100 scopes are allowed, each 64 characters long.","default":null,"x-example":null,"items":{"type":"string"}},"vars":{"type":"object","description":"Key-value JSON object that will be passed to the function as environment variables.","default":[],"x-example":"{}"},"events":{"type":"array","description":"Events list. Maximum of 100 events are allowed.","default":[],"x-example":null,"items":{"type":"string"}},"schedule":{"type":"string","description":"Schedule CRON syntax.","default":"","x-example":null},"timeout":{"type":"integer","description":"Maximum execution time in seconds.","default":15,"x-example":1}},"required":["name","execute"]}}]},"delete":{"summary":"Delete Function","operationId":"functionsDelete","consumes":["application\/json"],"produces":[],"tags":["functions"],"description":"Delete a function by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":209,"cookies":false,"type":"","demo":"functions\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/delete-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"}]}},"\/functions\/{functionId}\/deployments":{"get":{"summary":"List Deployments","operationId":"functionsListDeployments","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a list of all the project's code deployments. You can use the query params to filter your results.","responses":{"200":{"description":"Deployments List","schema":{"$ref":"#\/definitions\/deploymentList"}}},"x-appwrite":{"method":"listDeployments","weight":211,"cookies":false,"type":"","demo":"functions\/list-deployments.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-deployments.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of deployments to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the deployment used as the starting point for the query, excluding the deployment itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Deployment","operationId":"functionsCreateDeployment","consumes":["multipart\/form-data"],"produces":["application\/json"],"tags":["functions"],"description":"Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.\n\nThis endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](\/docs\/functions).\n\nUse the \"command\" param to set the entry point used to execute your code.","responses":{"201":{"description":"Deployment","schema":{"$ref":"#\/definitions\/deployment"}}},"x-appwrite":{"method":"createDeployment","weight":210,"cookies":false,"type":"","demo":"functions\/create-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":true,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"entrypoint","description":"Entrypoint File.","required":true,"type":"string","x-example":"[ENTRYPOINT]","in":"formData"},{"name":"code","description":"Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.","required":true,"type":"file","in":"formData"},{"name":"activate","description":"Automatically activate the deployment when it is finished building.","required":true,"type":"boolean","x-example":false,"in":"formData"}]}},"\/functions\/{functionId}\/deployments\/{deploymentId}":{"get":{"summary":"Get Deployment","operationId":"functionsGetDeployment","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a code deployment by its unique ID.","responses":{"200":{"description":"Deployments List","schema":{"$ref":"#\/definitions\/deploymentList"}}},"x-appwrite":{"method":"getDeployment","weight":212,"cookies":false,"type":"","demo":"functions\/get-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"type":"string","x-example":"[DEPLOYMENT_ID]","in":"path"}]},"patch":{"summary":"Update Function Deployment","operationId":"functionsUpdateDeployment","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.","responses":{"200":{"description":"Function","schema":{"$ref":"#\/definitions\/function"}}},"x-appwrite":{"method":"updateDeployment","weight":208,"cookies":false,"type":"","demo":"functions\/update-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-function-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"type":"string","x-example":"[DEPLOYMENT_ID]","in":"path"}]},"delete":{"summary":"Delete Deployment","operationId":"functionsDeleteDeployment","consumes":["application\/json"],"produces":[],"tags":["functions"],"description":"Delete a code deployment by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteDeployment","weight":213,"cookies":false,"type":"","demo":"functions\/delete-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/delete-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"type":"string","x-example":"[DEPLOYMENT_ID]","in":"path"}]}},"\/functions\/{functionId}\/deployments\/{deploymentId}\/builds\/{buildId}":{"post":{"summary":"Retry Build","operationId":"functionsRetryBuild","consumes":["application\/json"],"produces":[],"tags":["functions"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"retryBuild","weight":217,"cookies":false,"type":"","demo":"functions\/retry-build.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/retry-build.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"type":"string","x-example":"[DEPLOYMENT_ID]","in":"path"},{"name":"buildId","description":"Build unique ID.","required":true,"type":"string","x-example":"[BUILD_ID]","in":"path"}]}},"\/functions\/{functionId}\/executions":{"get":{"summary":"List Executions","operationId":"functionsListExecutions","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a list of all the current user function execution logs. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's executions. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Executions List","schema":{"$ref":"#\/definitions\/executionList"}}},"x-appwrite":{"method":"listExecutions","weight":215,"cookies":false,"type":"","demo":"functions\/list-executions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-executions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"execution.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"limit","description":"Maximum number of executions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"cursor","description":"ID of the execution used as the starting point for the query, excluding the execution itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"}]},"post":{"summary":"Create Execution","operationId":"functionsCreateExecution","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.","responses":{"201":{"description":"Execution","schema":{"$ref":"#\/definitions\/execution"}}},"x-appwrite":{"method":"createExecution","weight":214,"cookies":false,"type":"","demo":"functions\/create-execution.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-execution.md","rate-limit":60,"rate-time":60,"rate-key":"url:{url},ip:{ip}","scope":"execution.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"data":{"type":"string","description":"String of custom data to send to function.","default":"","x-example":"[DATA]"},"async":{"type":"boolean","description":"Execute code asynchronously. Default value is true.","default":true,"x-example":false}}}}]}},"\/functions\/{functionId}\/executions\/{executionId}":{"get":{"summary":"Get Execution","operationId":"functionsGetExecution","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a function execution log by its unique ID.","responses":{"200":{"description":"Execution","schema":{"$ref":"#\/definitions\/execution"}}},"x-appwrite":{"method":"getExecution","weight":216,"cookies":false,"type":"","demo":"functions\/get-execution.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-execution.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"execution.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"executionId","description":"Execution ID.","required":true,"type":"string","x-example":"[EXECUTION_ID]","in":"path"}]}},"\/functions\/{functionId}\/usage":{"get":{"summary":"Get Function Usage","operationId":"functionsGetUsage","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"","responses":{"200":{"description":"UsageFunctions","schema":{"$ref":"#\/definitions\/usageFunctions"}}},"x-appwrite":{"method":"getUsage","weight":206,"cookies":false,"type":"","demo":"functions\/get-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"range","description":"Date range.","required":false,"type":"string","x-example":"24h","default":"30d","in":"query"}]}},"\/health":{"get":{"summary":"Get HTTP","operationId":"healthGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Check the Appwrite HTTP server is up and responsive.","responses":{"200":{"description":"Health Status","schema":{"$ref":"#\/definitions\/healthStatus"}}},"x-appwrite":{"method":"get","weight":109,"cookies":false,"type":"","demo":"health\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/anti-virus":{"get":{"summary":"Get Antivirus","operationId":"healthGetAntivirus","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Check the Appwrite Antivirus server is up and connection is successful.","responses":{"200":{"description":"Health Antivirus","schema":{"$ref":"#\/definitions\/healthAntivirus"}}},"x-appwrite":{"method":"getAntivirus","weight":119,"cookies":false,"type":"","demo":"health\/get-antivirus.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-storage-anti-virus.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/cache":{"get":{"summary":"Get Cache","operationId":"healthGetCache","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Check the Appwrite in-memory cache server is up and connection is successful.","responses":{"200":{"description":"Health Status","schema":{"$ref":"#\/definitions\/healthStatus"}}},"x-appwrite":{"method":"getCache","weight":112,"cookies":false,"type":"","demo":"health\/get-cache.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-cache.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/db":{"get":{"summary":"Get DB","operationId":"healthGetDB","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Check the Appwrite database server is up and connection is successful.","responses":{"200":{"description":"Health Status","schema":{"$ref":"#\/definitions\/healthStatus"}}},"x-appwrite":{"method":"getDB","weight":111,"cookies":false,"type":"","demo":"health\/get-d-b.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-db.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/certificates":{"get":{"summary":"Get Certificates Queue","operationId":"healthGetQueueCertificates","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Get the number of certificates that are waiting to be issued against [Letsencrypt](https:\/\/letsencrypt.org\/) in the Appwrite internal queue server.","responses":{"200":{"description":"Health Queue","schema":{"$ref":"#\/definitions\/healthQueue"}}},"x-appwrite":{"method":"getQueueCertificates","weight":116,"cookies":false,"type":"","demo":"health\/get-queue-certificates.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-certificates.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/functions":{"get":{"summary":"Get Functions Queue","operationId":"healthGetQueueFunctions","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"","responses":{"200":{"description":"Health Queue","schema":{"$ref":"#\/definitions\/healthQueue"}}},"x-appwrite":{"method":"getQueueFunctions","weight":117,"cookies":false,"type":"","demo":"health\/get-queue-functions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-functions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/logs":{"get":{"summary":"Get Logs Queue","operationId":"healthGetQueueLogs","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Get the number of logs that are waiting to be processed in the Appwrite internal queue server.","responses":{"200":{"description":"Health Queue","schema":{"$ref":"#\/definitions\/healthQueue"}}},"x-appwrite":{"method":"getQueueLogs","weight":115,"cookies":false,"type":"","demo":"health\/get-queue-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/webhooks":{"get":{"summary":"Get Webhooks Queue","operationId":"healthGetQueueWebhooks","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.","responses":{"200":{"description":"Health Queue","schema":{"$ref":"#\/definitions\/healthQueue"}}},"x-appwrite":{"method":"getQueueWebhooks","weight":114,"cookies":false,"type":"","demo":"health\/get-queue-webhooks.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-webhooks.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/storage\/local":{"get":{"summary":"Get Local Storage","operationId":"healthGetStorageLocal","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Check the Appwrite local storage device is up and connection is successful.","responses":{"200":{"description":"Health Status","schema":{"$ref":"#\/definitions\/healthStatus"}}},"x-appwrite":{"method":"getStorageLocal","weight":118,"cookies":false,"type":"","demo":"health\/get-storage-local.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-storage-local.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/time":{"get":{"summary":"Get Time","operationId":"healthGetTime","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https:\/\/en.wikipedia.org\/wiki\/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.","responses":{"200":{"description":"Health Time","schema":{"$ref":"#\/definitions\/healthTime"}}},"x-appwrite":{"method":"getTime","weight":113,"cookies":false,"type":"","demo":"health\/get-time.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-time.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}]}},"\/locale":{"get":{"summary":"Get User Locale","operationId":"localeGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.\n\n([IP Geolocation by DB-IP](https:\/\/db-ip.com))","responses":{"200":{"description":"Locale","schema":{"$ref":"#\/definitions\/locale"}}},"x-appwrite":{"method":"get","weight":102,"cookies":false,"type":"","demo":"locale\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-locale.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/continents":{"get":{"summary":"List Continents","operationId":"localeGetContinents","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all continents. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Continents List","schema":{"$ref":"#\/definitions\/continentList"}}},"x-appwrite":{"method":"getContinents","weight":106,"cookies":false,"type":"","demo":"locale\/get-continents.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-continents.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/countries":{"get":{"summary":"List Countries","operationId":"localeGetCountries","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all countries. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Countries List","schema":{"$ref":"#\/definitions\/countryList"}}},"x-appwrite":{"method":"getCountries","weight":103,"cookies":false,"type":"","demo":"locale\/get-countries.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/countries\/eu":{"get":{"summary":"List EU Countries","operationId":"localeGetCountriesEU","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Countries List","schema":{"$ref":"#\/definitions\/countryList"}}},"x-appwrite":{"method":"getCountriesEU","weight":104,"cookies":false,"type":"","demo":"locale\/get-countries-e-u.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries-eu.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/countries\/phones":{"get":{"summary":"List Countries Phone Codes","operationId":"localeGetCountriesPhones","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all countries phone codes. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Phones List","schema":{"$ref":"#\/definitions\/phoneList"}}},"x-appwrite":{"method":"getCountriesPhones","weight":105,"cookies":false,"type":"","demo":"locale\/get-countries-phones.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries-phones.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/currencies":{"get":{"summary":"List Currencies","operationId":"localeGetCurrencies","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Currencies List","schema":{"$ref":"#\/definitions\/currencyList"}}},"x-appwrite":{"method":"getCurrencies","weight":107,"cookies":false,"type":"","demo":"locale\/get-currencies.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-currencies.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/languages":{"get":{"summary":"List Languages","operationId":"localeGetLanguages","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.","responses":{"200":{"description":"Languages List","schema":{"$ref":"#\/definitions\/languageList"}}},"x-appwrite":{"method":"getLanguages","weight":108,"cookies":false,"type":"","demo":"locale\/get-languages.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-languages.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/projects":{"get":{"summary":"List Projects","operationId":"projectsList","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Projects List","schema":{"$ref":"#\/definitions\/projectList"}}},"x-appwrite":{"method":"list","weight":122,"cookies":false,"type":"","demo":"projects\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Results offset. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the project used as the starting point for the query, excluding the project itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Project","operationId":"projectsCreate","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"201":{"description":"Project","schema":{"$ref":"#\/definitions\/project"}}},"x-appwrite":{"method":"create","weight":121,"cookies":false,"type":"","demo":"projects\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"projectId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[PROJECT_ID]"},"name":{"type":"string","description":"Project name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"teamId":{"type":"string","description":"Team unique ID.","default":null,"x-example":"[TEAM_ID]"},"description":{"type":"string","description":"Project description. Max length: 256 chars.","default":"","x-example":"[DESCRIPTION]"},"logo":{"type":"string","description":"Project logo.","default":"","x-example":"[LOGO]"},"url":{"type":"string","description":"Project URL.","default":"","x-example":"https:\/\/example.com"},"legalName":{"type":"string","description":"Project legal Name. Max length: 256 chars.","default":"","x-example":"[LEGAL_NAME]"},"legalCountry":{"type":"string","description":"Project legal Country. Max length: 256 chars.","default":"","x-example":"[LEGAL_COUNTRY]"},"legalState":{"type":"string","description":"Project legal State. Max length: 256 chars.","default":"","x-example":"[LEGAL_STATE]"},"legalCity":{"type":"string","description":"Project legal City. Max length: 256 chars.","default":"","x-example":"[LEGAL_CITY]"},"legalAddress":{"type":"string","description":"Project legal Address. Max length: 256 chars.","default":"","x-example":"[LEGAL_ADDRESS]"},"legalTaxId":{"type":"string","description":"Project legal Tax ID. Max length: 256 chars.","default":"","x-example":"[LEGAL_TAX_ID]"}},"required":["projectId","name","teamId"]}}]}},"\/projects\/{projectId}":{"get":{"summary":"Get Project","operationId":"projectsGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Project","schema":{"$ref":"#\/definitions\/project"}}},"x-appwrite":{"method":"get","weight":123,"cookies":false,"type":"","demo":"projects\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"}]},"patch":{"summary":"Update Project","operationId":"projectsUpdate","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Project","schema":{"$ref":"#\/definitions\/project"}}},"x-appwrite":{"method":"update","weight":125,"cookies":false,"type":"","demo":"projects\/update.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"Project name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"description":{"type":"string","description":"Project description. Max length: 256 chars.","default":"","x-example":"[DESCRIPTION]"},"logo":{"type":"string","description":"Project logo.","default":"","x-example":"[LOGO]"},"url":{"type":"string","description":"Project URL.","default":"","x-example":"https:\/\/example.com"},"legalName":{"type":"string","description":"Project legal name. Max length: 256 chars.","default":"","x-example":"[LEGAL_NAME]"},"legalCountry":{"type":"string","description":"Project legal country. Max length: 256 chars.","default":"","x-example":"[LEGAL_COUNTRY]"},"legalState":{"type":"string","description":"Project legal state. Max length: 256 chars.","default":"","x-example":"[LEGAL_STATE]"},"legalCity":{"type":"string","description":"Project legal city. Max length: 256 chars.","default":"","x-example":"[LEGAL_CITY]"},"legalAddress":{"type":"string","description":"Project legal address. Max length: 256 chars.","default":"","x-example":"[LEGAL_ADDRESS]"},"legalTaxId":{"type":"string","description":"Project legal tax ID. Max length: 256 chars.","default":"","x-example":"[LEGAL_TAX_ID]"}},"required":["name"]}}]},"delete":{"summary":"Delete Project","operationId":"projectsDelete","consumes":["application\/json"],"produces":[],"tags":["projects"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":130,"cookies":false,"type":"","demo":"projects\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"password":{"type":"string","description":"Your user password for confirmation. Must be at least 8 chars.","default":null,"x-example":"password"}},"required":["password"]}}]}},"\/projects\/{projectId}\/auth\/limit":{"patch":{"summary":"Update Project users limit","operationId":"projectsUpdateAuthLimit","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Project","schema":{"$ref":"#\/definitions\/project"}}},"x-appwrite":{"method":"updateAuthLimit","weight":128,"cookies":false,"type":"","demo":"projects\/update-auth-limit.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"limit":{"type":"integer","description":"Set the max number of users allowed in this project. Use 0 for unlimited.","default":null,"x-example":0}},"required":["limit"]}}]}},"\/projects\/{projectId}\/auth\/{method}":{"patch":{"summary":"Update Project auth method status. Use this endpoint to enable or disable a given auth method for this project.","operationId":"projectsUpdateAuthStatus","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Project","schema":{"$ref":"#\/definitions\/project"}}},"x-appwrite":{"method":"updateAuthStatus","weight":129,"cookies":false,"type":"","demo":"projects\/update-auth-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"method","description":"Auth Method. Possible values: email-password,magic-url,anonymous,invites,jwt,phone","required":true,"type":"string","x-example":"email-password","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"status":{"type":"boolean","description":"Set the status of this auth method.","default":null,"x-example":false}},"required":["status"]}}]}},"\/projects\/{projectId}\/domains":{"get":{"summary":"List Domains","operationId":"projectsListDomains","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Domains List","schema":{"$ref":"#\/definitions\/domainList"}}},"x-appwrite":{"method":"listDomains","weight":147,"cookies":false,"type":"","demo":"projects\/list-domains.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"}]},"post":{"summary":"Create Domain","operationId":"projectsCreateDomain","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"201":{"description":"Domain","schema":{"$ref":"#\/definitions\/domain"}}},"x-appwrite":{"method":"createDomain","weight":146,"cookies":false,"type":"","demo":"projects\/create-domain.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"domain":{"type":"string","description":"Domain name.","default":null,"x-example":null}},"required":["domain"]}}]}},"\/projects\/{projectId}\/domains\/{domainId}":{"get":{"summary":"Get Domain","operationId":"projectsGetDomain","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Domain","schema":{"$ref":"#\/definitions\/domain"}}},"x-appwrite":{"method":"getDomain","weight":148,"cookies":false,"type":"","demo":"projects\/get-domain.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"domainId","description":"Domain unique ID.","required":true,"type":"string","x-example":"[DOMAIN_ID]","in":"path"}]},"delete":{"summary":"Delete Domain","operationId":"projectsDeleteDomain","consumes":["application\/json"],"produces":[],"tags":["projects"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteDomain","weight":150,"cookies":false,"type":"","demo":"projects\/delete-domain.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"domainId","description":"Domain unique ID.","required":true,"type":"string","x-example":"[DOMAIN_ID]","in":"path"}]}},"\/projects\/{projectId}\/domains\/{domainId}\/verification":{"patch":{"summary":"Update Domain Verification Status","operationId":"projectsUpdateDomainVerification","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Domain","schema":{"$ref":"#\/definitions\/domain"}}},"x-appwrite":{"method":"updateDomainVerification","weight":149,"cookies":false,"type":"","demo":"projects\/update-domain-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"domainId","description":"Domain unique ID.","required":true,"type":"string","x-example":"[DOMAIN_ID]","in":"path"}]}},"\/projects\/{projectId}\/keys":{"get":{"summary":"List Keys","operationId":"projectsListKeys","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"API Keys List","schema":{"$ref":"#\/definitions\/keyList"}}},"x-appwrite":{"method":"listKeys","weight":137,"cookies":false,"type":"","demo":"projects\/list-keys.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"}]},"post":{"summary":"Create Key","operationId":"projectsCreateKey","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"201":{"description":"Key","schema":{"$ref":"#\/definitions\/key"}}},"x-appwrite":{"method":"createKey","weight":136,"cookies":false,"type":"","demo":"projects\/create-key.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"Key name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"scopes":{"type":"array","description":"Key scopes list. Maximum of 100 scopes are allowed.","default":null,"x-example":null,"items":{"type":"string"}},"expire":{"type":"integer","description":"Key expiration time in Unix timestamp. Use 0 for unlimited expiration.","default":0,"x-example":null}},"required":["name","scopes"]}}]}},"\/projects\/{projectId}\/keys\/{keyId}":{"get":{"summary":"Get Key","operationId":"projectsGetKey","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Key","schema":{"$ref":"#\/definitions\/key"}}},"x-appwrite":{"method":"getKey","weight":138,"cookies":false,"type":"","demo":"projects\/get-key.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"keyId","description":"Key unique ID.","required":true,"type":"string","x-example":"[KEY_ID]","in":"path"}]},"put":{"summary":"Update Key","operationId":"projectsUpdateKey","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Key","schema":{"$ref":"#\/definitions\/key"}}},"x-appwrite":{"method":"updateKey","weight":139,"cookies":false,"type":"","demo":"projects\/update-key.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"keyId","description":"Key unique ID.","required":true,"type":"string","x-example":"[KEY_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"Key name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"scopes":{"type":"array","description":"Key scopes list. Maximum of 100 events are allowed.","default":null,"x-example":null,"items":{"type":"string"}},"expire":{"type":"integer","description":"Key expiration time in Unix timestamp. Use 0 for unlimited expiration.","default":0,"x-example":null}},"required":["name","scopes"]}}]},"delete":{"summary":"Delete Key","operationId":"projectsDeleteKey","consumes":["application\/json"],"produces":[],"tags":["projects"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteKey","weight":140,"cookies":false,"type":"","demo":"projects\/delete-key.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"keyId","description":"Key unique ID.","required":true,"type":"string","x-example":"[KEY_ID]","in":"path"}]}},"\/projects\/{projectId}\/oauth2":{"patch":{"summary":"Update Project OAuth2","operationId":"projectsUpdateOAuth2","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Project","schema":{"$ref":"#\/definitions\/project"}}},"x-appwrite":{"method":"updateOAuth2","weight":127,"cookies":false,"type":"","demo":"projects\/update-o-auth2.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"provider":{"type":"string","description":"Provider Name","default":null,"x-example":"amazon"},"appId":{"type":"string","description":"Provider app ID. Max length: 256 chars.","default":"","x-example":"[APP_ID]"},"secret":{"type":"string","description":"Provider secret key. Max length: 512 chars.","default":"","x-example":"[SECRET]"}},"required":["provider"]}}]}},"\/projects\/{projectId}\/platforms":{"get":{"summary":"List Platforms","operationId":"projectsListPlatforms","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Platforms List","schema":{"$ref":"#\/definitions\/platformList"}}},"x-appwrite":{"method":"listPlatforms","weight":142,"cookies":false,"type":"","demo":"projects\/list-platforms.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"}]},"post":{"summary":"Create Platform","operationId":"projectsCreatePlatform","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"201":{"description":"Platform","schema":{"$ref":"#\/definitions\/platform"}}},"x-appwrite":{"method":"createPlatform","weight":141,"cookies":false,"type":"","demo":"projects\/create-platform.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"type":{"type":"string","description":"Platform type.","default":null,"x-example":"web"},"name":{"type":"string","description":"Platform name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"key":{"type":"string","description":"Package name for Android or bundle ID for iOS or macOS. Max length: 256 chars.","default":"","x-example":"[KEY]"},"store":{"type":"string","description":"App store or Google Play store ID. Max length: 256 chars.","default":"","x-example":"[STORE]"},"hostname":{"type":"string","description":"Platform client hostname. Max length: 256 chars.","default":"","x-example":null}},"required":["type","name"]}}]}},"\/projects\/{projectId}\/platforms\/{platformId}":{"get":{"summary":"Get Platform","operationId":"projectsGetPlatform","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Platform","schema":{"$ref":"#\/definitions\/platform"}}},"x-appwrite":{"method":"getPlatform","weight":143,"cookies":false,"type":"","demo":"projects\/get-platform.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"platformId","description":"Platform unique ID.","required":true,"type":"string","x-example":"[PLATFORM_ID]","in":"path"}]},"put":{"summary":"Update Platform","operationId":"projectsUpdatePlatform","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Platform","schema":{"$ref":"#\/definitions\/platform"}}},"x-appwrite":{"method":"updatePlatform","weight":144,"cookies":false,"type":"","demo":"projects\/update-platform.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"platformId","description":"Platform unique ID.","required":true,"type":"string","x-example":"[PLATFORM_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"Platform name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"key":{"type":"string","description":"Package name for android or bundle ID for iOS. Max length: 256 chars.","default":"","x-example":"[KEY]"},"store":{"type":"string","description":"App store or Google Play store ID. Max length: 256 chars.","default":"","x-example":"[STORE]"},"hostname":{"type":"string","description":"Platform client URL. Max length: 256 chars.","default":"","x-example":null}},"required":["name"]}}]},"delete":{"summary":"Delete Platform","operationId":"projectsDeletePlatform","consumes":["application\/json"],"produces":[],"tags":["projects"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deletePlatform","weight":145,"cookies":false,"type":"","demo":"projects\/delete-platform.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"platformId","description":"Platform unique ID.","required":true,"type":"string","x-example":"[PLATFORM_ID]","in":"path"}]}},"\/projects\/{projectId}\/service":{"patch":{"summary":"Update service status","operationId":"projectsUpdateServiceStatus","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Project","schema":{"$ref":"#\/definitions\/project"}}},"x-appwrite":{"method":"updateServiceStatus","weight":126,"cookies":false,"type":"","demo":"projects\/update-service-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"service":{"type":"string","description":"Service name.","default":null,"x-example":"account"},"status":{"type":"boolean","description":"Service status.","default":null,"x-example":false}},"required":["service","status"]}}]}},"\/projects\/{projectId}\/usage":{"get":{"summary":"Get usage stats for a project","operationId":"projectsGetUsage","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"UsageProject","schema":{"$ref":"#\/definitions\/usageProject"}}},"x-appwrite":{"method":"getUsage","weight":124,"cookies":false,"type":"","demo":"projects\/get-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"range","description":"Date range.","required":false,"type":"string","x-example":"24h","default":"30d","in":"query"}]}},"\/projects\/{projectId}\/webhooks":{"get":{"summary":"List Webhooks","operationId":"projectsListWebhooks","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Webhooks List","schema":{"$ref":"#\/definitions\/webhookList"}}},"x-appwrite":{"method":"listWebhooks","weight":132,"cookies":false,"type":"","demo":"projects\/list-webhooks.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"}]},"post":{"summary":"Create Webhook","operationId":"projectsCreateWebhook","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"201":{"description":"Webhook","schema":{"$ref":"#\/definitions\/webhook"}}},"x-appwrite":{"method":"createWebhook","weight":131,"cookies":false,"type":"","demo":"projects\/create-webhook.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"Webhook name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"events":{"type":"array","description":"Events list. Maximum of 100 events are allowed.","default":null,"x-example":null,"items":{"type":"string"}},"url":{"type":"string","description":"Webhook URL.","default":null,"x-example":"https:\/\/example.com"},"security":{"type":"boolean","description":"Certificate verification, false for disabled or true for enabled.","default":null,"x-example":false},"httpUser":{"type":"string","description":"Webhook HTTP user. Max length: 256 chars.","default":"","x-example":"[HTTP_USER]"},"httpPass":{"type":"string","description":"Webhook HTTP password. Max length: 256 chars.","default":"","x-example":"[HTTP_PASS]"}},"required":["name","events","url","security"]}}]}},"\/projects\/{projectId}\/webhooks\/{webhookId}":{"get":{"summary":"Get Webhook","operationId":"projectsGetWebhook","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Webhook","schema":{"$ref":"#\/definitions\/webhook"}}},"x-appwrite":{"method":"getWebhook","weight":133,"cookies":false,"type":"","demo":"projects\/get-webhook.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"webhookId","description":"Webhook unique ID.","required":true,"type":"string","x-example":"[WEBHOOK_ID]","in":"path"}]},"put":{"summary":"Update Webhook","operationId":"projectsUpdateWebhook","consumes":["application\/json"],"produces":["application\/json"],"tags":["projects"],"description":"","responses":{"200":{"description":"Webhook","schema":{"$ref":"#\/definitions\/webhook"}}},"x-appwrite":{"method":"updateWebhook","weight":134,"cookies":false,"type":"","demo":"projects\/update-webhook.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"webhookId","description":"Webhook unique ID.","required":true,"type":"string","x-example":"[WEBHOOK_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"Webhook name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"events":{"type":"array","description":"Events list. Maximum of 100 events are allowed.","default":null,"x-example":null,"items":{"type":"string"}},"url":{"type":"string","description":"Webhook URL.","default":null,"x-example":"https:\/\/example.com"},"security":{"type":"boolean","description":"Certificate verification, false for disabled or true for enabled.","default":null,"x-example":false},"httpUser":{"type":"string","description":"Webhook HTTP user. Max length: 256 chars.","default":"","x-example":"[HTTP_USER]"},"httpPass":{"type":"string","description":"Webhook HTTP password. Max length: 256 chars.","default":"","x-example":"[HTTP_PASS]"},"signatureKey":{"type":"string","description":"Webhook signature key. Max length: 256 chars.","default":null,"x-example":"[SIGNATURE_KEY]"}},"required":["name","events","url","security"]}}]},"delete":{"summary":"Delete Webhook","operationId":"projectsDeleteWebhook","consumes":["application\/json"],"produces":[],"tags":["projects"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteWebhook","weight":135,"cookies":false,"type":"","demo":"projects\/delete-webhook.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"projects.write","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"projectId","description":"Project unique ID.","required":true,"type":"string","x-example":"[PROJECT_ID]","in":"path"},{"name":"webhookId","description":"Webhook unique ID.","required":true,"type":"string","x-example":"[WEBHOOK_ID]","in":"path"}]}},"\/storage\/buckets":{"get":{"summary":"List buckets","operationId":"storageListBuckets","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Get a list of all the storage buckets. You can use the query params to filter your results.","responses":{"200":{"description":"Buckets List","schema":{"$ref":"#\/definitions\/bucketList"}}},"x-appwrite":{"method":"listBuckets","weight":152,"cookies":false,"type":"","demo":"storage\/list-buckets.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/list-buckets.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Results offset. The default value is 0. Use this param to manage pagination.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the bucket used as the starting point for the query, excluding the bucket itself. Should be used for efficient pagination when working with large sets of data.","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create bucket","operationId":"storageCreateBucket","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Create a new storage bucket.","responses":{"201":{"description":"Bucket","schema":{"$ref":"#\/definitions\/bucket"}}},"x-appwrite":{"method":"createBucket","weight":151,"cookies":false,"type":"","demo":"storage\/create-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/create-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"bucketId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string `unique()` to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[BUCKET_ID]"},"name":{"type":"string","description":"Bucket name","default":null,"x-example":"[NAME]"},"permission":{"type":"string","description":"Permissions type model to use for reading files in this bucket. You can use bucket-level permission set once on the bucket using the `read` and `write` params, or you can set file-level permission where each file read and write params will decide who has access to read and write to each file individually. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"file"},"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"enabled":{"type":"boolean","description":"Is bucket enabled?","default":true,"x-example":false},"maximumFileSize":{"type":"integer","description":"Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self-hosted setups you can change the max limit by changing the `_APP_STORAGE_LIMIT` environment variable. [Learn more about storage environment variables](docs\/environment-variables#storage)","default":30000000,"x-example":1},"allowedFileExtensions":{"type":"array","description":"Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.","default":[],"x-example":null,"items":{"type":"string"}},"encryption":{"type":"boolean","description":"Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled","default":true,"x-example":false},"antivirus":{"type":"boolean","description":"Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled","default":true,"x-example":false}},"required":["bucketId","name","permission"]}}]}},"\/storage\/buckets\/{bucketId}":{"get":{"summary":"Get Bucket","operationId":"storageGetBucket","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Get a storage bucket by its unique ID. This endpoint response returns a JSON object with the storage bucket metadata.","responses":{"200":{"description":"Bucket","schema":{"$ref":"#\/definitions\/bucket"}}},"x-appwrite":{"method":"getBucket","weight":153,"cookies":false,"type":"","demo":"storage\/get-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"bucketId","description":"Bucket unique ID.","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"}]},"put":{"summary":"Update Bucket","operationId":"storageUpdateBucket","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Update a storage bucket by its unique ID.","responses":{"200":{"description":"Bucket","schema":{"$ref":"#\/definitions\/bucket"}}},"x-appwrite":{"method":"updateBucket","weight":154,"cookies":false,"type":"","demo":"storage\/update-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/update-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"bucketId","description":"Bucket unique ID.","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"Bucket name","default":null,"x-example":"[NAME]"},"permission":{"type":"string","description":"Permissions type model to use for reading files in this bucket. You can use bucket-level permission set once on the bucket using the `read` and `write` params, or you can set file-level permission where each file read and write params will decide who has access to read and write to each file individually. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"file"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"enabled":{"type":"boolean","description":"Is bucket enabled?","default":true,"x-example":false},"maximumFileSize":{"type":"integer","description":"Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self hosted version you can change the limit by changing _APP_STORAGE_LIMIT environment variable. [Learn more about storage environment variables](docs\/environment-variables#storage)","default":null,"x-example":1},"allowedFileExtensions":{"type":"array","description":"Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.","default":[],"x-example":null,"items":{"type":"string"}},"encryption":{"type":"boolean","description":"Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled","default":true,"x-example":false},"antivirus":{"type":"boolean","description":"Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled","default":true,"x-example":false}},"required":["name","permission"]}}]},"delete":{"summary":"Delete Bucket","operationId":"storageDeleteBucket","consumes":["application\/json"],"produces":[],"tags":["storage"],"description":"Delete a storage bucket by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteBucket","weight":155,"cookies":false,"type":"","demo":"storage\/delete-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/delete-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"bucketId","description":"Bucket unique ID.","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files":{"get":{"summary":"List Files","operationId":"storageListFiles","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Get a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's files. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Files List","schema":{"$ref":"#\/definitions\/fileList"}}},"x-appwrite":{"method":"listFiles","weight":157,"cookies":false,"type":"","demo":"storage\/list-files.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/list-files.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of files to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the file used as the starting point for the query, excluding the file itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create File","operationId":"storageCreateFile","consumes":["multipart\/form-data"],"produces":["application\/json"],"tags":["storage"],"description":"Create a new file. Before using this route, you should create a new bucket resource using either a [server integration](\/docs\/server\/database#storageCreateBucket) API or directly from your Appwrite console.\n\nLarger files should be uploaded using multiple requests with the [content-range](https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Headers\/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.\n\nWhen the first request is sent, the server will return the **File** object, and the subsequent part request must include the file's **id** in `x-appwrite-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.\n\nIf you're creating a new file using one of the Appwrite SDKs, all the chunking logic will be managed by the SDK internally.\n","responses":{"201":{"description":"File","schema":{"$ref":"#\/definitions\/file"}}},"x-appwrite":{"method":"createFile","weight":156,"cookies":false,"type":"upload","demo":"storage\/create-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/create-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","required":true,"x-upload-id":true,"type":"string","x-example":"[FILE_ID]","in":"formData"},{"name":"file","description":"Binary file.","required":true,"type":"file","in":"formData"},{"name":"read","description":"An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"x-example":"[\"role:all\"]","in":"formData"},{"name":"write","description":"An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"x-example":"[\"role:all\"]","in":"formData"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}":{"get":{"summary":"Get File","operationId":"storageGetFile","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.","responses":{"200":{"description":"File","schema":{"$ref":"#\/definitions\/file"}}},"x-appwrite":{"method":"getFile","weight":158,"cookies":false,"type":"","demo":"storage\/get-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"}]},"put":{"summary":"Update File","operationId":"storageUpdateFile","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Update a file by its unique ID. Only users with write permissions have access to update this resource.","responses":{"200":{"description":"File","schema":{"$ref":"#\/definitions\/file"}}},"x-appwrite":{"method":"updateFile","weight":162,"cookies":false,"type":"","demo":"storage\/update-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/update-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File unique ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}}}}}]},"delete":{"summary":"Delete File","operationId":"storageDeleteFile","consumes":["application\/json"],"produces":[],"tags":["storage"],"description":"Delete a file by its unique ID. Only users with write permissions have access to delete this resource.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteFile","weight":163,"cookies":false,"type":"","demo":"storage\/delete-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/delete-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/download":{"get":{"summary":"Get File for Download","operationId":"storageGetFileDownload","consumes":["application\/json"],"produces":["*\/*"],"tags":["storage"],"description":"Get a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.","responses":{"200":{"description":"File","schema":{"type":"file"}}},"x-appwrite":{"method":"getFileDownload","weight":160,"cookies":false,"type":"location","demo":"storage\/get-file-download.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-download.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/preview":{"get":{"summary":"Get File Preview","operationId":"storageGetFilePreview","consumes":["application\/json"],"produces":["image\/*"],"tags":["storage"],"description":"Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image. Preview is supported only for image files smaller than 10MB.","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getFilePreview","weight":159,"cookies":false,"type":"location","demo":"storage\/get-file-preview.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-preview.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"},{"name":"width","description":"Resize preview image width, Pass an integer between 0 to 4000.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"height","description":"Resize preview image height, Pass an integer between 0 to 4000.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"gravity","description":"Image crop gravity. Can be one of center,top-left,top,top-right,left,right,bottom-left,bottom,bottom-right","required":false,"type":"string","x-example":"center","default":"center","in":"query"},{"name":"quality","description":"Preview image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"borderWidth","description":"Preview image border in pixels. Pass an integer between 0 to 100. Defaults to 0.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"borderColor","description":"Preview image border color. Use a valid HEX color, no # is needed for prefix.","required":false,"type":"string","default":"","in":"query"},{"name":"borderRadius","description":"Preview image border radius in pixels. Pass an integer between 0 to 4000.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"opacity","description":"Preview image opacity. Only works with images having an alpha channel (like png). Pass a number between 0 to 1.","required":false,"type":"number","format":"float","x-example":0,"default":1,"in":"query"},{"name":"rotation","description":"Preview image rotation in degrees. Pass an integer between -360 and 360.","required":false,"type":"integer","format":"int32","x-example":-360,"default":0,"in":"query"},{"name":"background","description":"Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix.","required":false,"type":"string","default":"","in":"query"},{"name":"output","description":"Output format type (jpeg, jpg, png, gif and webp).","required":false,"type":"string","x-example":"jpg","default":"","in":"query"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/view":{"get":{"summary":"Get File for View","operationId":"storageGetFileView","consumes":["application\/json"],"produces":["*\/*"],"tags":["storage"],"description":"Get a file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header.","responses":{"200":{"description":"File","schema":{"type":"file"}}},"x-appwrite":{"method":"getFileView","weight":161,"cookies":false,"type":"location","demo":"storage\/get-file-view.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-view.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"}]}},"\/storage\/usage":{"get":{"summary":"Get usage stats for storage","operationId":"storageGetUsage","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"","responses":{"200":{"description":"StorageUsage","schema":{"$ref":"#\/definitions\/usageStorage"}}},"x-appwrite":{"method":"getUsage","weight":164,"cookies":false,"type":"","demo":"storage\/get-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"range","description":"Date range.","required":false,"type":"string","x-example":"24h","default":"30d","in":"query"}]}},"\/storage\/{bucketId}\/usage":{"get":{"summary":"Get usage stats for a storage bucket","operationId":"storageGetBucketUsage","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"","responses":{"200":{"description":"UsageBuckets","schema":{"$ref":"#\/definitions\/usageBuckets"}}},"x-appwrite":{"method":"getBucketUsage","weight":165,"cookies":false,"type":"","demo":"storage\/get-bucket-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"bucketId","description":"Bucket ID.","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"range","description":"Date range.","required":false,"type":"string","x-example":"24h","default":"30d","in":"query"}]}},"\/teams":{"get":{"summary":"List Teams","operationId":"teamsList","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.\r\n\r\nIn admin mode, this endpoint returns a list of all the teams in the current project. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Teams List","schema":{"$ref":"#\/definitions\/teamList"}}},"x-appwrite":{"method":"list","weight":167,"cookies":false,"type":"","demo":"teams\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/list-teams.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of teams to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the team used as the starting point for the query, excluding the team itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Team","operationId":"teamsCreate","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.","responses":{"201":{"description":"Team","schema":{"$ref":"#\/definitions\/team"}}},"x-appwrite":{"method":"create","weight":166,"cookies":false,"type":"","demo":"teams\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/create-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"teamId":{"type":"string","description":"Team ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[TEAM_ID]"},"name":{"type":"string","description":"Team name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"roles":{"type":"array","description":"Array of strings. Use this param to set the roles in the team for the user who created it. The default role is **owner**. A role can be any string. Learn more about [roles and permissions](\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","default":["owner"],"x-example":null,"items":{"type":"string"}}},"required":["teamId","name"]}}]}},"\/teams\/{teamId}":{"get":{"summary":"Get Team","operationId":"teamsGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Get a team by its ID. All team members have read access for this resource.","responses":{"200":{"description":"Team","schema":{"$ref":"#\/definitions\/team"}}},"x-appwrite":{"method":"get","weight":168,"cookies":false,"type":"","demo":"teams\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"}]},"put":{"summary":"Update Team","operationId":"teamsUpdate","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Update a team using its ID. Only members with the owner role can update the team.","responses":{"200":{"description":"Team","schema":{"$ref":"#\/definitions\/team"}}},"x-appwrite":{"method":"update","weight":169,"cookies":false,"type":"","demo":"teams\/update.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"New team name. Max length: 128 chars.","default":null,"x-example":"[NAME]"}},"required":["name"]}}]},"delete":{"summary":"Delete Team","operationId":"teamsDelete","consumes":["application\/json"],"produces":[],"tags":["teams"],"description":"Delete a team using its ID. Only team members with the owner role can delete the team.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":170,"cookies":false,"type":"","demo":"teams\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/delete-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"}]}},"\/teams\/{teamId}\/logs":{"get":{"summary":"List Team Logs","operationId":"teamsListLogs","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Get the team activity logs list by its unique ID.","responses":{"200":{"description":"Logs List","schema":{"$ref":"#\/definitions\/logList"}}},"x-appwrite":{"method":"listLogs","weight":177,"cookies":false,"type":"","demo":"teams\/list-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"}]}},"\/teams\/{teamId}\/memberships":{"get":{"summary":"Get Team Memberships","operationId":"teamsGetMemberships","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint.","responses":{"200":{"description":"Memberships List","schema":{"$ref":"#\/definitions\/membershipList"}}},"x-appwrite":{"method":"getMemberships","weight":172,"cookies":false,"type":"","demo":"teams\/get-memberships.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-members.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of memberships to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the membership used as the starting point for the query, excluding the membership itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Team Membership","operationId":"teamsCreateMembership","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Invite a new member to join your team. If initiated from the client SDK, an email with a link to join the team will be sent to the member's email address and an account will be created for them should they not be signed up already. If initiated from server-side SDKs, the new member will automatically be added to the team.\n\nUse the 'url' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the [Update Team Membership Status](\/docs\/client\/teams#teamsUpdateMembershipStatus) endpoint to allow the user to accept the invitation to the team. \n\nPlease note that to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when adding your platforms in the console interface.","responses":{"201":{"description":"Membership","schema":{"$ref":"#\/definitions\/membership"}}},"x-appwrite":{"method":"createMembership","weight":171,"cookies":false,"type":"","demo":"teams\/create-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/create-team-membership.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"Email of the new team member.","default":null,"x-example":"email@example.com"},"roles":{"type":"array","description":"Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","default":null,"x-example":null,"items":{"type":"string"}},"url":{"type":"string","description":"URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","default":null,"x-example":"https:\/\/example.com"},"name":{"type":"string","description":"Name of the new team member. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["email","roles","url"]}}]}},"\/teams\/{teamId}\/memberships\/{membershipId}":{"get":{"summary":"Get Team Membership","operationId":"teamsGetMembership","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Get a team member by the membership unique id. All team members have read access for this resource.","responses":{"200":{"description":"Memberships List","schema":{"$ref":"#\/definitions\/membershipList"}}},"x-appwrite":{"method":"getMembership","weight":173,"cookies":false,"type":"","demo":"teams\/get-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-member.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"type":"string","x-example":"[MEMBERSHIP_ID]","in":"path"}]},"patch":{"summary":"Update Membership Roles","operationId":"teamsUpdateMembershipRoles","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](\/docs\/permissions).","responses":{"200":{"description":"Membership","schema":{"$ref":"#\/definitions\/membership"}}},"x-appwrite":{"method":"updateMembershipRoles","weight":174,"cookies":false,"type":"","demo":"teams\/update-membership-roles.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team-membership-roles.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"type":"string","x-example":"[MEMBERSHIP_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"roles":{"type":"array","description":"An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https:\/\/appwrite.io\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","default":null,"x-example":null,"items":{"type":"string"}}},"required":["roles"]}}]},"delete":{"summary":"Delete Team Membership","operationId":"teamsDeleteMembership","consumes":["application\/json"],"produces":[],"tags":["teams"],"description":"This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteMembership","weight":176,"cookies":false,"type":"","demo":"teams\/delete-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/delete-team-membership.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"type":"string","x-example":"[MEMBERSHIP_ID]","in":"path"}]}},"\/teams\/{teamId}\/memberships\/{membershipId}\/status":{"patch":{"summary":"Update Team Membership Status","operationId":"teamsUpdateMembershipStatus","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email received by the user.\n\nIf the request is successful, a session for the user is automatically created.\n","responses":{"200":{"description":"Membership","schema":{"$ref":"#\/definitions\/membership"}}},"x-appwrite":{"method":"updateMembershipStatus","weight":175,"cookies":false,"type":"","demo":"teams\/update-membership-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team-membership-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"type":"string","x-example":"[MEMBERSHIP_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","default":null,"x-example":"[USER_ID]"},"secret":{"type":"string","description":"Secret key.","default":null,"x-example":"[SECRET]"}},"required":["userId","secret"]}}]}},"\/users":{"get":{"summary":"List Users","operationId":"usersList","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Get a list of all the project's users. You can use the query params to filter your results.","responses":{"200":{"description":"Users List","schema":{"$ref":"#\/definitions\/userList"}}},"x-appwrite":{"method":"list","weight":186,"cookies":false,"type":"","demo":"users\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/list-users.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of users to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the user used as the starting point for the query, excluding the user itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create User","operationId":"usersCreate","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Create a new user.","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"create","weight":178,"cookies":false,"type":"","demo":"users\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"Plaintext user password. Must be at least 8 chars.","default":null,"x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/import\/argon2":{"post":{"summary":"Create User with Argon2 Password","operationId":"usersCreateArgon2User","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createArgon2User","weight":181,"cookies":false,"type":"","demo":"users\/create-argon2user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-argon2-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using Argon2.","default":null,"x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/import\/bcrypt":{"post":{"summary":"Create User with BCrypt Password","operationId":"usersCreateBcryptUser","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createBcryptUser","weight":179,"cookies":false,"type":"","demo":"users\/create-bcrypt-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-bcrypt-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using BCrypt.","default":null,"x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/import\/md5":{"post":{"summary":"Create User with MD5 Password","operationId":"usersCreateMD5User","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createMD5User","weight":180,"cookies":false,"type":"","demo":"users\/create-m-d5user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-md5-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using MD5.","default":null,"x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/import\/phpass":{"post":{"summary":"Create User with PHPass Password","operationId":"usersCreatePHPassUser","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createPHPassUser","weight":183,"cookies":false,"type":"","demo":"users\/create-p-h-pass-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-phpass-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using PHPass.","default":null,"x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/import\/scrypt":{"post":{"summary":"Create User with SCrypt Password","operationId":"usersCreateSCryptUser","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createSCryptUser","weight":184,"cookies":false,"type":"","demo":"users\/create-s-crypt-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-scrypt-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using SCrypt.","default":null,"x-example":"password"},"passwordSalt":{"type":"string","description":"Optional salt used to hash password.","default":"","x-example":"[PASSWORD_SALT]"},"passwordCpu":{"type":"integer","description":"Optional CPU cost used to hash password.","default":"","x-example":null},"passwordMemory":{"type":"integer","description":"Optional memory cost used to hash password.","default":"","x-example":null},"passwordParallel":{"type":"integer","description":"Optional parallelization cost used to hash password.","default":"","x-example":null},"passwordLength":{"type":"integer","description":"Optional hash length used to hash password.","default":"","x-example":null},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/import\/scrypt-modified":{"post":{"summary":"Create User with SCrypt Modified Password","operationId":"usersCreateSCryptModifiedUser","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createSCryptModifiedUser","weight":185,"cookies":false,"type":"","demo":"users\/create-s-crypt-modified-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-scrypt-modified-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using SCrypt Modified.","default":null,"x-example":"password"},"passwordSalt":{"type":"string","description":"Salt used to hash password.","default":null,"x-example":"[PASSWORD_SALT]"},"passwordSaltSeparator":{"type":"string","description":"Salt separator used to hash password.","default":null,"x-example":"[PASSWORD_SALT_SEPARATOR]"},"passwordSignerKey":{"type":"string","description":"Signer key used to hash password.","default":null,"x-example":"[PASSWORD_SIGNER_KEY]"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password","passwordSalt","passwordSaltSeparator","passwordSignerKey"]}}]}},"\/users\/import\/sha":{"post":{"summary":"Create User with SHA Password","operationId":"usersCreateSHAUser","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createSHAUser","weight":182,"cookies":false,"type":"","demo":"users\/create-s-h-a-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-sha-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using SHA.","default":null,"x-example":"password"},"passwordVersion":{"type":"string","description":"Optional SHA version used to hash password. Allowed values are: 'sha1', 'sha224', 'sha256', 'sha384', 'sha512\/224', 'sha512\/256', 'sha512', 'sha3-224', 'sha3-256', 'sha3-384', 'sha3-512'","default":"","x-example":"sha1"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/usage":{"get":{"summary":"Get usage stats for the users API","operationId":"usersGetUsage","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"200":{"description":"UsageUsers","schema":{"$ref":"#\/definitions\/usageUsers"}}},"x-appwrite":{"method":"getUsage","weight":201,"cookies":false,"type":"","demo":"users\/get-usage.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["console"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[]}],"parameters":[{"name":"range","description":"Date range.","required":false,"type":"string","x-example":"24h","default":"30d","in":"query"},{"name":"provider","description":"Provider Name.","required":false,"type":"string","x-example":"email","default":"","in":"query"}]}},"\/users\/{userId}":{"get":{"summary":"Get User","operationId":"usersGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Get a user by its unique ID.","responses":{"200":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"get","weight":187,"cookies":false,"type":"","demo":"users\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"}]},"delete":{"summary":"Delete User","operationId":"usersDelete","consumes":["application\/json"],"produces":[],"tags":["users"],"description":"Delete a user by its unique ID, thereby releasing it's ID. Since ID is released and can be reused, all user-related resources like documents or storage files should be deleted before user deletion. If you want to keep ID reserved, use the [updateStatus](\/docs\/server\/users#usersUpdateStatus) endpoint instead.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":200,"cookies":false,"type":"","demo":"users\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/delete.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"}]}},"\/users\/{userId}\/email":{"patch":{"summary":"Update Email","operationId":"usersUpdateEmail","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Update the user email by its unique ID.","responses":{"200":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"updateEmail","weight":196,"cookies":false,"type":"","demo":"users\/update-email.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-email.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"}},"required":["email"]}}]}},"\/users\/{userId}\/logs":{"get":{"summary":"Get User Logs","operationId":"usersGetLogs","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Get the user activity logs list by its unique ID.","responses":{"200":{"description":"Logs List","schema":{"$ref":"#\/definitions\/logList"}}},"x-appwrite":{"method":"getLogs","weight":191,"cookies":false,"type":"","demo":"users\/get-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"}]}},"\/users\/{userId}\/memberships":{"get":{"summary":"Get User Memberships","operationId":"usersGetMemberships","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Get the user membership list by its unique ID.","responses":{"200":{"description":"Memberships List","schema":{"$ref":"#\/definitions\/membershipList"}}},"x-appwrite":{"method":"getMemberships","weight":190,"cookies":false,"type":"","demo":"users\/get-memberships.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-memberships.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"}]}},"\/users\/{userId}\/name":{"patch":{"summary":"Update Name","operationId":"usersUpdateName","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Update the user name by its unique ID.","responses":{"200":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"updateName","weight":194,"cookies":false,"type":"","demo":"users\/update-name.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-name.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"User name. Max length: 128 chars.","default":null,"x-example":"[NAME]"}},"required":["name"]}}]}},"\/users\/{userId}\/password":{"patch":{"summary":"Update Password","operationId":"usersUpdatePassword","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Update the user password by its unique ID.","responses":{"200":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"updatePassword","weight":195,"cookies":false,"type":"","demo":"users\/update-password.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-password.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"password":{"type":"string","description":"New user password. Must be at least 8 chars.","default":null,"x-example":"password"}},"required":["password"]}}]}},"\/users\/{userId}\/prefs":{"get":{"summary":"Get User Preferences","operationId":"usersGetPrefs","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Get the user preferences by its unique ID.","responses":{"200":{"description":"Preferences","schema":{"$ref":"#\/definitions\/preferences"}}},"x-appwrite":{"method":"getPrefs","weight":188,"cookies":false,"type":"","demo":"users\/get-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"}]},"patch":{"summary":"Update User Preferences","operationId":"usersUpdatePrefs","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Update the user preferences by its unique ID. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.","responses":{"200":{"description":"Preferences","schema":{"$ref":"#\/definitions\/preferences"}}},"x-appwrite":{"method":"updatePrefs","weight":197,"cookies":false,"type":"","demo":"users\/update-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"prefs":{"type":"object","description":"Prefs key-value JSON object.","default":{},"x-example":"{}"}},"required":["prefs"]}}]}},"\/users\/{userId}\/sessions":{"get":{"summary":"Get User Sessions","operationId":"usersGetSessions","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Get the user sessions list by its unique ID.","responses":{"200":{"description":"Sessions List","schema":{"$ref":"#\/definitions\/sessionList"}}},"x-appwrite":{"method":"getSessions","weight":189,"cookies":false,"type":"","demo":"users\/get-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"}]},"delete":{"summary":"Delete User Sessions","operationId":"usersDeleteSessions","consumes":["application\/json"],"produces":[],"tags":["users"],"description":"Delete all user's sessions by using the user's unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSessions","weight":199,"cookies":false,"type":"","demo":"users\/delete-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/delete-user-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"}]}},"\/users\/{userId}\/sessions\/{sessionId}":{"delete":{"summary":"Delete User Session","operationId":"usersDeleteSession","consumes":["application\/json"],"produces":[],"tags":["users"],"description":"Delete a user sessions by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSession","weight":198,"cookies":false,"type":"","demo":"users\/delete-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/delete-user-session.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"sessionId","description":"Session ID.","required":true,"type":"string","x-example":"[SESSION_ID]","in":"path"}]}},"\/users\/{userId}\/status":{"patch":{"summary":"Update User Status","operationId":"usersUpdateStatus","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Update the user status by its unique ID. Use this endpoint as an alternative to deleting a user if you want to keep user's ID reserved.","responses":{"200":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"updateStatus","weight":192,"cookies":false,"type":"","demo":"users\/update-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"status":{"type":"boolean","description":"User Status. To activate the user pass `true` and to block the user pass `false`.","default":null,"x-example":false}},"required":["status"]}}]}},"\/users\/{userId}\/verification":{"patch":{"summary":"Update Email Verification","operationId":"usersUpdateVerification","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Update the user email verification status by its unique ID.","responses":{"200":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"updateVerification","weight":193,"cookies":false,"type":"","demo":"users\/update-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-verification.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"emailVerification":{"type":"boolean","description":"User email verification status.","default":null,"x-example":false}},"required":["emailVerification"]}}]}}},"tags":[{"name":"account","description":"The Account service allows you to authenticate and manage a user account."},{"name":"avatars","description":"The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars."},{"name":"database","description":"The Database service allows you to create structured collections of documents, query and filter lists of documents"},{"name":"locale","description":"The Locale service allows you to customize your app based on your users' location."},{"name":"health","description":"The Health service allows you to both validate and monitor your Appwrite server's health."},{"name":"projects","description":"The Project service allows you to manage all the projects in your Appwrite server."},{"name":"storage","description":"The Storage service allows you to manage your project files."},{"name":"teams","description":"The Teams service allows you to group users of your project and to enable them to share read and write access to your project resources"},{"name":"users","description":"The Users service allows you to manage your project users."},{"name":"functions","description":"The Functions Service allows you view, create and manage your Cloud Functions."}],"definitions":{"documentList":{"description":"Documents List","type":"object","properties":{"total":{"type":"integer","description":"Total number of documents documents that matched your query.","x-example":5,"format":"int32"},"documents":{"type":"array","description":"List of documents.","items":{"type":"object","$ref":"#\/definitions\/document"},"x-example":""}},"required":["total","documents"]},"collectionList":{"description":"Collections List","type":"object","properties":{"total":{"type":"integer","description":"Total number of collections documents that matched your query.","x-example":5,"format":"int32"},"collections":{"type":"array","description":"List of collections.","items":{"type":"object","$ref":"#\/definitions\/collection"},"x-example":""}},"required":["total","collections"]},"indexList":{"description":"Indexes List","type":"object","properties":{"total":{"type":"integer","description":"Total number of indexes documents that matched your query.","x-example":5,"format":"int32"},"indexes":{"type":"array","description":"List of indexes.","items":{"type":"object","$ref":"#\/definitions\/index"},"x-example":""}},"required":["total","indexes"]},"userList":{"description":"Users List","type":"object","properties":{"total":{"type":"integer","description":"Total number of users documents that matched your query.","x-example":5,"format":"int32"},"users":{"type":"array","description":"List of users.","items":{"type":"object","$ref":"#\/definitions\/user"},"x-example":""}},"required":["total","users"]},"sessionList":{"description":"Sessions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of sessions documents that matched your query.","x-example":5,"format":"int32"},"sessions":{"type":"array","description":"List of sessions.","items":{"type":"object","$ref":"#\/definitions\/session"},"x-example":""}},"required":["total","sessions"]},"logList":{"description":"Logs List","type":"object","properties":{"total":{"type":"integer","description":"Total number of logs documents that matched your query.","x-example":5,"format":"int32"},"logs":{"type":"array","description":"List of logs.","items":{"type":"object","$ref":"#\/definitions\/log"},"x-example":""}},"required":["total","logs"]},"fileList":{"description":"Files List","type":"object","properties":{"total":{"type":"integer","description":"Total number of files documents that matched your query.","x-example":5,"format":"int32"},"files":{"type":"array","description":"List of files.","items":{"type":"object","$ref":"#\/definitions\/file"},"x-example":""}},"required":["total","files"]},"bucketList":{"description":"Buckets List","type":"object","properties":{"total":{"type":"integer","description":"Total number of buckets documents that matched your query.","x-example":5,"format":"int32"},"buckets":{"type":"array","description":"List of buckets.","items":{"type":"object","$ref":"#\/definitions\/bucket"},"x-example":""}},"required":["total","buckets"]},"teamList":{"description":"Teams List","type":"object","properties":{"total":{"type":"integer","description":"Total number of teams documents that matched your query.","x-example":5,"format":"int32"},"teams":{"type":"array","description":"List of teams.","items":{"type":"object","$ref":"#\/definitions\/team"},"x-example":""}},"required":["total","teams"]},"membershipList":{"description":"Memberships List","type":"object","properties":{"total":{"type":"integer","description":"Total number of memberships documents that matched your query.","x-example":5,"format":"int32"},"memberships":{"type":"array","description":"List of memberships.","items":{"type":"object","$ref":"#\/definitions\/membership"},"x-example":""}},"required":["total","memberships"]},"functionList":{"description":"Functions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of functions documents that matched your query.","x-example":5,"format":"int32"},"functions":{"type":"array","description":"List of functions.","items":{"type":"object","$ref":"#\/definitions\/function"},"x-example":""}},"required":["total","functions"]},"runtimeList":{"description":"Runtimes List","type":"object","properties":{"total":{"type":"integer","description":"Total number of runtimes documents that matched your query.","x-example":5,"format":"int32"},"runtimes":{"type":"array","description":"List of runtimes.","items":{"type":"object","$ref":"#\/definitions\/runtime"},"x-example":""}},"required":["total","runtimes"]},"deploymentList":{"description":"Deployments List","type":"object","properties":{"total":{"type":"integer","description":"Total number of deployments documents that matched your query.","x-example":5,"format":"int32"},"deployments":{"type":"array","description":"List of deployments.","items":{"type":"object","$ref":"#\/definitions\/deployment"},"x-example":""}},"required":["total","deployments"]},"executionList":{"description":"Executions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of executions documents that matched your query.","x-example":5,"format":"int32"},"executions":{"type":"array","description":"List of executions.","items":{"type":"object","$ref":"#\/definitions\/execution"},"x-example":""}},"required":["total","executions"]},"projectList":{"description":"Projects List","type":"object","properties":{"total":{"type":"integer","description":"Total number of projects documents that matched your query.","x-example":5,"format":"int32"},"projects":{"type":"array","description":"List of projects.","items":{"type":"object","$ref":"#\/definitions\/project"},"x-example":""}},"required":["total","projects"]},"webhookList":{"description":"Webhooks List","type":"object","properties":{"total":{"type":"integer","description":"Total number of webhooks documents that matched your query.","x-example":5,"format":"int32"},"webhooks":{"type":"array","description":"List of webhooks.","items":{"type":"object","$ref":"#\/definitions\/webhook"},"x-example":""}},"required":["total","webhooks"]},"keyList":{"description":"API Keys List","type":"object","properties":{"total":{"type":"integer","description":"Total number of keys documents that matched your query.","x-example":5,"format":"int32"},"keys":{"type":"array","description":"List of keys.","items":{"type":"object","$ref":"#\/definitions\/key"},"x-example":""}},"required":["total","keys"]},"platformList":{"description":"Platforms List","type":"object","properties":{"total":{"type":"integer","description":"Total number of platforms documents that matched your query.","x-example":5,"format":"int32"},"platforms":{"type":"array","description":"List of platforms.","items":{"type":"object","$ref":"#\/definitions\/platform"},"x-example":""}},"required":["total","platforms"]},"domainList":{"description":"Domains List","type":"object","properties":{"total":{"type":"integer","description":"Total number of domains documents that matched your query.","x-example":5,"format":"int32"},"domains":{"type":"array","description":"List of domains.","items":{"type":"object","$ref":"#\/definitions\/domain"},"x-example":""}},"required":["total","domains"]},"countryList":{"description":"Countries List","type":"object","properties":{"total":{"type":"integer","description":"Total number of countries documents that matched your query.","x-example":5,"format":"int32"},"countries":{"type":"array","description":"List of countries.","items":{"type":"object","$ref":"#\/definitions\/country"},"x-example":""}},"required":["total","countries"]},"continentList":{"description":"Continents List","type":"object","properties":{"total":{"type":"integer","description":"Total number of continents documents that matched your query.","x-example":5,"format":"int32"},"continents":{"type":"array","description":"List of continents.","items":{"type":"object","$ref":"#\/definitions\/continent"},"x-example":""}},"required":["total","continents"]},"languageList":{"description":"Languages List","type":"object","properties":{"total":{"type":"integer","description":"Total number of languages documents that matched your query.","x-example":5,"format":"int32"},"languages":{"type":"array","description":"List of languages.","items":{"type":"object","$ref":"#\/definitions\/language"},"x-example":""}},"required":["total","languages"]},"currencyList":{"description":"Currencies List","type":"object","properties":{"total":{"type":"integer","description":"Total number of currencies documents that matched your query.","x-example":5,"format":"int32"},"currencies":{"type":"array","description":"List of currencies.","items":{"type":"object","$ref":"#\/definitions\/currency"},"x-example":""}},"required":["total","currencies"]},"phoneList":{"description":"Phones List","type":"object","properties":{"total":{"type":"integer","description":"Total number of phones documents that matched your query.","x-example":5,"format":"int32"},"phones":{"type":"array","description":"List of phones.","items":{"type":"object","$ref":"#\/definitions\/phone"},"x-example":""}},"required":["total","phones"]},"metricList":{"description":"Metric List","type":"object","properties":{"total":{"type":"integer","description":"Total number of metrics documents that matched your query.","x-example":5,"format":"int32"},"metrics":{"type":"array","description":"List of metrics.","items":{"type":"object","$ref":"#\/definitions\/metric"},"x-example":""}},"required":["total","metrics"]},"collection":{"description":"Collection","type":"object","properties":{"$id":{"type":"string","description":"Collection ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"Collection read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"Collection write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"},"name":{"type":"string","description":"Collection name.","x-example":"My Collection"},"enabled":{"type":"boolean","description":"Collection enabled.","x-example":false},"permission":{"type":"string","description":"Collection permission model. Possible values: `document` or `collection`","x-example":"document"},"attributes":{"type":"array","description":"Collection attributes.","items":{"x-anyOf":[{"$ref":"#\/definitions\/attributeBoolean"},{"$ref":"#\/definitions\/attributeInteger"},{"$ref":"#\/definitions\/attributeFloat"},{"$ref":"#\/definitions\/attributeEmail"},{"$ref":"#\/definitions\/attributeEnum"},{"$ref":"#\/definitions\/attributeUrl"},{"$ref":"#\/definitions\/attributeIp"},{"$ref":"#\/definitions\/attributeString"}]},"x-example":{}},"indexes":{"type":"array","description":"Collection indexes.","items":{"type":"object","$ref":"#\/definitions\/index"},"x-example":{}}},"required":["$id","$read","$write","name","enabled","permission","attributes","indexes"]},"attributeList":{"description":"Attributes List","type":"object","properties":{"total":{"type":"integer","description":"Total number of attributes in the given collection.","x-example":5,"format":"int32"},"attributes":{"type":"array","description":"List of attributes.","items":{"x-anyOf":[{"$ref":"#\/definitions\/attributeBoolean"},{"$ref":"#\/definitions\/attributeInteger"},{"$ref":"#\/definitions\/attributeFloat"},{"$ref":"#\/definitions\/attributeEmail"},{"$ref":"#\/definitions\/attributeEnum"},{"$ref":"#\/definitions\/attributeUrl"},{"$ref":"#\/definitions\/attributeIp"},{"$ref":"#\/definitions\/attributeString"}]},"x-example":""}},"required":["total","attributes"]},"attributeString":{"description":"AttributeString","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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"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","required","size"]},"attributeInteger":{"description":"AttributeInteger","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"count"},"type":{"type":"string","description":"Attribute type.","x-example":"integer"},"status":{"type":"string","description":"Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"min":{"type":"integer","description":"Minimum value to enforce for new documents.","x-example":1,"format":"int32","x-nullable":true},"max":{"type":"integer","description":"Maximum value to enforce for new documents.","x-example":10,"format":"int32","x-nullable":true},"default":{"type":"integer","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":10,"format":"int32","x-nullable":true}},"required":["key","type","status","required"]},"attributeFloat":{"description":"AttributeFloat","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"percentageCompleted"},"type":{"type":"string","description":"Attribute type.","x-example":"double"},"status":{"type":"string","description":"Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"min":{"type":"number","description":"Minimum value to enforce for new documents.","x-example":1.5,"format":"double","x-nullable":true},"max":{"type":"number","description":"Maximum value to enforce for new documents.","x-example":10.5,"format":"double","x-nullable":true},"default":{"type":"number","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":2.5,"format":"double","x-nullable":true}},"required":["key","type","status","required"]},"attributeBoolean":{"description":"AttributeBoolean","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"isEnabled"},"type":{"type":"string","description":"Attribute type.","x-example":"boolean"},"status":{"type":"string","description":"Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"default":{"type":"boolean","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":false,"x-nullable":true}},"required":["key","type","status","required"]},"attributeEmail":{"description":"AttributeEmail","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"userEmail"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"format":{"type":"string","description":"String format.","x-example":"email"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"default@example.com","x-nullable":true}},"required":["key","type","status","required","format"]},"attributeEnum":{"description":"AttributeEnum","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"status"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"elements":{"type":"array","description":"Array of elements in enumerated type.","items":{"type":"string"},"x-example":"element"},"format":{"type":"string","description":"String format.","x-example":"enum"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"element","x-nullable":true}},"required":["key","type","status","required","elements","format"]},"attributeIp":{"description":"AttributeIP","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"ipAddress"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"format":{"type":"string","description":"String format.","x-example":"ip"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"192.0.2.0","x-nullable":true}},"required":["key","type","status","required","format"]},"attributeUrl":{"description":"AttributeURL","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"githubUrl"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"format":{"type":"string","description":"String format.","x-example":"url"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"http:\/\/example.com","x-nullable":true}},"required":["key","type","status","required","format"]},"index":{"description":"Index","type":"object","properties":{"key":{"type":"string","description":"Index Key.","x-example":"index1"},"type":{"type":"string","description":"Index type.","x-example":"primary"},"status":{"type":"string","description":"Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"attributes":{"type":"array","description":"Index attributes.","items":{"type":"string"},"x-example":[]},"orders":{"type":"array","description":"Index orders.","items":{"type":"string"},"x-example":[]}},"required":["key","type","status","attributes","orders"]},"document":{"description":"Document","type":"object","properties":{"$id":{"type":"string","description":"Document ID.","x-example":"5e5ea5c16897e"},"$collection":{"type":"string","description":"Collection ID.","x-example":"5e5ea5c15117e"},"$read":{"type":"array","description":"Document read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"Document write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"}},"additionalProperties":true,"required":["$id","$collection","$read","$write"]},"log":{"description":"Log","type":"object","properties":{"event":{"type":"string","description":"Event name.","x-example":"account.sessions.create"},"userId":{"type":"string","description":"User ID.","x-example":"610fc2f985ee0"},"userEmail":{"type":"string","description":"User Email.","x-example":"john@appwrite.io"},"userName":{"type":"string","description":"User Name.","x-example":"John Doe"},"mode":{"type":"string","description":"API mode when event triggered.","x-example":"admin"},"ip":{"type":"string","description":"IP session in use when the session was created.","x-example":"127.0.0.1"},"time":{"type":"integer","description":"Log creation time in Unix timestamp.","x-example":1592981250,"format":"int32"},"osCode":{"type":"string","description":"Operating system code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/os.json).","x-example":"Mac"},"osName":{"type":"string","description":"Operating system name.","x-example":"Mac"},"osVersion":{"type":"string","description":"Operating system version.","x-example":"Mac"},"clientType":{"type":"string","description":"Client type.","x-example":"browser"},"clientCode":{"type":"string","description":"Client code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/clients.json).","x-example":"CM"},"clientName":{"type":"string","description":"Client name.","x-example":"Chrome Mobile iOS"},"clientVersion":{"type":"string","description":"Client version.","x-example":"84.0"},"clientEngine":{"type":"string","description":"Client engine name.","x-example":"WebKit"},"clientEngineVersion":{"type":"string","description":"Client engine name.","x-example":"605.1.15"},"deviceName":{"type":"string","description":"Device name.","x-example":"smartphone"},"deviceBrand":{"type":"string","description":"Device brand name.","x-example":"Google"},"deviceModel":{"type":"string","description":"Device model name.","x-example":"Nexus 5"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"}},"required":["event","userId","userEmail","userName","mode","ip","time","osCode","osName","osVersion","clientType","clientCode","clientName","clientVersion","clientEngine","clientEngineVersion","deviceName","deviceBrand","deviceModel","countryCode","countryName"]},"user":{"description":"User","type":"object","properties":{"$id":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"User name.","x-example":"John Doe"},"password":{"type":"string","description":"Hashed user password.","x-example":"$argon2id$v=19$m=2048,t=4,p=3$aUZjLnliVWRINmFNTWMudg$5S+x+7uA31xFnrHFT47yFwcJeaP0w92L\/4LdgrVRXxE"},"hash":{"type":"string","description":"Password hashing algorithm.","x-example":"argon2"},"hashOptions":{"type":"string","description":"Password hashing algorithm configuration.","x-example":"{}"},"registration":{"type":"integer","description":"User registration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"status":{"type":"boolean","description":"User status. Pass `true` for enabled and `false` for disabled.","x-example":true},"passwordUpdate":{"type":"integer","description":"Unix timestamp of the most recent password update","x-example":1592981250,"format":"int32"},"email":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"emailVerification":{"type":"boolean","description":"Email verification status.","x-example":true},"prefs":{"type":"object","description":"User preferences as a key-value object","x-example":{"theme":"pink","timezone":"UTC"},"items":{"type":"object","$ref":"#\/definitions\/preferences"}}},"required":["$id","name","password","hash","hashOptions","registration","status","passwordUpdate","email","emailVerification","prefs"]},"account":{"description":"Account","type":"object","properties":{"$id":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"User name.","x-example":"John Doe"},"registration":{"type":"integer","description":"User registration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"status":{"type":"boolean","description":"User status. Pass `true` for enabled and `false` for disabled.","x-example":true},"passwordUpdate":{"type":"integer","description":"Unix timestamp of the most recent password update","x-example":1592981250,"format":"int32"},"email":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"emailVerification":{"type":"boolean","description":"Email verification status.","x-example":true},"prefs":{"type":"object","description":"User preferences as a key-value object","x-example":{"theme":"pink","timezone":"UTC"},"items":{"type":"object","$ref":"#\/definitions\/preferences"}}},"required":["$id","name","registration","status","passwordUpdate","email","emailVerification","prefs"]},"preferences":{"description":"Preferences","type":"object","additionalProperties":true},"session":{"description":"Session","type":"object","properties":{"$id":{"type":"string","description":"Session ID.","x-example":"5e5ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5bb8c16897e"},"expire":{"type":"integer","description":"Session expiration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"provider":{"type":"string","description":"Session Provider.","x-example":"email"},"providerUid":{"type":"string","description":"Session Provider User ID.","x-example":"user@example.com"},"providerAccessToken":{"type":"string","description":"Session Provider Access Token.","x-example":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"},"providerAccessTokenExpiry":{"type":"integer","description":"Date, the Unix timestamp of when the access token expires.","x-example":1592981250,"format":"int32"},"providerRefreshToken":{"type":"string","description":"Session Provider Refresh Token.","x-example":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"},"ip":{"type":"string","description":"IP in use when the session was created.","x-example":"127.0.0.1"},"osCode":{"type":"string","description":"Operating system code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/os.json).","x-example":"Mac"},"osName":{"type":"string","description":"Operating system name.","x-example":"Mac"},"osVersion":{"type":"string","description":"Operating system version.","x-example":"Mac"},"clientType":{"type":"string","description":"Client type.","x-example":"browser"},"clientCode":{"type":"string","description":"Client code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/clients.json).","x-example":"CM"},"clientName":{"type":"string","description":"Client name.","x-example":"Chrome Mobile iOS"},"clientVersion":{"type":"string","description":"Client version.","x-example":"84.0"},"clientEngine":{"type":"string","description":"Client engine name.","x-example":"WebKit"},"clientEngineVersion":{"type":"string","description":"Client engine name.","x-example":"605.1.15"},"deviceName":{"type":"string","description":"Device name.","x-example":"smartphone"},"deviceBrand":{"type":"string","description":"Device brand name.","x-example":"Google"},"deviceModel":{"type":"string","description":"Device model name.","x-example":"Nexus 5"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"},"current":{"type":"boolean","description":"Returns true if this the current user session.","x-example":true}},"required":["$id","userId","expire","provider","providerUid","providerAccessToken","providerAccessTokenExpiry","providerRefreshToken","ip","osCode","osName","osVersion","clientType","clientCode","clientName","clientVersion","clientEngine","clientEngineVersion","deviceName","deviceBrand","deviceModel","countryCode","countryName","current"]},"token":{"description":"Token","type":"object","properties":{"$id":{"type":"string","description":"Token ID.","x-example":"bb8ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5ea5c168bb8"},"secret":{"type":"string","description":"Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.","x-example":""},"expire":{"type":"integer","description":"Token expiration date in Unix timestamp.","x-example":1592981250,"format":"int32"}},"required":["$id","userId","secret","expire"]},"jwt":{"description":"JWT","type":"object","properties":{"jwt":{"type":"string","description":"JWT encoded string.","x-example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}},"required":["jwt"]},"locale":{"description":"Locale","type":"object","properties":{"ip":{"type":"string","description":"User IP address.","x-example":"127.0.0.1"},"countryCode":{"type":"string","description":"Country code in [ISO 3166-1](http:\/\/en.wikipedia.org\/wiki\/ISO_3166-1) two-character format","x-example":"US"},"country":{"type":"string","description":"Country name. This field support localization.","x-example":"United States"},"continentCode":{"type":"string","description":"Continent code. A two character continent code \"AF\" for Africa, \"AN\" for Antarctica, \"AS\" for Asia, \"EU\" for Europe, \"NA\" for North America, \"OC\" for Oceania, and \"SA\" for South America.","x-example":"NA"},"continent":{"type":"string","description":"Continent name. This field support localization.","x-example":"North America"},"eu":{"type":"boolean","description":"True if country is part of the Europian Union.","x-example":false},"currency":{"type":"string","description":"Currency code in [ISO 4217-1](http:\/\/en.wikipedia.org\/wiki\/ISO_4217) three-character format","x-example":"USD"}},"required":["ip","countryCode","country","continentCode","continent","eu","currency"]},"file":{"description":"File","type":"object","properties":{"$id":{"type":"string","description":"File ID.","x-example":"5e5ea5c16897e"},"bucketId":{"type":"string","description":"Bucket ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"File read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"File write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"},"name":{"type":"string","description":"File name.","x-example":"Pink.png"},"dateCreated":{"type":"integer","description":"File creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"signature":{"type":"string","description":"File MD5 signature.","x-example":"5d529fd02b544198ae075bd57c1762bb"},"mimeType":{"type":"string","description":"File mime type.","x-example":"image\/png"},"sizeOriginal":{"type":"integer","description":"File original size in bytes.","x-example":17890,"format":"int32"},"chunksTotal":{"type":"integer","description":"Total number of chunks available","x-example":17890,"format":"int32"},"chunksUploaded":{"type":"integer","description":"Total number of chunks uploaded","x-example":17890,"format":"int32"}},"required":["$id","bucketId","$read","$write","name","dateCreated","signature","mimeType","sizeOriginal","chunksTotal","chunksUploaded"]},"bucket":{"description":"Bucket","type":"object","properties":{"$id":{"type":"string","description":"Bucket ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"File read permissions.","items":{"type":"string"},"x-example":["role:all"]},"$write":{"type":"array","description":"File write permissions.","items":{"type":"string"},"x-example":["user:608f9da25e7e1"]},"permission":{"type":"string","description":"Bucket permission model. Possible values: `bucket` or `file`","x-example":"file"},"dateCreated":{"type":"integer","description":"Bucket creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"dateUpdated":{"type":"integer","description":"Bucket update date in Unix timestamp.","x-example":1592981250,"format":"int32"},"name":{"type":"string","description":"Bucket name.","x-example":"Documents"},"enabled":{"type":"boolean","description":"Bucket enabled.","x-example":false},"maximumFileSize":{"type":"integer","description":"Maximum file size supported.","x-example":100,"format":"int32"},"allowedFileExtensions":{"type":"array","description":"Allowed file extensions.","items":{"type":"string"},"x-example":["jpg","png"]},"encryption":{"type":"boolean","description":"Bucket is encrypted.","x-example":false},"antivirus":{"type":"boolean","description":"Virus scanning is enabled.","x-example":false}},"required":["$id","$read","$write","permission","dateCreated","dateUpdated","name","enabled","maximumFileSize","allowedFileExtensions","encryption","antivirus"]},"team":{"description":"Team","type":"object","properties":{"$id":{"type":"string","description":"Team ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Team name.","x-example":"VIP"},"dateCreated":{"type":"integer","description":"Team creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"total":{"type":"integer","description":"Total number of team members.","x-example":7,"format":"int32"}},"required":["$id","name","dateCreated","total"]},"membership":{"description":"Membership","type":"object","properties":{"$id":{"type":"string","description":"Membership ID.","x-example":"5e5ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"userName":{"type":"string","description":"User name.","x-example":"John Doe"},"userEmail":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"teamId":{"type":"string","description":"Team ID.","x-example":"5e5ea5c16897e"},"teamName":{"type":"string","description":"Team name.","x-example":"VIP"},"invited":{"type":"integer","description":"Date, the user has been invited to join the team in Unix timestamp.","x-example":1592981250,"format":"int32"},"joined":{"type":"integer","description":"Date, the user has accepted the invitation to join the team in Unix timestamp.","x-example":1592981250,"format":"int32"},"confirm":{"type":"boolean","description":"User confirmation status, true if the user has joined the team or false otherwise.","x-example":false},"roles":{"type":"array","description":"User list of roles","items":{"type":"string"},"x-example":"admin"}},"required":["$id","userId","userName","userEmail","teamId","teamName","invited","joined","confirm","roles"]},"function":{"description":"Function","type":"object","properties":{"$id":{"type":"string","description":"Function ID.","x-example":"5e5ea5c16897e"},"execute":{"type":"array","description":"Execution permissions.","items":{"type":"string"},"x-example":"role:member"},"name":{"type":"string","description":"Function name.","x-example":"My Function"},"dateCreated":{"type":"integer","description":"Function creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"dateUpdated":{"type":"integer","description":"Function update date in Unix timestamp.","x-example":1592981257,"format":"int32"},"status":{"type":"string","description":"Function status. Possible values: `disabled`, `enabled`","x-example":"enabled"},"runtime":{"type":"string","description":"Function execution runtime.","x-example":"python-3.8"},"deployment":{"type":"string","description":"Function's active deployment ID.","x-example":"5e5ea5c16897e"},"vars":{"type":"object","additionalProperties":true,"description":"Function environment variables.","x-example":{"key":"value"}},"events":{"type":"array","description":"Function trigger events.","items":{"type":"string"},"x-example":"account.create"},"schedule":{"type":"string","description":"Function execution schedult in CRON format.","x-example":"5 4 * * *"},"scheduleNext":{"type":"integer","description":"Function next scheduled execution date in Unix timestamp.","x-example":1592981292,"format":"int32"},"schedulePrevious":{"type":"integer","description":"Function next scheduled execution date in Unix timestamp.","x-example":1592981237,"format":"int32"},"timeout":{"type":"integer","description":"Function execution timeout in seconds.","x-example":1592981237,"format":"int32"}},"required":["$id","execute","name","dateCreated","dateUpdated","status","runtime","deployment","vars","events","schedule","scheduleNext","schedulePrevious","timeout"]},"runtime":{"description":"Runtime","type":"object","properties":{"$id":{"type":"string","description":"Runtime ID.","x-example":"python-3.8"},"name":{"type":"string","description":"Runtime Name.","x-example":"Python"},"version":{"type":"string","description":"Runtime version.","x-example":"3.8"},"base":{"type":"string","description":"Base Docker image used to build the runtime.","x-example":"python:3.8-alpine"},"image":{"type":"string","description":"Image name of Docker Hub.","x-example":"appwrite\\\/runtime-for-python:3.8"},"logo":{"type":"string","description":"Name of the logo image.","x-example":"python.png"},"supports":{"type":"array","description":"List of supported architectures.","items":{"type":"string"},"x-example":"amd64"}},"required":["$id","name","version","base","image","logo","supports"]},"deployment":{"description":"Deployment","type":"object","properties":{"$id":{"type":"string","description":"Deployment ID.","x-example":"5e5ea5c16897e"},"resourceId":{"type":"string","description":"Resource ID.","x-example":"5e5ea6g16897e"},"resourceType":{"type":"string","description":"Resource type.","x-example":"functions"},"dateCreated":{"type":"integer","description":"The deployment creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"entrypoint":{"type":"string","description":"The entrypoint file to use to execute the deployment code.","x-example":"enabled"},"size":{"type":"integer","description":"The code size in bytes.","x-example":128,"format":"int32"},"buildId":{"type":"string","description":"The current build ID.","x-example":"5e5ea5c16897e"},"activate":{"type":"boolean","description":"Whether the deployment should be automatically activated.","x-example":true},"status":{"type":"string","description":"The deployment status.","x-example":"enabled"},"buildStdout":{"type":"string","description":"The build stdout.","x-example":"enabled"},"buildStderr":{"type":"string","description":"The build stderr.","x-example":"enabled"}},"required":["$id","resourceId","resourceType","dateCreated","entrypoint","size","buildId","activate","status","buildStdout","buildStderr"]},"execution":{"description":"Execution","type":"object","properties":{"$id":{"type":"string","description":"Execution ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"Execution read permissions.","items":{"type":"string"},"x-example":"role:all"},"functionId":{"type":"string","description":"Function ID.","x-example":"5e5ea6g16897e"},"dateCreated":{"type":"integer","description":"The execution creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"trigger":{"type":"string","description":"The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.","x-example":"http"},"status":{"type":"string","description":"The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.","x-example":"processing"},"statusCode":{"type":"integer","description":"The script status code.","x-example":0,"format":"int32"},"response":{"type":"string","description":"The script response output string. Logs the last 4,000 characters of the execution response output.","x-example":""},"stderr":{"type":"string","description":"The script stderr output string. Logs the last 4,000 characters of the execution stderr output","x-example":""},"time":{"type":"number","description":"The script execution time in seconds.","x-example":0.4,"format":"double"}},"required":["$id","$read","functionId","dateCreated","trigger","status","statusCode","response","stderr","time"]},"project":{"description":"Project","type":"object","properties":{"$id":{"type":"string","description":"Project ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Project name.","x-example":"New Project"},"description":{"type":"string","description":"Project description.","x-example":"This is a new project."},"teamId":{"type":"string","description":"Project team ID.","x-example":"1592981250"},"logo":{"type":"string","description":"Project logo file ID.","x-example":"5f5c451b403cb"},"url":{"type":"string","description":"Project website URL.","x-example":"5f5c451b403cb"},"legalName":{"type":"string","description":"Company legal name.","x-example":"Company LTD."},"legalCountry":{"type":"string","description":"Country code in [ISO 3166-1](http:\/\/en.wikipedia.org\/wiki\/ISO_3166-1) two-character format.","x-example":"US"},"legalState":{"type":"string","description":"State name.","x-example":"New York"},"legalCity":{"type":"string","description":"City name.","x-example":"New York City."},"legalAddress":{"type":"string","description":"Company Address.","x-example":"620 Eighth Avenue, New York, NY 10018"},"legalTaxId":{"type":"string","description":"Company Tax ID.","x-example":"131102020"},"authLimit":{"type":"integer","description":"Max users allowed. 0 is unlimited.","x-example":100,"format":"int32"},"platforms":{"type":"array","description":"List of Platforms.","items":{"type":"object","$ref":"#\/definitions\/platform"},"x-example":{}},"webhooks":{"type":"array","description":"List of Webhooks.","items":{"type":"object","$ref":"#\/definitions\/webhook"},"x-example":{}},"keys":{"type":"array","description":"List of API Keys.","items":{"type":"object","$ref":"#\/definitions\/key"},"x-example":{}},"domains":{"type":"array","description":"List of Domains.","items":{"type":"object","$ref":"#\/definitions\/domain"},"x-example":{}},"providerAmazonAppid":{"type":"string","description":"Amazon OAuth app ID.","x-example":"123247283472834787438"},"providerAmazonSecret":{"type":"string","description":"Amazon OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerAppleAppid":{"type":"string","description":"Apple OAuth app ID.","x-example":"123247283472834787438"},"providerAppleSecret":{"type":"string","description":"Apple OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerAuth0Appid":{"type":"string","description":"Auth0 OAuth app ID.","x-example":"123247283472834787438"},"providerAuth0Secret":{"type":"string","description":"Auth0 OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerBitbucketAppid":{"type":"string","description":"BitBucket OAuth app ID.","x-example":"123247283472834787438"},"providerBitbucketSecret":{"type":"string","description":"BitBucket OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerBitlyAppid":{"type":"string","description":"Bitly OAuth app ID.","x-example":"123247283472834787438"},"providerBitlySecret":{"type":"string","description":"Bitly OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerBoxAppid":{"type":"string","description":"Box OAuth app ID.","x-example":"123247283472834787438"},"providerBoxSecret":{"type":"string","description":"Box OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerDailymotionAppid":{"type":"string","description":"Dailymotion OAuth app ID.","x-example":"123247283472834787438"},"providerDailymotionSecret":{"type":"string","description":"Dailymotion OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerDiscordAppid":{"type":"string","description":"Discord OAuth app ID.","x-example":"123247283472834787438"},"providerDiscordSecret":{"type":"string","description":"Discord OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerDropboxAppid":{"type":"string","description":"Dropbox OAuth app ID.","x-example":"123247283472834787438"},"providerDropboxSecret":{"type":"string","description":"Dropbox OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerFacebookAppid":{"type":"string","description":"Facebook OAuth app ID.","x-example":"123247283472834787438"},"providerFacebookSecret":{"type":"string","description":"Facebook OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerGithubAppid":{"type":"string","description":"GitHub OAuth app ID.","x-example":"123247283472834787438"},"providerGithubSecret":{"type":"string","description":"GitHub OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerGitlabAppid":{"type":"string","description":"GitLab OAuth app ID.","x-example":"123247283472834787438"},"providerGitlabSecret":{"type":"string","description":"GitLab OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerGoogleAppid":{"type":"string","description":"Google OAuth app ID.","x-example":"123247283472834787438"},"providerGoogleSecret":{"type":"string","description":"Google OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerLinkedinAppid":{"type":"string","description":"LinkedIn OAuth app ID.","x-example":"123247283472834787438"},"providerLinkedinSecret":{"type":"string","description":"LinkedIn OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerMicrosoftAppid":{"type":"string","description":"Microsoft OAuth app ID.","x-example":"123247283472834787438"},"providerMicrosoftSecret":{"type":"string","description":"Microsoft OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerNotionAppid":{"type":"string","description":"Notion OAuth app ID.","x-example":"123247283472834787438"},"providerNotionSecret":{"type":"string","description":"Notion OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerOktaAppid":{"type":"string","description":"Okta OAuth app ID.","x-example":"123247283472834787438"},"providerOktaSecret":{"type":"string","description":"Okta OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerPaypalAppid":{"type":"string","description":"PayPal OAuth app ID.","x-example":"123247283472834787438"},"providerPaypalSecret":{"type":"string","description":"PayPal OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerPaypalSandboxAppid":{"type":"string","description":"PayPal OAuth app ID.","x-example":"123247283472834787438"},"providerPaypalSandboxSecret":{"type":"string","description":"PayPal OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerSalesforceAppid":{"type":"string","description":"Salesforce OAuth app ID.","x-example":"123247283472834787438"},"providerSalesforceSecret":{"type":"string","description":"Salesforce OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerSlackAppid":{"type":"string","description":"Slack OAuth app ID.","x-example":"123247283472834787438"},"providerSlackSecret":{"type":"string","description":"Slack OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerSpotifyAppid":{"type":"string","description":"Spotify OAuth app ID.","x-example":"123247283472834787438"},"providerSpotifySecret":{"type":"string","description":"Spotify OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerStripeAppid":{"type":"string","description":"Stripe OAuth app ID.","x-example":"123247283472834787438"},"providerStripeSecret":{"type":"string","description":"Stripe OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerTradeshiftAppid":{"type":"string","description":"Tradeshift OAuth app ID.","x-example":"123247283472834787438"},"providerTradeshiftSecret":{"type":"string","description":"Tradeshift OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerTradeshiftBoxAppid":{"type":"string","description":"Tradeshift OAuth app ID.","x-example":"123247283472834787438"},"providerTradeshiftBoxSecret":{"type":"string","description":"Tradeshift OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerTwitchAppid":{"type":"string","description":"Twitch OAuth app ID.","x-example":"123247283472834787438"},"providerTwitchSecret":{"type":"string","description":"Twitch OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerWordpressAppid":{"type":"string","description":"WordPress OAuth app ID.","x-example":"123247283472834787438"},"providerWordpressSecret":{"type":"string","description":"WordPress OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerYahooAppid":{"type":"string","description":"Yahoo OAuth app ID.","x-example":"123247283472834787438"},"providerYahooSecret":{"type":"string","description":"Yahoo OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerYammerAppid":{"type":"string","description":"Yammer OAuth app ID.","x-example":"123247283472834787438"},"providerYammerSecret":{"type":"string","description":"Yammer OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerYandexAppid":{"type":"string","description":"Yandex OAuth app ID.","x-example":"123247283472834787438"},"providerYandexSecret":{"type":"string","description":"Yandex OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerZoomAppid":{"type":"string","description":"Zoom OAuth app ID.","x-example":"123247283472834787438"},"providerZoomSecret":{"type":"string","description":"Zoom OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"providerMockAppid":{"type":"string","description":"Mock OAuth app ID.","x-example":"123247283472834787438"},"providerMockSecret":{"type":"string","description":"Mock OAuth secret ID.","x-example":"djsgudsdsewe43434343dd34..."},"authEmailPassword":{"type":"boolean","description":"Email\/Password auth method status","x-example":true},"authUsersAuthMagicURL":{"type":"boolean","description":"Magic URL auth method status","x-example":true},"authAnonymous":{"type":"boolean","description":"Anonymous auth method status","x-example":true},"authInvites":{"type":"boolean","description":"Invites auth method status","x-example":true},"authJWT":{"type":"boolean","description":"JWT auth method status","x-example":true},"authPhone":{"type":"boolean","description":"Phone auth method status","x-example":true},"serviceStatusForAccount":{"type":"boolean","description":"Account service status","x-example":true},"serviceStatusForAvatars":{"type":"boolean","description":"Avatars service status","x-example":true},"serviceStatusForDatabase":{"type":"boolean","description":"Database service status","x-example":true},"serviceStatusForLocale":{"type":"boolean","description":"Locale service status","x-example":true},"serviceStatusForHealth":{"type":"boolean","description":"Health service status","x-example":true},"serviceStatusForStorage":{"type":"boolean","description":"Storage service status","x-example":true},"serviceStatusForTeams":{"type":"boolean","description":"Teams service status","x-example":true},"serviceStatusForUsers":{"type":"boolean","description":"Users service status","x-example":true},"serviceStatusForFunctions":{"type":"boolean","description":"Functions service status","x-example":true}},"required":["$id","name","description","teamId","logo","url","legalName","legalCountry","legalState","legalCity","legalAddress","legalTaxId","authLimit","platforms","webhooks","keys","domains","providerAmazonAppid","providerAmazonSecret","providerAppleAppid","providerAppleSecret","providerAuth0Appid","providerAuth0Secret","providerBitbucketAppid","providerBitbucketSecret","providerBitlyAppid","providerBitlySecret","providerBoxAppid","providerBoxSecret","providerDailymotionAppid","providerDailymotionSecret","providerDiscordAppid","providerDiscordSecret","providerDropboxAppid","providerDropboxSecret","providerFacebookAppid","providerFacebookSecret","providerGithubAppid","providerGithubSecret","providerGitlabAppid","providerGitlabSecret","providerGoogleAppid","providerGoogleSecret","providerLinkedinAppid","providerLinkedinSecret","providerMicrosoftAppid","providerMicrosoftSecret","providerNotionAppid","providerNotionSecret","providerOktaAppid","providerOktaSecret","providerPaypalAppid","providerPaypalSecret","providerPaypalSandboxAppid","providerPaypalSandboxSecret","providerSalesforceAppid","providerSalesforceSecret","providerSlackAppid","providerSlackSecret","providerSpotifyAppid","providerSpotifySecret","providerStripeAppid","providerStripeSecret","providerTradeshiftAppid","providerTradeshiftSecret","providerTradeshiftBoxAppid","providerTradeshiftBoxSecret","providerTwitchAppid","providerTwitchSecret","providerWordpressAppid","providerWordpressSecret","providerYahooAppid","providerYahooSecret","providerYammerAppid","providerYammerSecret","providerYandexAppid","providerYandexSecret","providerZoomAppid","providerZoomSecret","providerMockAppid","providerMockSecret","authEmailPassword","authUsersAuthMagicURL","authAnonymous","authInvites","authJWT","authPhone","serviceStatusForAccount","serviceStatusForAvatars","serviceStatusForDatabase","serviceStatusForLocale","serviceStatusForHealth","serviceStatusForStorage","serviceStatusForTeams","serviceStatusForUsers","serviceStatusForFunctions"]},"webhook":{"description":"Webhook","type":"object","properties":{"$id":{"type":"string","description":"Webhook ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Webhook name.","x-example":"My Webhook"},"url":{"type":"string","description":"Webhook URL endpoint.","x-example":"https:\/\/example.com\/webhook"},"events":{"type":"array","description":"Webhook trigger events.","items":{"type":"string"},"x-example":"database.collections.update"},"security":{"type":"boolean","description":"Indicated if SSL \/ TLS Certificate verification is enabled.","x-example":true},"httpUser":{"type":"string","description":"HTTP basic authentication username.","x-example":"username"},"httpPass":{"type":"string","description":"HTTP basic authentication password.","x-example":"password"},"signatureKey":{"type":"string","description":"Signature key which can be used to validated incoming","x-example":"ad3d581ca230e2b7059c545e5a"}},"required":["$id","name","url","events","security","httpUser","httpPass","signatureKey"]},"key":{"description":"Key","type":"object","properties":{"$id":{"type":"string","description":"Key ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Key name.","x-example":"My API Key"},"expire":{"type":"integer","description":"Key expiration in Unix timestamp.","x-example":"1653990687","format":"int32"},"scopes":{"type":"array","description":"Allowed permission scopes.","items":{"type":"string"},"x-example":"users.read"},"secret":{"type":"string","description":"Secret key.","x-example":"919c2d18fb5d4...a2ae413da83346ad2"}},"required":["$id","name","expire","scopes","secret"]},"domain":{"description":"Domain","type":"object","properties":{"$id":{"type":"string","description":"Domain ID.","x-example":"5e5ea5c16897e"},"domain":{"type":"string","description":"Domain name.","x-example":"appwrite.company.com"},"registerable":{"type":"string","description":"Registerable domain name.","x-example":"company.com"},"tld":{"type":"string","description":"TLD name.","x-example":"com"},"verification":{"type":"boolean","description":"Verification process status.","x-example":true},"certificateId":{"type":"string","description":"Certificate ID.","x-example":"6ejea5c13377e"}},"required":["$id","domain","registerable","tld","verification","certificateId"]},"platform":{"description":"Platform","type":"object","properties":{"$id":{"type":"string","description":"Platform ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Platform name.","x-example":"My Web App"},"type":{"type":"string","description":"Platform type. Possible values are: web, flutter-ios, flutter-android, ios, android, and unity.","x-example":"My Web App"},"key":{"type":"string","description":"Platform Key. iOS bundle ID or Android package name. Empty string for other platforms.","x-example":"com.company.appname"},"store":{"type":"string","description":"App store or Google Play store ID.","x-example":""},"hostname":{"type":"string","description":"Web app hostname. Empty string for other platforms.","x-example":true},"httpUser":{"type":"string","description":"HTTP basic authentication username.","x-example":"username"},"httpPass":{"type":"string","description":"HTTP basic authentication password.","x-example":"password"}},"required":["$id","name","type","key","store","hostname","httpUser","httpPass"]},"country":{"description":"Country","type":"object","properties":{"name":{"type":"string","description":"Country name.","x-example":"United States"},"code":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"}},"required":["name","code"]},"continent":{"description":"Continent","type":"object","properties":{"name":{"type":"string","description":"Continent name.","x-example":"Europe"},"code":{"type":"string","description":"Continent two letter code.","x-example":"EU"}},"required":["name","code"]},"language":{"description":"Language","type":"object","properties":{"name":{"type":"string","description":"Language name.","x-example":"Italian"},"code":{"type":"string","description":"Language two-character ISO 639-1 codes.","x-example":"it"},"nativeName":{"type":"string","description":"Language native name.","x-example":"Italiano"}},"required":["name","code","nativeName"]},"currency":{"description":"Currency","type":"object","properties":{"symbol":{"type":"string","description":"Currency symbol.","x-example":"$"},"name":{"type":"string","description":"Currency name.","x-example":"US dollar"},"symbolNative":{"type":"string","description":"Currency native symbol.","x-example":"$"},"decimalDigits":{"type":"integer","description":"Number of decimal digits.","x-example":2,"format":"int32"},"rounding":{"type":"number","description":"Currency digit rounding.","x-example":0,"format":"double"},"code":{"type":"string","description":"Currency code in [ISO 4217-1](http:\/\/en.wikipedia.org\/wiki\/ISO_4217) three-character format.","x-example":"USD"},"namePlural":{"type":"string","description":"Currency plural name","x-example":"US dollars"}},"required":["symbol","name","symbolNative","decimalDigits","rounding","code","namePlural"]},"phone":{"description":"Phone","type":"object","properties":{"code":{"type":"string","description":"Phone code.","x-example":"+1"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"}},"required":["code","countryCode","countryName"]},"healthAntivirus":{"description":"Health Antivirus","type":"object","properties":{"version":{"type":"string","description":"Antivirus version.","x-example":"1.0.0"},"status":{"type":"string","description":"Antivirus status. Possible values can are: `disabled`, `offline`, `online`","x-example":"online"}},"required":["version","status"]},"healthQueue":{"description":"Health Queue","type":"object","properties":{"size":{"type":"integer","description":"Amount of actions in the queue.","x-example":8,"format":"int32"}},"required":["size"]},"healthStatus":{"description":"Health Status","type":"object","properties":{"ping":{"type":"integer","description":"Duration in milliseconds how long the health check took.","x-example":128,"format":"int32"},"status":{"type":"string","description":"Service status. Possible values can are: `pass`, `fail`","x-example":"pass"}},"required":["ping","status"]},"healthTime":{"description":"Health Time","type":"object","properties":{"remoteTime":{"type":"integer","description":"Current unix timestamp on trustful remote server.","x-example":1639490751,"format":"int32"},"localTime":{"type":"integer","description":"Current unix timestamp of local server where Appwrite runs.","x-example":1639490844,"format":"int32"},"diff":{"type":"integer","description":"Difference of unix remote and local timestamps in milliseconds.","x-example":93,"format":"int32"}},"required":["remoteTime","localTime","diff"]},"usageDatabase":{"description":"UsageDatabase","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"documentsCount":{"type":"array","description":"Aggregated stats for total number of documents.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"collectionsCount":{"type":"array","description":"Aggregated stats for total number of collections.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"documentsCreate":{"type":"array","description":"Aggregated stats for documents created.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"documentsRead":{"type":"array","description":"Aggregated stats for documents read.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"documentsUpdate":{"type":"array","description":"Aggregated stats for documents updated.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"documentsDelete":{"type":"array","description":"Aggregated stats for documents deleted.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"collectionsCreate":{"type":"array","description":"Aggregated stats for collections created.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"collectionsRead":{"type":"array","description":"Aggregated stats for collections read.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"collectionsUpdate":{"type":"array","description":"Aggregated stats for collections updated.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"collectionsDelete":{"type":"array","description":"Aggregated stats for collections delete.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}}},"required":["range","documentsCount","collectionsCount","documentsCreate","documentsRead","documentsUpdate","documentsDelete","collectionsCreate","collectionsRead","collectionsUpdate","collectionsDelete"]},"usageCollection":{"description":"UsageCollection","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"documentsCount":{"type":"array","description":"Aggregated stats for total number of documents.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"documentsCreate":{"type":"array","description":"Aggregated stats for documents created.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"documentsRead":{"type":"array","description":"Aggregated stats for documents read.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"documentsUpdate":{"type":"array","description":"Aggregated stats for documents updated.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"documentsDelete":{"type":"array","description":"Aggregated stats for documents deleted.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}}},"required":["range","documentsCount","documentsCreate","documentsRead","documentsUpdate","documentsDelete"]},"usageUsers":{"description":"UsageUsers","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"usersCount":{"type":"array","description":"Aggregated stats for total number of users.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"usersCreate":{"type":"array","description":"Aggregated stats for users created.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"usersRead":{"type":"array","description":"Aggregated stats for users read.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"usersUpdate":{"type":"array","description":"Aggregated stats for users updated.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"usersDelete":{"type":"array","description":"Aggregated stats for users deleted.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"sessionsCreate":{"type":"array","description":"Aggregated stats for sessions created.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"sessionsProviderCreate":{"type":"array","description":"Aggregated stats for sessions created for a provider ( email, anonymous or oauth2 ).","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"sessionsDelete":{"type":"array","description":"Aggregated stats for sessions deleted.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}}},"required":["range","usersCount","usersCreate","usersRead","usersUpdate","usersDelete","sessionsCreate","sessionsProviderCreate","sessionsDelete"]},"usageStorage":{"description":"StorageUsage","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"filesStorage":{"type":"array","description":"Aggregated stats for the occupied storage size by files (in bytes).","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"tagsStorage":{"type":"array","description":"Aggregated stats for the occupied storage size by tags (in bytes).","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"filesCount":{"type":"array","description":"Aggregated stats for total number of files.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"bucketsCount":{"type":"array","description":"Aggregated stats for total number of buckets.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"bucketsCreate":{"type":"array","description":"Aggregated stats for buckets created.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"bucketsRead":{"type":"array","description":"Aggregated stats for buckets read.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"bucketsUpdate":{"type":"array","description":"Aggregated stats for buckets updated.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"bucketsDelete":{"type":"array","description":"Aggregated stats for buckets deleted.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"filesCreate":{"type":"array","description":"Aggregated stats for files created.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"filesRead":{"type":"array","description":"Aggregated stats for files read.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"filesUpdate":{"type":"array","description":"Aggregated stats for files updated.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"filesDelete":{"type":"array","description":"Aggregated stats for files deleted.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}}},"required":["range","filesStorage","tagsStorage","filesCount","bucketsCount","bucketsCreate","bucketsRead","bucketsUpdate","bucketsDelete","filesCreate","filesRead","filesUpdate","filesDelete"]},"usageBuckets":{"description":"UsageBuckets","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"filesCount":{"type":"array","description":"Aggregated stats for total number of files in this bucket.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"filesStorage":{"type":"array","description":"Aggregated stats for total storage of files in this bucket.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"filesCreate":{"type":"array","description":"Aggregated stats for files created.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"filesRead":{"type":"array","description":"Aggregated stats for files read.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"filesUpdate":{"type":"array","description":"Aggregated stats for files updated.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"filesDelete":{"type":"array","description":"Aggregated stats for files deleted.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}}},"required":["range","filesCount","filesStorage","filesCreate","filesRead","filesUpdate","filesDelete"]},"usageFunctions":{"description":"UsageFunctions","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"functionsExecutions":{"type":"array","description":"Aggregated stats for function executions.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"functionsFailures":{"type":"array","description":"Aggregated stats for function execution failures.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"functionsCompute":{"type":"array","description":"Aggregated stats for function execution duration.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}}},"required":["range","functionsExecutions","functionsFailures","functionsCompute"]},"usageProject":{"description":"UsageProject","type":"object","properties":{"range":{"type":"string","description":"The time range of the usage stats.","x-example":"30d"},"requests":{"type":"array","description":"Aggregated stats for number of requests.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"network":{"type":"array","description":"Aggregated stats for consumed bandwidth.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"functions":{"type":"array","description":"Aggregated stats for function executions.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"documents":{"type":"array","description":"Aggregated stats for number of documents.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"collections":{"type":"array","description":"Aggregated stats for number of collections.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"users":{"type":"array","description":"Aggregated stats for number of users.","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}},"storage":{"type":"array","description":"Aggregated stats for the occupied storage size (in bytes).","items":{"type":"object","$ref":"#\/definitions\/metricList"},"x-example":{}}},"required":["range","requests","network","functions","documents","collections","users","storage"]}},"externalDocs":{"description":"Full API docs, specs and tutorials","url":"https:\/\/appwrite.io\/docs"}} \ No newline at end of file diff --git a/app/config/specs/swagger2-0.15.x-server.json b/app/config/specs/swagger2-0.15.x-server.json deleted file mode 100644 index 7f4bcab5c9..0000000000 --- a/app/config/specs/swagger2-0.15.x-server.json +++ /dev/null @@ -1 +0,0 @@ -{"swagger":"2.0","info":{"version":"0.15.0","title":"Appwrite","description":"Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https:\/\/appwrite.io\/docs](https:\/\/appwrite.io\/docs)","termsOfService":"https:\/\/appwrite.io\/policy\/terms","contact":{"name":"Appwrite Team","url":"https:\/\/appwrite.io\/support","email":"team@appwrite.io"},"license":{"name":"BSD-3-Clause","url":"https:\/\/raw.githubusercontent.com\/appwrite\/appwrite\/master\/LICENSE"}},"host":"HOSTNAME","basePath":"\/v1","schemes":["https"],"consumes":["application\/json","multipart\/form-data"],"produces":["application\/json"],"securityDefinitions":{"Project":{"type":"apiKey","name":"X-Appwrite-Project","description":"Your project ID","in":"header","x-appwrite":{"demo":"5df5acd0d48c2"}},"Key":{"type":"apiKey","name":"X-Appwrite-Key","description":"Your secret API key","in":"header","x-appwrite":{"demo":"919c2d18fb5d4...a2ae413da83346ad2"}},"JWT":{"type":"apiKey","name":"X-Appwrite-JWT","description":"Your secret JSON Web Token","in":"header","x-appwrite":{"demo":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."}},"Locale":{"type":"apiKey","name":"X-Appwrite-Locale","description":"","in":"header","x-appwrite":{"demo":"en"}}},"paths":{"\/account":{"get":{"summary":"Get Account","operationId":"accountGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Get currently logged in user data as JSON object.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"get","weight":49,"cookies":false,"type":"","demo":"account\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/email":{"patch":{"summary":"Update Account Email","operationId":"accountUpdateEmail","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use the send confirmation email endpoint again to send the confirmation email. For security measures, user password is required to complete this request.\nThis endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.\n","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updateEmail","weight":56,"cookies":false,"type":"","demo":"account\/update-email.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-email.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password. Must be at least 8 chars.","default":null,"x-example":"password"}},"required":["email","password"]}}]}},"\/account\/logs":{"get":{"summary":"Get Account Logs","operationId":"accountGetLogs","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Get currently logged in user list of latest security activity logs. Each log returns user IP address, location and date and time of log.","responses":{"200":{"description":"Logs List","schema":{"$ref":"#\/definitions\/logList"}}},"x-appwrite":{"method":"getLogs","weight":52,"cookies":false,"type":"","demo":"account\/get-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"}]}},"\/account\/name":{"patch":{"summary":"Update Account Name","operationId":"accountUpdateName","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Update currently logged in user account name.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updateName","weight":54,"cookies":false,"type":"","demo":"account\/update-name.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-name.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"User name. Max length: 128 chars.","default":null,"x-example":"[NAME]"}},"required":["name"]}}]}},"\/account\/password":{"patch":{"summary":"Update Account Password","operationId":"accountUpdatePassword","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updatePassword","weight":55,"cookies":false,"type":"","demo":"account\/update-password.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-password.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"password":{"type":"string","description":"New user password. Must be at least 8 chars.","default":null,"x-example":"password"},"oldPassword":{"type":"string","description":"Current user password. Must be at least 8 chars.","default":"","x-example":"password"}},"required":["password"]}}]}},"\/account\/prefs":{"get":{"summary":"Get Account Preferences","operationId":"accountGetPrefs","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Get currently logged in user preferences as a key-value object.","responses":{"200":{"description":"Preferences","schema":{"$ref":"#\/definitions\/preferences"}}},"x-appwrite":{"method":"getPrefs","weight":50,"cookies":false,"type":"","demo":"account\/get-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}]},"patch":{"summary":"Update Account Preferences","operationId":"accountUpdatePrefs","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Update currently logged in user account preferences. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updatePrefs","weight":57,"cookies":false,"type":"","demo":"account\/update-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"prefs":{"type":"object","description":"Prefs key-value JSON object.","default":{},"x-example":"{}"}},"required":["prefs"]}}]}},"\/account\/recovery":{"post":{"summary":"Create Password Recovery","operationId":"accountCreateRecovery","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Sends the user an email with a temporary secret key for password reset. When the user clicks the confirmation link he is redirected back to your app password reset URL with the secret key and email address values attached to the URL query string. Use the query string params to submit a request to the [PUT \/account\/recovery](\/docs\/client\/account#accountUpdateRecovery) endpoint to complete the process. The verification link sent to the user's email address is valid for 1 hour.","responses":{"201":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"createRecovery","weight":62,"cookies":false,"type":"","demo":"account\/create-recovery.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-recovery.md","rate-limit":10,"rate-time":3600,"rate-key":["url:{url},email:{param-email}","ip:{ip}"],"scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"url":{"type":"string","description":"URL to redirect the user back to your app from the recovery email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","default":null,"x-example":"https:\/\/example.com"}},"required":["email","url"]}}]},"put":{"summary":"Create Password Recovery (confirmation)","operationId":"accountUpdateRecovery","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to complete the user account password reset. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST \/account\/recovery](\/docs\/client\/account#accountCreateRecovery) endpoint.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.","responses":{"200":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"updateRecovery","weight":63,"cookies":false,"type":"","demo":"account\/update-recovery.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-recovery.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","default":null,"x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid reset token.","default":null,"x-example":"[SECRET]"},"password":{"type":"string","description":"New user password. Must be at least 8 chars.","default":null,"x-example":"password"},"passwordAgain":{"type":"string","description":"Repeat new user password. Must be at least 8 chars.","default":null,"x-example":"password"}},"required":["userId","secret","password","passwordAgain"]}}]}},"\/account\/sessions":{"get":{"summary":"Get Account Sessions","operationId":"accountGetSessions","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Get currently logged in user list of active sessions across different devices.","responses":{"200":{"description":"Sessions List","schema":{"$ref":"#\/definitions\/sessionList"}}},"x-appwrite":{"method":"getSessions","weight":51,"cookies":false,"type":"","demo":"account\/get-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}]},"delete":{"summary":"Delete All Account Sessions","operationId":"accountDeleteSessions","consumes":["application\/json"],"produces":[],"tags":["account"],"description":"Delete all sessions from the user account and remove any sessions cookies from the end client.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSessions","weight":61,"cookies":false,"type":"","demo":"account\/delete-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-sessions.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/sessions\/{sessionId}":{"get":{"summary":"Get Session By ID","operationId":"accountGetSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.","responses":{"200":{"description":"Session","schema":{"$ref":"#\/definitions\/session"}}},"x-appwrite":{"method":"getSession","weight":53,"cookies":false,"type":"","demo":"account\/get-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/get-session.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to get the current device session.","required":true,"type":"string","x-example":"[SESSION_ID]","in":"path"}]},"patch":{"summary":"Update Session (Refresh Tokens)","operationId":"accountUpdateSession","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Access tokens have limited lifespan and expire to mitigate security risks. If session was created using an OAuth provider, this route can be used to \"refresh\" the access token.","responses":{"200":{"description":"Session","schema":{"$ref":"#\/definitions\/session"}}},"x-appwrite":{"method":"updateSession","weight":60,"cookies":false,"type":"","demo":"account\/update-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-session.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to update the current device session.","required":true,"type":"string","x-example":"[SESSION_ID]","in":"path"}]},"delete":{"summary":"Delete Account Session","operationId":"accountDeleteSession","consumes":["application\/json"],"produces":[],"tags":["account"],"description":"Use this endpoint to log out the currently logged in user from all their account sessions across all of their different devices. When using the Session ID argument, only the unique session ID provided is deleted.\n","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSession","weight":59,"cookies":false,"type":"","demo":"account\/delete-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-session.md","rate-limit":100,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"sessionId","description":"Session ID. Use the string 'current' to delete the current device session.","required":true,"type":"string","x-example":"[SESSION_ID]","in":"path"}]}},"\/account\/status":{"patch":{"summary":"Update Account Status","operationId":"accountUpdateStatus","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Block the currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. To completely delete a user, use the Users API instead.","responses":{"200":{"description":"Account","schema":{"$ref":"#\/definitions\/account"}}},"x-appwrite":{"method":"updateStatus","weight":58,"cookies":false,"type":"","demo":"account\/update-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}]}},"\/account\/verification":{"post":{"summary":"Create Email Verification","operationId":"accountCreateVerification","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](\/docs\/client\/account#accountUpdateVerification). The verification link sent to the user's email address is valid for 7 days.\n\nPlease note that in order to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.\n","responses":{"201":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"createVerification","weight":64,"cookies":false,"type":"","demo":"account\/create-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-verification.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{userId}","scope":"account","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"url":{"type":"string","description":"URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","default":null,"x-example":"https:\/\/example.com"}},"required":["url"]}}]},"put":{"summary":"Create Email Verification (confirmation)","operationId":"accountUpdateVerification","consumes":["application\/json"],"produces":["application\/json"],"tags":["account"],"description":"Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.","responses":{"200":{"description":"Token","schema":{"$ref":"#\/definitions\/token"}}},"x-appwrite":{"method":"updateVerification","weight":65,"cookies":false,"type":"","demo":"account\/update-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-verification.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},userId:{param-userId}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","default":null,"x-example":"[USER_ID]"},"secret":{"type":"string","description":"Valid verification token.","default":null,"x-example":"[SECRET]"}},"required":["userId","secret"]}}]}},"\/avatars\/browsers\/{code}":{"get":{"summary":"Get Browser Icon","operationId":"avatarsGetBrowser","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET \/account\/sessions](\/docs\/client\/account#accountGetSessions) endpoint. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getBrowser","weight":67,"cookies":false,"type":"location","demo":"avatars\/get-browser.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-browser.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"code","description":"Browser Code.","required":true,"type":"string","x-example":"aa","in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"}]}},"\/avatars\/credit-cards\/{code}":{"get":{"summary":"Get Credit Card Icon","operationId":"avatarsGetCreditCard","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getCreditCard","weight":66,"cookies":false,"type":"location","demo":"avatars\/get-credit-card.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-credit-card.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"code","description":"Credit Card Code. Possible values: amex, argencard, cabal, censosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.","required":true,"type":"string","x-example":"amex","in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"}]}},"\/avatars\/favicon":{"get":{"summary":"Get Favicon","operationId":"avatarsGetFavicon","consumes":["application\/json"],"produces":["image\/*"],"tags":["avatars"],"description":"Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getFavicon","weight":70,"cookies":false,"type":"location","demo":"avatars\/get-favicon.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-favicon.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"url","description":"Website URL which you want to fetch the favicon from.","required":true,"type":"string","format":"url","x-example":"https:\/\/example.com","in":"query"}]}},"\/avatars\/flags\/{code}":{"get":{"summary":"Get Country Flag","operationId":"avatarsGetFlag","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getFlag","weight":68,"cookies":false,"type":"location","demo":"avatars\/get-flag.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-flag.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"code","description":"Country Code. ISO Alpha-2 country code format.","required":true,"type":"string","x-example":"af","in":"path"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"quality","description":"Image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"}]}},"\/avatars\/image":{"get":{"summary":"Get Image from URL","operationId":"avatarsGetImage","consumes":["application\/json"],"produces":["image\/*"],"tags":["avatars"],"description":"Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make sure a 3rd party image is properly served using a TLS protocol.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 400x400px.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getImage","weight":69,"cookies":false,"type":"location","demo":"avatars\/get-image.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-image.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"url","description":"Image URL which you want to crop.","required":true,"type":"string","format":"url","x-example":"https:\/\/example.com","in":"query"},{"name":"width","description":"Resize preview image width, Pass an integer between 0 to 2000. Defaults to 400.","required":false,"type":"integer","format":"int32","x-example":0,"default":400,"in":"query"},{"name":"height","description":"Resize preview image height, Pass an integer between 0 to 2000. Defaults to 400.","required":false,"type":"integer","format":"int32","x-example":0,"default":400,"in":"query"}]}},"\/avatars\/initials":{"get":{"summary":"Get User Initials","operationId":"avatarsGetInitials","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"Use this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user name if you pass the 'name' parameter. If no name is given and no user is logged, an empty avatar will be returned.\n\nYou can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user's initials when reloading the same theme will always return for the same initials.\n\nWhen one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getInitials","weight":72,"cookies":false,"type":"location","demo":"avatars\/get-initials.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-initials.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"name","description":"Full Name. When empty, current user name or email will be used. Max length: 128 chars.","required":false,"type":"string","x-example":"[NAME]","default":"","in":"query"},{"name":"width","description":"Image width. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":500,"in":"query"},{"name":"height","description":"Image height. Pass an integer between 0 to 2000. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":500,"in":"query"},{"name":"color","description":"Changes text color. By default a random color will be picked and stay will persistent to the given name.","required":false,"type":"string","default":"","in":"query"},{"name":"background","description":"Changes background color. By default a random color will be picked and stay will persistent to the given name.","required":false,"type":"string","default":"","in":"query"}]}},"\/avatars\/qr":{"get":{"summary":"Get QR Code","operationId":"avatarsGetQR","consumes":["application\/json"],"produces":["image\/png"],"tags":["avatars"],"description":"Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.\n","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getQR","weight":71,"cookies":false,"type":"location","demo":"avatars\/get-q-r.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"avatars.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"text","description":"Plain text to be converted to QR code image.","required":true,"type":"string","x-example":"[TEXT]","in":"query"},{"name":"size","description":"QR code size. Pass an integer between 1 to 1000. Defaults to 400.","required":false,"type":"integer","format":"int32","x-example":1,"default":400,"in":"query"},{"name":"margin","description":"Margin from edge. Pass an integer between 0 to 10. Defaults to 1.","required":false,"type":"integer","format":"int32","x-example":0,"default":1,"in":"query"},{"name":"download","description":"Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0.","required":false,"type":"boolean","x-example":false,"default":false,"in":"query"}]}},"\/database\/collections":{"get":{"summary":"List Collections","operationId":"databaseListCollections","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Get a list of all the user collections. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's collections. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Collections List","schema":{"$ref":"#\/definitions\/collectionList"}}},"x-appwrite":{"method":"listCollections","weight":74,"cookies":false,"type":"","demo":"database\/list-collections.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-collections.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of collection to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the collection used as the starting point for the query, excluding the collection itself. Should be used for efficient pagination when working with large sets of data.","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Collection","operationId":"databaseCreateCollection","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a new Collection.","responses":{"201":{"description":"Collection","schema":{"$ref":"#\/definitions\/collection"}}},"x-appwrite":{"method":"createCollection","weight":73,"cookies":false,"type":"","demo":"database\/create-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"collectionId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[COLLECTION_ID]"},"name":{"type":"string","description":"Collection name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"permission":{"type":"string","description":"Specifies the permissions model used in this collection, which accepts either 'collection' or 'document'. For 'collection' level permission, the permissions specified in read and write params are applied to all documents in the collection. For 'document' level permissions, read and write permissions are specified in each document. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"document"},"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}}},"required":["collectionId","name","permission","read","write"]}}]}},"\/database\/collections\/{collectionId}":{"get":{"summary":"Get Collection","operationId":"databaseGetCollection","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Get a collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.","responses":{"200":{"description":"Collection","schema":{"$ref":"#\/definitions\/collection"}}},"x-appwrite":{"method":"getCollection","weight":75,"cookies":false,"type":"","demo":"database\/get-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"}]},"put":{"summary":"Update Collection","operationId":"databaseUpdateCollection","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Update a collection by its unique ID.","responses":{"200":{"description":"Collection","schema":{"$ref":"#\/definitions\/collection"}}},"x-appwrite":{"method":"updateCollection","weight":79,"cookies":false,"type":"","demo":"database\/update-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/update-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"Collection name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"permission":{"type":"string","description":"Permissions type model to use for reading documents in this collection. You can use collection-level permission set once on the collection using the `read` and `write` params, or you can set document-level permission where each document read and write params will decide who has access to read and write to each document individually. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"document"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"enabled":{"type":"boolean","description":"Is collection enabled?","default":true,"x-example":false}},"required":["name","permission"]}}]},"delete":{"summary":"Delete Collection","operationId":"databaseDeleteCollection","consumes":["application\/json"],"produces":[],"tags":["database"],"description":"Delete a collection by its unique ID. Only users with write permissions have access to delete this resource.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteCollection","weight":80,"cookies":false,"type":"","demo":"database\/delete-collection.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-collection.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"}]}},"\/database\/collections\/{collectionId}\/attributes":{"get":{"summary":"List Attributes","operationId":"databaseListAttributes","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"200":{"description":"Attributes List","schema":{"$ref":"#\/definitions\/attributeList"}}},"x-appwrite":{"method":"listAttributes","weight":89,"cookies":false,"type":"","demo":"database\/list-attributes.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-attributes.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"}]}},"\/database\/collections\/{collectionId}\/attributes\/boolean":{"post":{"summary":"Create Boolean Attribute","operationId":"databaseCreateBooleanAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a boolean attribute.\n","responses":{"201":{"description":"AttributeBoolean","schema":{"$ref":"#\/definitions\/attributeBoolean"}}},"x-appwrite":{"method":"createBooleanAttribute","weight":88,"cookies":false,"type":"","demo":"database\/create-boolean-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-boolean-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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":"boolean","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","default":null,"x-example":false},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/email":{"post":{"summary":"Create Email Attribute","operationId":"databaseCreateEmailAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create an email attribute.\n","responses":{"201":{"description":"AttributeEmail","schema":{"$ref":"#\/definitions\/attributeEmail"}}},"x-appwrite":{"method":"createEmailAttribute","weight":82,"cookies":false,"type":"","demo":"database\/create-email-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-email-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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":"email@example.com"},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/enum":{"post":{"summary":"Create Enum Attribute","operationId":"databaseCreateEnumAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"201":{"description":"AttributeEnum","schema":{"$ref":"#\/definitions\/attributeEnum"}}},"x-appwrite":{"method":"createEnumAttribute","weight":83,"cookies":false,"type":"","demo":"database\/create-enum-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-attribute-enum.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","default":null,"x-example":null},"elements":{"type":"array","description":"Array of elements in enumerated type. Uses length of longest element to determine size. Maximum of 100 elements are allowed, each 1024 characters long.","default":null,"x-example":null,"items":{"type":"string"}},"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":"[DEFAULT]"},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","elements","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/float":{"post":{"summary":"Create Float Attribute","operationId":"databaseCreateFloatAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a float attribute. Optionally, minimum and maximum values can be provided.\n","responses":{"201":{"description":"AttributeFloat","schema":{"$ref":"#\/definitions\/attributeFloat"}}},"x-appwrite":{"method":"createFloatAttribute","weight":87,"cookies":false,"type":"","demo":"database\/create-float-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-float-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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},"min":{"type":"number","description":"Minimum value to enforce on new documents","default":null,"x-example":null},"max":{"type":"number","description":"Maximum value to enforce on new documents","default":null,"x-example":null},"default":{"type":"number","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","default":null,"x-example":null},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/integer":{"post":{"summary":"Create Integer Attribute","operationId":"databaseCreateIntegerAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create an integer attribute. Optionally, minimum and maximum values can be provided.\n","responses":{"201":{"description":"AttributeInteger","schema":{"$ref":"#\/definitions\/attributeInteger"}}},"x-appwrite":{"method":"createIntegerAttribute","weight":86,"cookies":false,"type":"","demo":"database\/create-integer-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-integer-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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},"min":{"type":"integer","description":"Minimum value to enforce on new documents","default":null,"x-example":null},"max":{"type":"integer","description":"Maximum value to enforce on new documents","default":null,"x-example":null},"default":{"type":"integer","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","default":null,"x-example":null},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/ip":{"post":{"summary":"Create IP Address Attribute","operationId":"databaseCreateIpAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create IP address attribute.\n","responses":{"201":{"description":"AttributeIP","schema":{"$ref":"#\/definitions\/attributeIp"}}},"x-appwrite":{"method":"createIpAttribute","weight":84,"cookies":false,"type":"","demo":"database\/create-ip-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-ip-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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":null},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/string":{"post":{"summary":"Create String Attribute","operationId":"databaseCreateStringAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a string attribute.\n","responses":{"201":{"description":"AttributeString","schema":{"$ref":"#\/definitions\/attributeString"}}},"x-appwrite":{"method":"createStringAttribute","weight":81,"cookies":false,"type":"","demo":"database\/create-string-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-string-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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 text attributes, in number of characters.","default":null,"x-example":1},"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":"[DEFAULT]"},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","size","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/url":{"post":{"summary":"Create URL Attribute","operationId":"databaseCreateUrlAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a URL attribute.\n","responses":{"201":{"description":"AttributeURL","schema":{"$ref":"#\/definitions\/attributeUrl"}}},"x-appwrite":{"method":"createUrlAttribute","weight":85,"cookies":false,"type":"","demo":"database\/create-url-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-url-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","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":"https:\/\/example.com"},"array":{"type":"boolean","description":"Is attribute an array?","default":false,"x-example":false}},"required":["key","required"]}}]}},"\/database\/collections\/{collectionId}\/attributes\/{key}":{"get":{"summary":"Get Attribute","operationId":"databaseGetAttribute","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"200":{"description":"AttributeBoolean, or AttributeInteger, or AttributeFloat, or AttributeEmail, or AttributeEnum, or AttributeURL, or AttributeIP, or AttributeString","schema":{"x-oneOf":[{"$ref":"#\/definitions\/attributeBoolean"},{"$ref":"#\/definitions\/attributeInteger"},{"$ref":"#\/definitions\/attributeFloat"},{"$ref":"#\/definitions\/attributeEmail"},{"$ref":"#\/definitions\/attributeEnum"},{"$ref":"#\/definitions\/attributeUrl"},{"$ref":"#\/definitions\/attributeIp"},{"$ref":"#\/definitions\/attributeString"}]}}},"x-appwrite":{"method":"getAttribute","weight":90,"cookies":false,"type":"","demo":"database\/get-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"key","description":"Attribute Key.","required":true,"type":"string","in":"path"}]},"delete":{"summary":"Delete Attribute","operationId":"databaseDeleteAttribute","consumes":["application\/json"],"produces":[],"tags":["database"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteAttribute","weight":91,"cookies":false,"type":"","demo":"database\/delete-attribute.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-attribute.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"key","description":"Attribute Key.","required":true,"type":"string","in":"path"}]}},"\/database\/collections\/{collectionId}\/documents":{"get":{"summary":"List Documents","operationId":"databaseListDocuments","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's documents. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Documents List","schema":{"$ref":"#\/definitions\/documentList"}}},"x-appwrite":{"method":"listDocuments","weight":97,"cookies":false,"type":"","demo":"database\/list-documents.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-documents.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"queries","description":"Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/database#querying-documents). Maximum of 100 queries are allowed, each 128 characters long.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"default":[],"in":"query"},{"name":"limit","description":"Maximum number of documents to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the document used as the starting point for the query, excluding the document itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderAttributes","description":"Array of attributes used to sort results. Maximum of 100 order attributes are allowed, each 128 characters long.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"default":[],"in":"query"},{"name":"orderTypes","description":"Array of order directions for sorting attribtues. Possible values are DESC for descending order, or ASC for ascending order. Maximum of 100 order types are allowed.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"default":[],"in":"query"}]},"post":{"summary":"Create Document","operationId":"databaseCreateDocument","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](\/docs\/server\/database#databaseCreateCollection) API or directly from your database console.","responses":{"201":{"description":"Document","schema":{"$ref":"#\/definitions\/document"}}},"x-appwrite":{"method":"createDocument","weight":96,"cookies":false,"type":"","demo":"database\/create-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection). Make sure to define attributes before creating documents.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"documentId":{"type":"string","description":"Document ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[DOCUMENT_ID]"},"data":{"type":"object","description":"Document data as JSON object.","default":{},"x-example":"{}"},"read":{"type":"array","description":"An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}}},"required":["documentId","data"]}}]}},"\/database\/collections\/{collectionId}\/documents\/{documentId}":{"get":{"summary":"Get Document","operationId":"databaseGetDocument","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Get a document by its unique ID. This endpoint response returns a JSON object with the document data.","responses":{"200":{"description":"Document","schema":{"$ref":"#\/definitions\/document"}}},"x-appwrite":{"method":"getDocument","weight":98,"cookies":false,"type":"","demo":"database\/get-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"documentId","description":"Document ID.","required":true,"type":"string","x-example":"[DOCUMENT_ID]","in":"path"}]},"patch":{"summary":"Update Document","operationId":"databaseUpdateDocument","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.","responses":{"200":{"description":"Document","schema":{"$ref":"#\/definitions\/document"}}},"x-appwrite":{"method":"updateDocument","weight":100,"cookies":false,"type":"","demo":"database\/update-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/update-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID.","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"documentId","description":"Document ID.","required":true,"type":"string","x-example":"[DOCUMENT_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"data":{"type":"object","description":"Document data as JSON object. Include only attribute and value pairs to be updated.","default":{},"x-example":"{}"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}}},"required":["data"]}}]},"delete":{"summary":"Delete Document","operationId":"databaseDeleteDocument","consumes":["application\/json"],"produces":[],"tags":["database"],"description":"Delete a document by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteDocument","weight":101,"cookies":false,"type":"","demo":"database\/delete-document.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-document.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"documents.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"documentId","description":"Document ID.","required":true,"type":"string","x-example":"[DOCUMENT_ID]","in":"path"}]}},"\/database\/collections\/{collectionId}\/indexes":{"get":{"summary":"List Indexes","operationId":"databaseListIndexes","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"200":{"description":"Indexes List","schema":{"$ref":"#\/definitions\/indexList"}}},"x-appwrite":{"method":"listIndexes","weight":93,"cookies":false,"type":"","demo":"database\/list-indexes.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/list-indexes.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"}]},"post":{"summary":"Create Index","operationId":"databaseCreateIndex","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"201":{"description":"Index","schema":{"$ref":"#\/definitions\/index"}}},"x-appwrite":{"method":"createIndex","weight":92,"cookies":false,"type":"","demo":"database\/create-index.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/create-index.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"key":{"type":"string","description":"Index Key.","default":null,"x-example":null},"type":{"type":"string","description":"Index type.","default":null,"x-example":"key"},"attributes":{"type":"array","description":"Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.","default":null,"x-example":null,"items":{"type":"string"}},"orders":{"type":"array","description":"Array of index orders. Maximum of 100 orders are allowed.","default":[],"x-example":null,"items":{"type":"string"}}},"required":["key","type","attributes"]}}]}},"\/database\/collections\/{collectionId}\/indexes\/{key}":{"get":{"summary":"Get Index","operationId":"databaseGetIndex","consumes":["application\/json"],"produces":["application\/json"],"tags":["database"],"description":"","responses":{"200":{"description":"Index","schema":{"$ref":"#\/definitions\/index"}}},"x-appwrite":{"method":"getIndex","weight":94,"cookies":false,"type":"","demo":"database\/get-index.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/get-index.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"key","description":"Index Key.","required":true,"type":"string","in":"path"}]},"delete":{"summary":"Delete Index","operationId":"databaseDeleteIndex","consumes":["application\/json"],"produces":[],"tags":["database"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteIndex","weight":95,"cookies":false,"type":"","demo":"database\/delete-index.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/database\/delete-index.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"collections.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"collectionId","description":"Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/database#createCollection).","required":true,"type":"string","x-example":"[COLLECTION_ID]","in":"path"},{"name":"key","description":"Index Key.","required":true,"type":"string","in":"path"}]}},"\/functions":{"get":{"summary":"List Functions","operationId":"functionsList","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a list of all the project's functions. You can use the query params to filter your results.","responses":{"200":{"description":"Functions List","schema":{"$ref":"#\/definitions\/functionList"}}},"x-appwrite":{"method":"list","weight":203,"cookies":false,"type":"","demo":"functions\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-functions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of functions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the function used as the starting point for the query, excluding the function itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Function","operationId":"functionsCreate","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Create a new function. You can pass a list of [permissions](\/docs\/permissions) to allow different project users or team with access to execute the function using the client API.","responses":{"201":{"description":"Function","schema":{"$ref":"#\/definitions\/function"}}},"x-appwrite":{"method":"create","weight":202,"cookies":false,"type":"","demo":"functions\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"functionId":{"type":"string","description":"Function ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[FUNCTION_ID]"},"name":{"type":"string","description":"Function name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"execute":{"type":"array","description":"An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions. Maximum of 100 scopes are allowed, each 64 characters long.","default":null,"x-example":null,"items":{"type":"string"}},"runtime":{"type":"string","description":"Execution runtime.","default":null,"x-example":"node-14.5"},"vars":{"type":"object","description":"Key-value JSON object that will be passed to the function as environment variables.","default":[],"x-example":"{}"},"events":{"type":"array","description":"Events list. Maximum of 100 events are allowed.","default":[],"x-example":null,"items":{"type":"string"}},"schedule":{"type":"string","description":"Schedule CRON syntax.","default":"","x-example":null},"timeout":{"type":"integer","description":"Function maximum execution time in seconds.","default":15,"x-example":1}},"required":["functionId","name","execute","runtime"]}}]}},"\/functions\/runtimes":{"get":{"summary":"List runtimes","operationId":"functionsListRuntimes","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a list of all runtimes that are currently active on your instance.","responses":{"200":{"description":"Runtimes List","schema":{"$ref":"#\/definitions\/runtimeList"}}},"x-appwrite":{"method":"listRuntimes","weight":204,"cookies":false,"type":"","demo":"functions\/list-runtimes.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-runtimes.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/functions\/{functionId}":{"get":{"summary":"Get Function","operationId":"functionsGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a function by its unique ID.","responses":{"200":{"description":"Function","schema":{"$ref":"#\/definitions\/function"}}},"x-appwrite":{"method":"get","weight":205,"cookies":false,"type":"","demo":"functions\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"}]},"put":{"summary":"Update Function","operationId":"functionsUpdate","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Update function by its unique ID.","responses":{"200":{"description":"Function","schema":{"$ref":"#\/definitions\/function"}}},"x-appwrite":{"method":"update","weight":207,"cookies":false,"type":"","demo":"functions\/update.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"Function name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"execute":{"type":"array","description":"An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions. Maximum of 100 scopes are allowed, each 64 characters long.","default":null,"x-example":null,"items":{"type":"string"}},"vars":{"type":"object","description":"Key-value JSON object that will be passed to the function as environment variables.","default":[],"x-example":"{}"},"events":{"type":"array","description":"Events list. Maximum of 100 events are allowed.","default":[],"x-example":null,"items":{"type":"string"}},"schedule":{"type":"string","description":"Schedule CRON syntax.","default":"","x-example":null},"timeout":{"type":"integer","description":"Maximum execution time in seconds.","default":15,"x-example":1}},"required":["name","execute"]}}]},"delete":{"summary":"Delete Function","operationId":"functionsDelete","consumes":["application\/json"],"produces":[],"tags":["functions"],"description":"Delete a function by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":209,"cookies":false,"type":"","demo":"functions\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/delete-function.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"}]}},"\/functions\/{functionId}\/deployments":{"get":{"summary":"List Deployments","operationId":"functionsListDeployments","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a list of all the project's code deployments. You can use the query params to filter your results.","responses":{"200":{"description":"Deployments List","schema":{"$ref":"#\/definitions\/deploymentList"}}},"x-appwrite":{"method":"listDeployments","weight":211,"cookies":false,"type":"","demo":"functions\/list-deployments.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-deployments.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of deployments to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the deployment used as the starting point for the query, excluding the deployment itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Deployment","operationId":"functionsCreateDeployment","consumes":["multipart\/form-data"],"produces":["application\/json"],"tags":["functions"],"description":"Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.\n\nThis endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](\/docs\/functions).\n\nUse the \"command\" param to set the entry point used to execute your code.","responses":{"201":{"description":"Deployment","schema":{"$ref":"#\/definitions\/deployment"}}},"x-appwrite":{"method":"createDeployment","weight":210,"cookies":false,"type":"","demo":"functions\/create-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":true,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"entrypoint","description":"Entrypoint File.","required":true,"type":"string","x-example":"[ENTRYPOINT]","in":"formData"},{"name":"code","description":"Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.","required":true,"type":"file","in":"formData"},{"name":"activate","description":"Automatically activate the deployment when it is finished building.","required":true,"type":"boolean","x-example":false,"in":"formData"}]}},"\/functions\/{functionId}\/deployments\/{deploymentId}":{"get":{"summary":"Get Deployment","operationId":"functionsGetDeployment","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a code deployment by its unique ID.","responses":{"200":{"description":"Deployments List","schema":{"$ref":"#\/definitions\/deploymentList"}}},"x-appwrite":{"method":"getDeployment","weight":212,"cookies":false,"type":"","demo":"functions\/get-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"type":"string","x-example":"[DEPLOYMENT_ID]","in":"path"}]},"patch":{"summary":"Update Function Deployment","operationId":"functionsUpdateDeployment","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.","responses":{"200":{"description":"Function","schema":{"$ref":"#\/definitions\/function"}}},"x-appwrite":{"method":"updateDeployment","weight":208,"cookies":false,"type":"","demo":"functions\/update-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-function-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"type":"string","x-example":"[DEPLOYMENT_ID]","in":"path"}]},"delete":{"summary":"Delete Deployment","operationId":"functionsDeleteDeployment","consumes":["application\/json"],"produces":[],"tags":["functions"],"description":"Delete a code deployment by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteDeployment","weight":213,"cookies":false,"type":"","demo":"functions\/delete-deployment.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/delete-deployment.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"type":"string","x-example":"[DEPLOYMENT_ID]","in":"path"}]}},"\/functions\/{functionId}\/deployments\/{deploymentId}\/builds\/{buildId}":{"post":{"summary":"Retry Build","operationId":"functionsRetryBuild","consumes":["application\/json"],"produces":[],"tags":["functions"],"description":"","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"retryBuild","weight":217,"cookies":false,"type":"","demo":"functions\/retry-build.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/retry-build.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"functions.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"deploymentId","description":"Deployment ID.","required":true,"type":"string","x-example":"[DEPLOYMENT_ID]","in":"path"},{"name":"buildId","description":"Build unique ID.","required":true,"type":"string","x-example":"[BUILD_ID]","in":"path"}]}},"\/functions\/{functionId}\/executions":{"get":{"summary":"List Executions","operationId":"functionsListExecutions","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a list of all the current user function execution logs. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's executions. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Executions List","schema":{"$ref":"#\/definitions\/executionList"}}},"x-appwrite":{"method":"listExecutions","weight":215,"cookies":false,"type":"","demo":"functions\/list-executions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/list-executions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"execution.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"limit","description":"Maximum number of executions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"cursor","description":"ID of the execution used as the starting point for the query, excluding the execution itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"}]},"post":{"summary":"Create Execution","operationId":"functionsCreateExecution","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.","responses":{"201":{"description":"Execution","schema":{"$ref":"#\/definitions\/execution"}}},"x-appwrite":{"method":"createExecution","weight":214,"cookies":false,"type":"","demo":"functions\/create-execution.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-execution.md","rate-limit":60,"rate-time":60,"rate-key":"url:{url},ip:{ip}","scope":"execution.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"data":{"type":"string","description":"String of custom data to send to function.","default":"","x-example":"[DATA]"},"async":{"type":"boolean","description":"Execute code asynchronously. Default value is true.","default":true,"x-example":false}}}}]}},"\/functions\/{functionId}\/executions\/{executionId}":{"get":{"summary":"Get Execution","operationId":"functionsGetExecution","consumes":["application\/json"],"produces":["application\/json"],"tags":["functions"],"description":"Get a function execution log by its unique ID.","responses":{"200":{"description":"Execution","schema":{"$ref":"#\/definitions\/execution"}}},"x-appwrite":{"method":"getExecution","weight":216,"cookies":false,"type":"","demo":"functions\/get-execution.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-execution.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"execution.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"functionId","description":"Function ID.","required":true,"type":"string","x-example":"[FUNCTION_ID]","in":"path"},{"name":"executionId","description":"Execution ID.","required":true,"type":"string","x-example":"[EXECUTION_ID]","in":"path"}]}},"\/health":{"get":{"summary":"Get HTTP","operationId":"healthGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Check the Appwrite HTTP server is up and responsive.","responses":{"200":{"description":"Health Status","schema":{"$ref":"#\/definitions\/healthStatus"}}},"x-appwrite":{"method":"get","weight":109,"cookies":false,"type":"","demo":"health\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/anti-virus":{"get":{"summary":"Get Antivirus","operationId":"healthGetAntivirus","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Check the Appwrite Antivirus server is up and connection is successful.","responses":{"200":{"description":"Health Antivirus","schema":{"$ref":"#\/definitions\/healthAntivirus"}}},"x-appwrite":{"method":"getAntivirus","weight":119,"cookies":false,"type":"","demo":"health\/get-antivirus.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-storage-anti-virus.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/cache":{"get":{"summary":"Get Cache","operationId":"healthGetCache","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Check the Appwrite in-memory cache server is up and connection is successful.","responses":{"200":{"description":"Health Status","schema":{"$ref":"#\/definitions\/healthStatus"}}},"x-appwrite":{"method":"getCache","weight":112,"cookies":false,"type":"","demo":"health\/get-cache.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-cache.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/db":{"get":{"summary":"Get DB","operationId":"healthGetDB","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Check the Appwrite database server is up and connection is successful.","responses":{"200":{"description":"Health Status","schema":{"$ref":"#\/definitions\/healthStatus"}}},"x-appwrite":{"method":"getDB","weight":111,"cookies":false,"type":"","demo":"health\/get-d-b.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-db.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/certificates":{"get":{"summary":"Get Certificates Queue","operationId":"healthGetQueueCertificates","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Get the number of certificates that are waiting to be issued against [Letsencrypt](https:\/\/letsencrypt.org\/) in the Appwrite internal queue server.","responses":{"200":{"description":"Health Queue","schema":{"$ref":"#\/definitions\/healthQueue"}}},"x-appwrite":{"method":"getQueueCertificates","weight":116,"cookies":false,"type":"","demo":"health\/get-queue-certificates.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-certificates.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/functions":{"get":{"summary":"Get Functions Queue","operationId":"healthGetQueueFunctions","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"","responses":{"200":{"description":"Health Queue","schema":{"$ref":"#\/definitions\/healthQueue"}}},"x-appwrite":{"method":"getQueueFunctions","weight":117,"cookies":false,"type":"","demo":"health\/get-queue-functions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-functions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/logs":{"get":{"summary":"Get Logs Queue","operationId":"healthGetQueueLogs","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Get the number of logs that are waiting to be processed in the Appwrite internal queue server.","responses":{"200":{"description":"Health Queue","schema":{"$ref":"#\/definitions\/healthQueue"}}},"x-appwrite":{"method":"getQueueLogs","weight":115,"cookies":false,"type":"","demo":"health\/get-queue-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/queue\/webhooks":{"get":{"summary":"Get Webhooks Queue","operationId":"healthGetQueueWebhooks","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.","responses":{"200":{"description":"Health Queue","schema":{"$ref":"#\/definitions\/healthQueue"}}},"x-appwrite":{"method":"getQueueWebhooks","weight":114,"cookies":false,"type":"","demo":"health\/get-queue-webhooks.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-webhooks.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/storage\/local":{"get":{"summary":"Get Local Storage","operationId":"healthGetStorageLocal","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Check the Appwrite local storage device is up and connection is successful.","responses":{"200":{"description":"Health Status","schema":{"$ref":"#\/definitions\/healthStatus"}}},"x-appwrite":{"method":"getStorageLocal","weight":118,"cookies":false,"type":"","demo":"health\/get-storage-local.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-storage-local.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/health\/time":{"get":{"summary":"Get Time","operationId":"healthGetTime","consumes":["application\/json"],"produces":["application\/json"],"tags":["health"],"description":"Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https:\/\/en.wikipedia.org\/wiki\/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.","responses":{"200":{"description":"Health Time","schema":{"$ref":"#\/definitions\/healthTime"}}},"x-appwrite":{"method":"getTime","weight":113,"cookies":false,"type":"","demo":"health\/get-time.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-time.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"health.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}]}},"\/locale":{"get":{"summary":"Get User Locale","operationId":"localeGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.\n\n([IP Geolocation by DB-IP](https:\/\/db-ip.com))","responses":{"200":{"description":"Locale","schema":{"$ref":"#\/definitions\/locale"}}},"x-appwrite":{"method":"get","weight":102,"cookies":false,"type":"","demo":"locale\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-locale.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/continents":{"get":{"summary":"List Continents","operationId":"localeGetContinents","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all continents. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Continents List","schema":{"$ref":"#\/definitions\/continentList"}}},"x-appwrite":{"method":"getContinents","weight":106,"cookies":false,"type":"","demo":"locale\/get-continents.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-continents.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/countries":{"get":{"summary":"List Countries","operationId":"localeGetCountries","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all countries. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Countries List","schema":{"$ref":"#\/definitions\/countryList"}}},"x-appwrite":{"method":"getCountries","weight":103,"cookies":false,"type":"","demo":"locale\/get-countries.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/countries\/eu":{"get":{"summary":"List EU Countries","operationId":"localeGetCountriesEU","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Countries List","schema":{"$ref":"#\/definitions\/countryList"}}},"x-appwrite":{"method":"getCountriesEU","weight":104,"cookies":false,"type":"","demo":"locale\/get-countries-e-u.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries-eu.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/countries\/phones":{"get":{"summary":"List Countries Phone Codes","operationId":"localeGetCountriesPhones","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all countries phone codes. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Phones List","schema":{"$ref":"#\/definitions\/phoneList"}}},"x-appwrite":{"method":"getCountriesPhones","weight":105,"cookies":false,"type":"","demo":"locale\/get-countries-phones.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-countries-phones.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/currencies":{"get":{"summary":"List Currencies","operationId":"localeGetCurrencies","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.","responses":{"200":{"description":"Currencies List","schema":{"$ref":"#\/definitions\/currencyList"}}},"x-appwrite":{"method":"getCurrencies","weight":107,"cookies":false,"type":"","demo":"locale\/get-currencies.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-currencies.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/locale\/languages":{"get":{"summary":"List Languages","operationId":"localeGetLanguages","consumes":["application\/json"],"produces":["application\/json"],"tags":["locale"],"description":"List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.","responses":{"200":{"description":"Languages List","schema":{"$ref":"#\/definitions\/languageList"}}},"x-appwrite":{"method":"getLanguages","weight":108,"cookies":false,"type":"","demo":"locale\/get-languages.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/get-languages.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"locale.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}]}},"\/storage\/buckets":{"get":{"summary":"List buckets","operationId":"storageListBuckets","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Get a list of all the storage buckets. You can use the query params to filter your results.","responses":{"200":{"description":"Buckets List","schema":{"$ref":"#\/definitions\/bucketList"}}},"x-appwrite":{"method":"listBuckets","weight":152,"cookies":false,"type":"","demo":"storage\/list-buckets.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/list-buckets.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Results offset. The default value is 0. Use this param to manage pagination.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the bucket used as the starting point for the query, excluding the bucket itself. Should be used for efficient pagination when working with large sets of data.","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create bucket","operationId":"storageCreateBucket","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Create a new storage bucket.","responses":{"201":{"description":"Bucket","schema":{"$ref":"#\/definitions\/bucket"}}},"x-appwrite":{"method":"createBucket","weight":151,"cookies":false,"type":"","demo":"storage\/create-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/create-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"bucketId":{"type":"string","description":"Unique Id. Choose your own unique ID or pass the string `unique()` to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[BUCKET_ID]"},"name":{"type":"string","description":"Bucket name","default":null,"x-example":"[NAME]"},"permission":{"type":"string","description":"Permissions type model to use for reading files in this bucket. You can use bucket-level permission set once on the bucket using the `read` and `write` params, or you can set file-level permission where each file read and write params will decide who has access to read and write to each file individually. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"file"},"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"enabled":{"type":"boolean","description":"Is bucket enabled?","default":true,"x-example":false},"maximumFileSize":{"type":"integer","description":"Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self-hosted setups you can change the max limit by changing the `_APP_STORAGE_LIMIT` environment variable. [Learn more about storage environment variables](docs\/environment-variables#storage)","default":30000000,"x-example":1},"allowedFileExtensions":{"type":"array","description":"Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.","default":[],"x-example":null,"items":{"type":"string"}},"encryption":{"type":"boolean","description":"Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled","default":true,"x-example":false},"antivirus":{"type":"boolean","description":"Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled","default":true,"x-example":false}},"required":["bucketId","name","permission"]}}]}},"\/storage\/buckets\/{bucketId}":{"get":{"summary":"Get Bucket","operationId":"storageGetBucket","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Get a storage bucket by its unique ID. This endpoint response returns a JSON object with the storage bucket metadata.","responses":{"200":{"description":"Bucket","schema":{"$ref":"#\/definitions\/bucket"}}},"x-appwrite":{"method":"getBucket","weight":153,"cookies":false,"type":"","demo":"storage\/get-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"bucketId","description":"Bucket unique ID.","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"}]},"put":{"summary":"Update Bucket","operationId":"storageUpdateBucket","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Update a storage bucket by its unique ID.","responses":{"200":{"description":"Bucket","schema":{"$ref":"#\/definitions\/bucket"}}},"x-appwrite":{"method":"updateBucket","weight":154,"cookies":false,"type":"","demo":"storage\/update-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/update-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"bucketId","description":"Bucket unique ID.","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"Bucket name","default":null,"x-example":"[NAME]"},"permission":{"type":"string","description":"Permissions type model to use for reading files in this bucket. You can use bucket-level permission set once on the bucket using the `read` and `write` params, or you can set file-level permission where each file read and write params will decide who has access to read and write to each file individually. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"file"},"read":{"type":"array","description":"An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"enabled":{"type":"boolean","description":"Is bucket enabled?","default":true,"x-example":false},"maximumFileSize":{"type":"integer","description":"Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self hosted version you can change the limit by changing _APP_STORAGE_LIMIT environment variable. [Learn more about storage environment variables](docs\/environment-variables#storage)","default":null,"x-example":1},"allowedFileExtensions":{"type":"array","description":"Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.","default":[],"x-example":null,"items":{"type":"string"}},"encryption":{"type":"boolean","description":"Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled","default":true,"x-example":false},"antivirus":{"type":"boolean","description":"Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled","default":true,"x-example":false}},"required":["name","permission"]}}]},"delete":{"summary":"Delete Bucket","operationId":"storageDeleteBucket","consumes":["application\/json"],"produces":[],"tags":["storage"],"description":"Delete a storage bucket by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteBucket","weight":155,"cookies":false,"type":"","demo":"storage\/delete-bucket.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/delete-bucket.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"buckets.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"bucketId","description":"Bucket unique ID.","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files":{"get":{"summary":"List Files","operationId":"storageListFiles","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Get a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's files. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Files List","schema":{"$ref":"#\/definitions\/fileList"}}},"x-appwrite":{"method":"listFiles","weight":157,"cookies":false,"type":"","demo":"storage\/list-files.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/list-files.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of files to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the file used as the starting point for the query, excluding the file itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create File","operationId":"storageCreateFile","consumes":["multipart\/form-data"],"produces":["application\/json"],"tags":["storage"],"description":"Create a new file. Before using this route, you should create a new bucket resource using either a [server integration](\/docs\/server\/database#storageCreateBucket) API or directly from your Appwrite console.\n\nLarger files should be uploaded using multiple requests with the [content-range](https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Headers\/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.\n\nWhen the first request is sent, the server will return the **File** object, and the subsequent part request must include the file's **id** in `x-appwrite-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.\n\nIf you're creating a new file using one of the Appwrite SDKs, all the chunking logic will be managed by the SDK internally.\n","responses":{"201":{"description":"File","schema":{"$ref":"#\/definitions\/file"}}},"x-appwrite":{"method":"createFile","weight":156,"cookies":false,"type":"upload","demo":"storage\/create-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/create-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","required":true,"x-upload-id":true,"type":"string","x-example":"[FILE_ID]","in":"formData"},{"name":"file","description":"Binary file.","required":true,"type":"file","in":"formData"},{"name":"read","description":"An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"x-example":"[\"role:all\"]","in":"formData"},{"name":"write","description":"An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","required":false,"type":"array","collectionFormat":"multi","items":{"type":"string"},"x-example":"[\"role:all\"]","in":"formData"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}":{"get":{"summary":"Get File","operationId":"storageGetFile","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.","responses":{"200":{"description":"File","schema":{"$ref":"#\/definitions\/file"}}},"x-appwrite":{"method":"getFile","weight":158,"cookies":false,"type":"","demo":"storage\/get-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"}]},"put":{"summary":"Update File","operationId":"storageUpdateFile","consumes":["application\/json"],"produces":["application\/json"],"tags":["storage"],"description":"Update a file by its unique ID. Only users with write permissions have access to update this resource.","responses":{"200":{"description":"File","schema":{"$ref":"#\/definitions\/file"}}},"x-appwrite":{"method":"updateFile","weight":162,"cookies":false,"type":"","demo":"storage\/update-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/update-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File unique ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"read":{"type":"array","description":"An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}},"write":{"type":"array","description":"An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https:\/\/appwrite.io\/docs\/permissions) and get a full list of available permissions.","default":null,"x-example":"[\"role:all\"]","items":{"type":"string"}}}}}]},"delete":{"summary":"Delete File","operationId":"storageDeleteFile","consumes":["application\/json"],"produces":[],"tags":["storage"],"description":"Delete a file by its unique ID. Only users with write permissions have access to delete this resource.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteFile","weight":163,"cookies":false,"type":"","demo":"storage\/delete-file.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/delete-file.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/download":{"get":{"summary":"Get File for Download","operationId":"storageGetFileDownload","consumes":["application\/json"],"produces":["*\/*"],"tags":["storage"],"description":"Get a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.","responses":{"200":{"description":"File","schema":{"type":"file"}}},"x-appwrite":{"method":"getFileDownload","weight":160,"cookies":false,"type":"location","demo":"storage\/get-file-download.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-download.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/preview":{"get":{"summary":"Get File Preview","operationId":"storageGetFilePreview","consumes":["application\/json"],"produces":["image\/*"],"tags":["storage"],"description":"Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image. Preview is supported only for image files smaller than 10MB.","responses":{"200":{"description":"Image","schema":{"type":"file"}}},"x-appwrite":{"method":"getFilePreview","weight":159,"cookies":false,"type":"location","demo":"storage\/get-file-preview.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-preview.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"},{"name":"width","description":"Resize preview image width, Pass an integer between 0 to 4000.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"height","description":"Resize preview image height, Pass an integer between 0 to 4000.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"gravity","description":"Image crop gravity. Can be one of center,top-left,top,top-right,left,right,bottom-left,bottom,bottom-right","required":false,"type":"string","x-example":"center","default":"center","in":"query"},{"name":"quality","description":"Preview image quality. Pass an integer between 0 to 100. Defaults to 100.","required":false,"type":"integer","format":"int32","x-example":0,"default":100,"in":"query"},{"name":"borderWidth","description":"Preview image border in pixels. Pass an integer between 0 to 100. Defaults to 0.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"borderColor","description":"Preview image border color. Use a valid HEX color, no # is needed for prefix.","required":false,"type":"string","default":"","in":"query"},{"name":"borderRadius","description":"Preview image border radius in pixels. Pass an integer between 0 to 4000.","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"opacity","description":"Preview image opacity. Only works with images having an alpha channel (like png). Pass a number between 0 to 1.","required":false,"type":"number","format":"float","x-example":0,"default":1,"in":"query"},{"name":"rotation","description":"Preview image rotation in degrees. Pass an integer between -360 and 360.","required":false,"type":"integer","format":"int32","x-example":-360,"default":0,"in":"query"},{"name":"background","description":"Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix.","required":false,"type":"string","default":"","in":"query"},{"name":"output","description":"Output format type (jpeg, jpg, png, gif and webp).","required":false,"type":"string","x-example":"jpg","default":"","in":"query"}]}},"\/storage\/buckets\/{bucketId}\/files\/{fileId}\/view":{"get":{"summary":"Get File for View","operationId":"storageGetFileView","consumes":["application\/json"],"produces":["*\/*"],"tags":["storage"],"description":"Get a file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header.","responses":{"200":{"description":"File","schema":{"type":"file"}}},"x-appwrite":{"method":"getFileView","weight":161,"cookies":false,"type":"location","demo":"storage\/get-file-view.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-file-view.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"files.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"bucketId","description":"Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](\/docs\/server\/storage#createBucket).","required":true,"type":"string","x-example":"[BUCKET_ID]","in":"path"},{"name":"fileId","description":"File ID.","required":true,"type":"string","x-example":"[FILE_ID]","in":"path"}]}},"\/teams":{"get":{"summary":"List Teams","operationId":"teamsList","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.\r\n\r\nIn admin mode, this endpoint returns a list of all the teams in the current project. [Learn more about different API modes](\/docs\/admin).","responses":{"200":{"description":"Teams List","schema":{"$ref":"#\/definitions\/teamList"}}},"x-appwrite":{"method":"list","weight":167,"cookies":false,"type":"","demo":"teams\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/list-teams.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of teams to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the team used as the starting point for the query, excluding the team itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Team","operationId":"teamsCreate","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.","responses":{"201":{"description":"Team","schema":{"$ref":"#\/definitions\/team"}}},"x-appwrite":{"method":"create","weight":166,"cookies":false,"type":"","demo":"teams\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/create-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"teamId":{"type":"string","description":"Team ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[TEAM_ID]"},"name":{"type":"string","description":"Team name. Max length: 128 chars.","default":null,"x-example":"[NAME]"},"roles":{"type":"array","description":"Array of strings. Use this param to set the roles in the team for the user who created it. The default role is **owner**. A role can be any string. Learn more about [roles and permissions](\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","default":["owner"],"x-example":null,"items":{"type":"string"}}},"required":["teamId","name"]}}]}},"\/teams\/{teamId}":{"get":{"summary":"Get Team","operationId":"teamsGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Get a team by its ID. All team members have read access for this resource.","responses":{"200":{"description":"Team","schema":{"$ref":"#\/definitions\/team"}}},"x-appwrite":{"method":"get","weight":168,"cookies":false,"type":"","demo":"teams\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"}]},"put":{"summary":"Update Team","operationId":"teamsUpdate","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Update a team using its ID. Only members with the owner role can update the team.","responses":{"200":{"description":"Team","schema":{"$ref":"#\/definitions\/team"}}},"x-appwrite":{"method":"update","weight":169,"cookies":false,"type":"","demo":"teams\/update.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"New team name. Max length: 128 chars.","default":null,"x-example":"[NAME]"}},"required":["name"]}}]},"delete":{"summary":"Delete Team","operationId":"teamsDelete","consumes":["application\/json"],"produces":[],"tags":["teams"],"description":"Delete a team using its ID. Only team members with the owner role can delete the team.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":170,"cookies":false,"type":"","demo":"teams\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/delete-team.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"}]}},"\/teams\/{teamId}\/memberships":{"get":{"summary":"Get Team Memberships","operationId":"teamsGetMemberships","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint.","responses":{"200":{"description":"Memberships List","schema":{"$ref":"#\/definitions\/membershipList"}}},"x-appwrite":{"method":"getMemberships","weight":172,"cookies":false,"type":"","demo":"teams\/get-memberships.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-members.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of memberships to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the membership used as the starting point for the query, excluding the membership itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create Team Membership","operationId":"teamsCreateMembership","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Invite a new member to join your team. If initiated from the client SDK, an email with a link to join the team will be sent to the member's email address and an account will be created for them should they not be signed up already. If initiated from server-side SDKs, the new member will automatically be added to the team.\n\nUse the 'url' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the [Update Team Membership Status](\/docs\/client\/teams#teamsUpdateMembershipStatus) endpoint to allow the user to accept the invitation to the team. \n\nPlease note that to avoid a [Redirect Attack](https:\/\/github.com\/OWASP\/CheatSheetSeries\/blob\/master\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when adding your platforms in the console interface.","responses":{"201":{"description":"Membership","schema":{"$ref":"#\/definitions\/membership"}}},"x-appwrite":{"method":"createMembership","weight":171,"cookies":false,"type":"","demo":"teams\/create-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/create-team-membership.md","rate-limit":10,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"Email of the new team member.","default":null,"x-example":"email@example.com"},"roles":{"type":"array","description":"Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","default":null,"x-example":null,"items":{"type":"string"}},"url":{"type":"string","description":"URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.","default":null,"x-example":"https:\/\/example.com"},"name":{"type":"string","description":"Name of the new team member. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["email","roles","url"]}}]}},"\/teams\/{teamId}\/memberships\/{membershipId}":{"get":{"summary":"Get Team Membership","operationId":"teamsGetMembership","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Get a team member by the membership unique id. All team members have read access for this resource.","responses":{"200":{"description":"Memberships List","schema":{"$ref":"#\/definitions\/membershipList"}}},"x-appwrite":{"method":"getMembership","weight":173,"cookies":false,"type":"","demo":"teams\/get-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/get-team-member.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.read","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"type":"string","x-example":"[MEMBERSHIP_ID]","in":"path"}]},"patch":{"summary":"Update Membership Roles","operationId":"teamsUpdateMembershipRoles","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](\/docs\/permissions).","responses":{"200":{"description":"Membership","schema":{"$ref":"#\/definitions\/membership"}}},"x-appwrite":{"method":"updateMembershipRoles","weight":174,"cookies":false,"type":"","demo":"teams\/update-membership-roles.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team-membership-roles.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"type":"string","x-example":"[MEMBERSHIP_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"roles":{"type":"array","description":"An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https:\/\/appwrite.io\/docs\/permissions). Maximum of 100 roles are allowed, each 32 characters long.","default":null,"x-example":null,"items":{"type":"string"}}},"required":["roles"]}}]},"delete":{"summary":"Delete Team Membership","operationId":"teamsDeleteMembership","consumes":["application\/json"],"produces":[],"tags":["teams"],"description":"This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteMembership","weight":176,"cookies":false,"type":"","demo":"teams\/delete-membership.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/delete-team-membership.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"teams.write","platforms":["client","server","server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"type":"string","x-example":"[MEMBERSHIP_ID]","in":"path"}]}},"\/teams\/{teamId}\/memberships\/{membershipId}\/status":{"patch":{"summary":"Update Team Membership Status","operationId":"teamsUpdateMembershipStatus","consumes":["application\/json"],"produces":["application\/json"],"tags":["teams"],"description":"Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email received by the user.\n\nIf the request is successful, a session for the user is automatically created.\n","responses":{"200":{"description":"Membership","schema":{"$ref":"#\/definitions\/membership"}}},"x-appwrite":{"method":"updateMembershipStatus","weight":175,"cookies":false,"type":"","demo":"teams\/update-membership-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/teams\/update-team-membership-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"public","platforms":["client","server"],"packaging":false,"auth":{"Project":[],"JWT":[]}},"security":[{"Project":[],"JWT":[]}],"parameters":[{"name":"teamId","description":"Team ID.","required":true,"type":"string","x-example":"[TEAM_ID]","in":"path"},{"name":"membershipId","description":"Membership ID.","required":true,"type":"string","x-example":"[MEMBERSHIP_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID.","default":null,"x-example":"[USER_ID]"},"secret":{"type":"string","description":"Secret key.","default":null,"x-example":"[SECRET]"}},"required":["userId","secret"]}}]}},"\/users":{"get":{"summary":"List Users","operationId":"usersList","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Get a list of all the project's users. You can use the query params to filter your results.","responses":{"200":{"description":"Users List","schema":{"$ref":"#\/definitions\/userList"}}},"x-appwrite":{"method":"list","weight":186,"cookies":false,"type":"","demo":"users\/list.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/list-users.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"search","description":"Search term to filter your list results. Max length: 256 chars.","required":false,"type":"string","x-example":"[SEARCH]","default":"","in":"query"},{"name":"limit","description":"Maximum number of users to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"},{"name":"cursor","description":"ID of the user used as the starting point for the query, excluding the user itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"string","x-example":"[CURSOR]","default":"","in":"query"},{"name":"cursorDirection","description":"Direction of the cursor.","required":false,"type":"string","x-example":"after","default":"after","in":"query"},{"name":"orderType","description":"Order result by ASC or DESC order.","required":false,"type":"string","x-example":"ASC","default":"ASC","in":"query"}]},"post":{"summary":"Create User","operationId":"usersCreate","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Create a new user.","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"create","weight":178,"cookies":false,"type":"","demo":"users\/create.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"Plaintext user password. Must be at least 8 chars.","default":null,"x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/import\/argon2":{"post":{"summary":"Create User with Argon2 Password","operationId":"usersCreateArgon2User","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createArgon2User","weight":181,"cookies":false,"type":"","demo":"users\/create-argon2user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-argon2-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using Argon2.","default":null,"x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/import\/bcrypt":{"post":{"summary":"Create User with BCrypt Password","operationId":"usersCreateBcryptUser","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createBcryptUser","weight":179,"cookies":false,"type":"","demo":"users\/create-bcrypt-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-bcrypt-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using BCrypt.","default":null,"x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/import\/md5":{"post":{"summary":"Create User with MD5 Password","operationId":"usersCreateMD5User","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createMD5User","weight":180,"cookies":false,"type":"","demo":"users\/create-m-d5user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-md5-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using MD5.","default":null,"x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/import\/phpass":{"post":{"summary":"Create User with PHPass Password","operationId":"usersCreatePHPassUser","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createPHPassUser","weight":183,"cookies":false,"type":"","demo":"users\/create-p-h-pass-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-phpass-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using PHPass.","default":null,"x-example":"password"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/import\/scrypt":{"post":{"summary":"Create User with SCrypt Password","operationId":"usersCreateSCryptUser","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createSCryptUser","weight":184,"cookies":false,"type":"","demo":"users\/create-s-crypt-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-scrypt-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using SCrypt.","default":null,"x-example":"password"},"passwordSalt":{"type":"string","description":"Optional salt used to hash password.","default":"","x-example":"[PASSWORD_SALT]"},"passwordCpu":{"type":"integer","description":"Optional CPU cost used to hash password.","default":"","x-example":null},"passwordMemory":{"type":"integer","description":"Optional memory cost used to hash password.","default":"","x-example":null},"passwordParallel":{"type":"integer","description":"Optional parallelization cost used to hash password.","default":"","x-example":null},"passwordLength":{"type":"integer","description":"Optional hash length used to hash password.","default":"","x-example":null},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/import\/scrypt-modified":{"post":{"summary":"Create User with SCrypt Modified Password","operationId":"usersCreateSCryptModifiedUser","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createSCryptModifiedUser","weight":185,"cookies":false,"type":"","demo":"users\/create-s-crypt-modified-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-scrypt-modified-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using SCrypt Modified.","default":null,"x-example":"password"},"passwordSalt":{"type":"string","description":"Salt used to hash password.","default":null,"x-example":"[PASSWORD_SALT]"},"passwordSaltSeparator":{"type":"string","description":"Salt separator used to hash password.","default":null,"x-example":"[PASSWORD_SALT_SEPARATOR]"},"passwordSignerKey":{"type":"string","description":"Signer key used to hash password.","default":null,"x-example":"[PASSWORD_SIGNER_KEY]"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password","passwordSalt","passwordSaltSeparator","passwordSignerKey"]}}]}},"\/users\/import\/sha":{"post":{"summary":"Create User with SHA Password","operationId":"usersCreateSHAUser","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"","responses":{"201":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"createSHAUser","weight":182,"cookies":false,"type":"","demo":"users\/create-s-h-a-user.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-sha-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"payload","in":"body","schema":{"type":"object","properties":{"userId":{"type":"string","description":"User ID. Choose your own unique ID or pass the string \"unique()\" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.","default":null,"x-example":"[USER_ID]"},"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"},"password":{"type":"string","description":"User password hashed using SHA.","default":null,"x-example":"password"},"passwordVersion":{"type":"string","description":"Optional SHA version used to hash password. Allowed values are: 'sha1', 'sha224', 'sha256', 'sha384', 'sha512\/224', 'sha512\/256', 'sha512', 'sha3-224', 'sha3-256', 'sha3-384', 'sha3-512'","default":"","x-example":"sha1"},"name":{"type":"string","description":"User name. Max length: 128 chars.","default":"","x-example":"[NAME]"}},"required":["userId","email","password"]}}]}},"\/users\/{userId}":{"get":{"summary":"Get User","operationId":"usersGet","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Get a user by its unique ID.","responses":{"200":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"get","weight":187,"cookies":false,"type":"","demo":"users\/get.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"}]},"delete":{"summary":"Delete User","operationId":"usersDelete","consumes":["application\/json"],"produces":[],"tags":["users"],"description":"Delete a user by its unique ID, thereby releasing it's ID. Since ID is released and can be reused, all user-related resources like documents or storage files should be deleted before user deletion. If you want to keep ID reserved, use the [updateStatus](\/docs\/server\/users#usersUpdateStatus) endpoint instead.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"delete","weight":200,"cookies":false,"type":"","demo":"users\/delete.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/delete.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"}]}},"\/users\/{userId}\/email":{"patch":{"summary":"Update Email","operationId":"usersUpdateEmail","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Update the user email by its unique ID.","responses":{"200":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"updateEmail","weight":196,"cookies":false,"type":"","demo":"users\/update-email.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-email.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"email":{"type":"string","description":"User email.","default":null,"x-example":"email@example.com"}},"required":["email"]}}]}},"\/users\/{userId}\/logs":{"get":{"summary":"Get User Logs","operationId":"usersGetLogs","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Get the user activity logs list by its unique ID.","responses":{"200":{"description":"Logs List","schema":{"$ref":"#\/definitions\/logList"}}},"x-appwrite":{"method":"getLogs","weight":191,"cookies":false,"type":"","demo":"users\/get-logs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-logs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"limit","description":"Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.","required":false,"type":"integer","format":"int32","x-example":0,"default":25,"in":"query"},{"name":"offset","description":"Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https:\/\/appwrite.io\/docs\/pagination)","required":false,"type":"integer","format":"int32","x-example":0,"default":0,"in":"query"}]}},"\/users\/{userId}\/memberships":{"get":{"summary":"Get User Memberships","operationId":"usersGetMemberships","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Get the user membership list by its unique ID.","responses":{"200":{"description":"Memberships List","schema":{"$ref":"#\/definitions\/membershipList"}}},"x-appwrite":{"method":"getMemberships","weight":190,"cookies":false,"type":"","demo":"users\/get-memberships.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-memberships.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"}]}},"\/users\/{userId}\/name":{"patch":{"summary":"Update Name","operationId":"usersUpdateName","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Update the user name by its unique ID.","responses":{"200":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"updateName","weight":194,"cookies":false,"type":"","demo":"users\/update-name.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-name.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"User name. Max length: 128 chars.","default":null,"x-example":"[NAME]"}},"required":["name"]}}]}},"\/users\/{userId}\/password":{"patch":{"summary":"Update Password","operationId":"usersUpdatePassword","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Update the user password by its unique ID.","responses":{"200":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"updatePassword","weight":195,"cookies":false,"type":"","demo":"users\/update-password.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-password.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"password":{"type":"string","description":"New user password. Must be at least 8 chars.","default":null,"x-example":"password"}},"required":["password"]}}]}},"\/users\/{userId}\/prefs":{"get":{"summary":"Get User Preferences","operationId":"usersGetPrefs","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Get the user preferences by its unique ID.","responses":{"200":{"description":"Preferences","schema":{"$ref":"#\/definitions\/preferences"}}},"x-appwrite":{"method":"getPrefs","weight":188,"cookies":false,"type":"","demo":"users\/get-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"}]},"patch":{"summary":"Update User Preferences","operationId":"usersUpdatePrefs","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Update the user preferences by its unique ID. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.","responses":{"200":{"description":"Preferences","schema":{"$ref":"#\/definitions\/preferences"}}},"x-appwrite":{"method":"updatePrefs","weight":197,"cookies":false,"type":"","demo":"users\/update-prefs.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-prefs.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"prefs":{"type":"object","description":"Prefs key-value JSON object.","default":{},"x-example":"{}"}},"required":["prefs"]}}]}},"\/users\/{userId}\/sessions":{"get":{"summary":"Get User Sessions","operationId":"usersGetSessions","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Get the user sessions list by its unique ID.","responses":{"200":{"description":"Sessions List","schema":{"$ref":"#\/definitions\/sessionList"}}},"x-appwrite":{"method":"getSessions","weight":189,"cookies":false,"type":"","demo":"users\/get-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-user-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.read","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"}]},"delete":{"summary":"Delete User Sessions","operationId":"usersDeleteSessions","consumes":["application\/json"],"produces":[],"tags":["users"],"description":"Delete all user's sessions by using the user's unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSessions","weight":199,"cookies":false,"type":"","demo":"users\/delete-sessions.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/delete-user-sessions.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"}]}},"\/users\/{userId}\/sessions\/{sessionId}":{"delete":{"summary":"Delete User Session","operationId":"usersDeleteSession","consumes":["application\/json"],"produces":[],"tags":["users"],"description":"Delete a user sessions by its unique ID.","responses":{"204":{"description":"No content"}},"x-appwrite":{"method":"deleteSession","weight":198,"cookies":false,"type":"","demo":"users\/delete-session.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/delete-user-session.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"sessionId","description":"Session ID.","required":true,"type":"string","x-example":"[SESSION_ID]","in":"path"}]}},"\/users\/{userId}\/status":{"patch":{"summary":"Update User Status","operationId":"usersUpdateStatus","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Update the user status by its unique ID. Use this endpoint as an alternative to deleting a user if you want to keep user's ID reserved.","responses":{"200":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"updateStatus","weight":192,"cookies":false,"type":"","demo":"users\/update-status.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-status.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"status":{"type":"boolean","description":"User Status. To activate the user pass `true` and to block the user pass `false`.","default":null,"x-example":false}},"required":["status"]}}]}},"\/users\/{userId}\/verification":{"patch":{"summary":"Update Email Verification","operationId":"usersUpdateVerification","consumes":["application\/json"],"produces":["application\/json"],"tags":["users"],"description":"Update the user email verification status by its unique ID.","responses":{"200":{"description":"User","schema":{"$ref":"#\/definitions\/user"}}},"x-appwrite":{"method":"updateVerification","weight":193,"cookies":false,"type":"","demo":"users\/update-verification.md","edit":"https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/update-user-verification.md","rate-limit":0,"rate-time":3600,"rate-key":"url:{url},ip:{ip}","scope":"users.write","platforms":["server"],"packaging":false,"auth":{"Project":[],"Key":[]}},"security":[{"Project":[],"Key":[]}],"parameters":[{"name":"userId","description":"User ID.","required":true,"type":"string","x-example":"[USER_ID]","in":"path"},{"name":"payload","in":"body","schema":{"type":"object","properties":{"emailVerification":{"type":"boolean","description":"User email verification status.","default":null,"x-example":false}},"required":["emailVerification"]}}]}}},"tags":[{"name":"account","description":"The Account service allows you to authenticate and manage a user account."},{"name":"avatars","description":"The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars."},{"name":"database","description":"The Database service allows you to create structured collections of documents, query and filter lists of documents"},{"name":"locale","description":"The Locale service allows you to customize your app based on your users' location."},{"name":"health","description":"The Health service allows you to both validate and monitor your Appwrite server's health."},{"name":"projects","description":"The Project service allows you to manage all the projects in your Appwrite server."},{"name":"storage","description":"The Storage service allows you to manage your project files."},{"name":"teams","description":"The Teams service allows you to group users of your project and to enable them to share read and write access to your project resources"},{"name":"users","description":"The Users service allows you to manage your project users."},{"name":"functions","description":"The Functions Service allows you view, create and manage your Cloud Functions."}],"definitions":{"documentList":{"description":"Documents List","type":"object","properties":{"total":{"type":"integer","description":"Total number of documents documents that matched your query.","x-example":5,"format":"int32"},"documents":{"type":"array","description":"List of documents.","items":{"type":"object","$ref":"#\/definitions\/document"},"x-example":""}},"required":["total","documents"]},"collectionList":{"description":"Collections List","type":"object","properties":{"total":{"type":"integer","description":"Total number of collections documents that matched your query.","x-example":5,"format":"int32"},"collections":{"type":"array","description":"List of collections.","items":{"type":"object","$ref":"#\/definitions\/collection"},"x-example":""}},"required":["total","collections"]},"indexList":{"description":"Indexes List","type":"object","properties":{"total":{"type":"integer","description":"Total number of indexes documents that matched your query.","x-example":5,"format":"int32"},"indexes":{"type":"array","description":"List of indexes.","items":{"type":"object","$ref":"#\/definitions\/index"},"x-example":""}},"required":["total","indexes"]},"userList":{"description":"Users List","type":"object","properties":{"total":{"type":"integer","description":"Total number of users documents that matched your query.","x-example":5,"format":"int32"},"users":{"type":"array","description":"List of users.","items":{"type":"object","$ref":"#\/definitions\/user"},"x-example":""}},"required":["total","users"]},"sessionList":{"description":"Sessions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of sessions documents that matched your query.","x-example":5,"format":"int32"},"sessions":{"type":"array","description":"List of sessions.","items":{"type":"object","$ref":"#\/definitions\/session"},"x-example":""}},"required":["total","sessions"]},"logList":{"description":"Logs List","type":"object","properties":{"total":{"type":"integer","description":"Total number of logs documents that matched your query.","x-example":5,"format":"int32"},"logs":{"type":"array","description":"List of logs.","items":{"type":"object","$ref":"#\/definitions\/log"},"x-example":""}},"required":["total","logs"]},"fileList":{"description":"Files List","type":"object","properties":{"total":{"type":"integer","description":"Total number of files documents that matched your query.","x-example":5,"format":"int32"},"files":{"type":"array","description":"List of files.","items":{"type":"object","$ref":"#\/definitions\/file"},"x-example":""}},"required":["total","files"]},"bucketList":{"description":"Buckets List","type":"object","properties":{"total":{"type":"integer","description":"Total number of buckets documents that matched your query.","x-example":5,"format":"int32"},"buckets":{"type":"array","description":"List of buckets.","items":{"type":"object","$ref":"#\/definitions\/bucket"},"x-example":""}},"required":["total","buckets"]},"teamList":{"description":"Teams List","type":"object","properties":{"total":{"type":"integer","description":"Total number of teams documents that matched your query.","x-example":5,"format":"int32"},"teams":{"type":"array","description":"List of teams.","items":{"type":"object","$ref":"#\/definitions\/team"},"x-example":""}},"required":["total","teams"]},"membershipList":{"description":"Memberships List","type":"object","properties":{"total":{"type":"integer","description":"Total number of memberships documents that matched your query.","x-example":5,"format":"int32"},"memberships":{"type":"array","description":"List of memberships.","items":{"type":"object","$ref":"#\/definitions\/membership"},"x-example":""}},"required":["total","memberships"]},"functionList":{"description":"Functions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of functions documents that matched your query.","x-example":5,"format":"int32"},"functions":{"type":"array","description":"List of functions.","items":{"type":"object","$ref":"#\/definitions\/function"},"x-example":""}},"required":["total","functions"]},"runtimeList":{"description":"Runtimes List","type":"object","properties":{"total":{"type":"integer","description":"Total number of runtimes documents that matched your query.","x-example":5,"format":"int32"},"runtimes":{"type":"array","description":"List of runtimes.","items":{"type":"object","$ref":"#\/definitions\/runtime"},"x-example":""}},"required":["total","runtimes"]},"deploymentList":{"description":"Deployments List","type":"object","properties":{"total":{"type":"integer","description":"Total number of deployments documents that matched your query.","x-example":5,"format":"int32"},"deployments":{"type":"array","description":"List of deployments.","items":{"type":"object","$ref":"#\/definitions\/deployment"},"x-example":""}},"required":["total","deployments"]},"executionList":{"description":"Executions List","type":"object","properties":{"total":{"type":"integer","description":"Total number of executions documents that matched your query.","x-example":5,"format":"int32"},"executions":{"type":"array","description":"List of executions.","items":{"type":"object","$ref":"#\/definitions\/execution"},"x-example":""}},"required":["total","executions"]},"countryList":{"description":"Countries List","type":"object","properties":{"total":{"type":"integer","description":"Total number of countries documents that matched your query.","x-example":5,"format":"int32"},"countries":{"type":"array","description":"List of countries.","items":{"type":"object","$ref":"#\/definitions\/country"},"x-example":""}},"required":["total","countries"]},"continentList":{"description":"Continents List","type":"object","properties":{"total":{"type":"integer","description":"Total number of continents documents that matched your query.","x-example":5,"format":"int32"},"continents":{"type":"array","description":"List of continents.","items":{"type":"object","$ref":"#\/definitions\/continent"},"x-example":""}},"required":["total","continents"]},"languageList":{"description":"Languages List","type":"object","properties":{"total":{"type":"integer","description":"Total number of languages documents that matched your query.","x-example":5,"format":"int32"},"languages":{"type":"array","description":"List of languages.","items":{"type":"object","$ref":"#\/definitions\/language"},"x-example":""}},"required":["total","languages"]},"currencyList":{"description":"Currencies List","type":"object","properties":{"total":{"type":"integer","description":"Total number of currencies documents that matched your query.","x-example":5,"format":"int32"},"currencies":{"type":"array","description":"List of currencies.","items":{"type":"object","$ref":"#\/definitions\/currency"},"x-example":""}},"required":["total","currencies"]},"phoneList":{"description":"Phones List","type":"object","properties":{"total":{"type":"integer","description":"Total number of phones documents that matched your query.","x-example":5,"format":"int32"},"phones":{"type":"array","description":"List of phones.","items":{"type":"object","$ref":"#\/definitions\/phone"},"x-example":""}},"required":["total","phones"]},"collection":{"description":"Collection","type":"object","properties":{"$id":{"type":"string","description":"Collection ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"Collection read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"Collection write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"},"name":{"type":"string","description":"Collection name.","x-example":"My Collection"},"enabled":{"type":"boolean","description":"Collection enabled.","x-example":false},"permission":{"type":"string","description":"Collection permission model. Possible values: `document` or `collection`","x-example":"document"},"attributes":{"type":"array","description":"Collection attributes.","items":{"x-anyOf":[{"$ref":"#\/definitions\/attributeBoolean"},{"$ref":"#\/definitions\/attributeInteger"},{"$ref":"#\/definitions\/attributeFloat"},{"$ref":"#\/definitions\/attributeEmail"},{"$ref":"#\/definitions\/attributeEnum"},{"$ref":"#\/definitions\/attributeUrl"},{"$ref":"#\/definitions\/attributeIp"},{"$ref":"#\/definitions\/attributeString"}]},"x-example":{}},"indexes":{"type":"array","description":"Collection indexes.","items":{"type":"object","$ref":"#\/definitions\/index"},"x-example":{}}},"required":["$id","$read","$write","name","enabled","permission","attributes","indexes"]},"attributeList":{"description":"Attributes List","type":"object","properties":{"total":{"type":"integer","description":"Total number of attributes in the given collection.","x-example":5,"format":"int32"},"attributes":{"type":"array","description":"List of attributes.","items":{"x-anyOf":[{"$ref":"#\/definitions\/attributeBoolean"},{"$ref":"#\/definitions\/attributeInteger"},{"$ref":"#\/definitions\/attributeFloat"},{"$ref":"#\/definitions\/attributeEmail"},{"$ref":"#\/definitions\/attributeEnum"},{"$ref":"#\/definitions\/attributeUrl"},{"$ref":"#\/definitions\/attributeIp"},{"$ref":"#\/definitions\/attributeString"}]},"x-example":""}},"required":["total","attributes"]},"attributeString":{"description":"AttributeString","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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"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","required","size"]},"attributeInteger":{"description":"AttributeInteger","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"count"},"type":{"type":"string","description":"Attribute type.","x-example":"integer"},"status":{"type":"string","description":"Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"min":{"type":"integer","description":"Minimum value to enforce for new documents.","x-example":1,"format":"int32","x-nullable":true},"max":{"type":"integer","description":"Maximum value to enforce for new documents.","x-example":10,"format":"int32","x-nullable":true},"default":{"type":"integer","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":10,"format":"int32","x-nullable":true}},"required":["key","type","status","required"]},"attributeFloat":{"description":"AttributeFloat","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"percentageCompleted"},"type":{"type":"string","description":"Attribute type.","x-example":"double"},"status":{"type":"string","description":"Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"min":{"type":"number","description":"Minimum value to enforce for new documents.","x-example":1.5,"format":"double","x-nullable":true},"max":{"type":"number","description":"Maximum value to enforce for new documents.","x-example":10.5,"format":"double","x-nullable":true},"default":{"type":"number","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":2.5,"format":"double","x-nullable":true}},"required":["key","type","status","required"]},"attributeBoolean":{"description":"AttributeBoolean","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"isEnabled"},"type":{"type":"string","description":"Attribute type.","x-example":"boolean"},"status":{"type":"string","description":"Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"default":{"type":"boolean","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":false,"x-nullable":true}},"required":["key","type","status","required"]},"attributeEmail":{"description":"AttributeEmail","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"userEmail"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"format":{"type":"string","description":"String format.","x-example":"email"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"default@example.com","x-nullable":true}},"required":["key","type","status","required","format"]},"attributeEnum":{"description":"AttributeEnum","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"status"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"elements":{"type":"array","description":"Array of elements in enumerated type.","items":{"type":"string"},"x-example":"element"},"format":{"type":"string","description":"String format.","x-example":"enum"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"element","x-nullable":true}},"required":["key","type","status","required","elements","format"]},"attributeIp":{"description":"AttributeIP","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"ipAddress"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"format":{"type":"string","description":"String format.","x-example":"ip"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"192.0.2.0","x-nullable":true}},"required":["key","type","status","required","format"]},"attributeUrl":{"description":"AttributeURL","type":"object","properties":{"key":{"type":"string","description":"Attribute Key.","x-example":"githubUrl"},"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"},"required":{"type":"boolean","description":"Is attribute required?","x-example":true},"array":{"type":"boolean","description":"Is attribute an array?","x-example":false,"x-nullable":true},"format":{"type":"string","description":"String format.","x-example":"url"},"default":{"type":"string","description":"Default value for attribute when not provided. Cannot be set when attribute is required.","x-example":"http:\/\/example.com","x-nullable":true}},"required":["key","type","status","required","format"]},"index":{"description":"Index","type":"object","properties":{"key":{"type":"string","description":"Index Key.","x-example":"index1"},"type":{"type":"string","description":"Index type.","x-example":"primary"},"status":{"type":"string","description":"Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`","x-example":"available"},"attributes":{"type":"array","description":"Index attributes.","items":{"type":"string"},"x-example":[]},"orders":{"type":"array","description":"Index orders.","items":{"type":"string"},"x-example":[]}},"required":["key","type","status","attributes","orders"]},"document":{"description":"Document","type":"object","properties":{"$id":{"type":"string","description":"Document ID.","x-example":"5e5ea5c16897e"},"$collection":{"type":"string","description":"Collection ID.","x-example":"5e5ea5c15117e"},"$read":{"type":"array","description":"Document read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"Document write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"}},"additionalProperties":true,"required":["$id","$collection","$read","$write"]},"log":{"description":"Log","type":"object","properties":{"event":{"type":"string","description":"Event name.","x-example":"account.sessions.create"},"userId":{"type":"string","description":"User ID.","x-example":"610fc2f985ee0"},"userEmail":{"type":"string","description":"User Email.","x-example":"john@appwrite.io"},"userName":{"type":"string","description":"User Name.","x-example":"John Doe"},"mode":{"type":"string","description":"API mode when event triggered.","x-example":"admin"},"ip":{"type":"string","description":"IP session in use when the session was created.","x-example":"127.0.0.1"},"time":{"type":"integer","description":"Log creation time in Unix timestamp.","x-example":1592981250,"format":"int32"},"osCode":{"type":"string","description":"Operating system code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/os.json).","x-example":"Mac"},"osName":{"type":"string","description":"Operating system name.","x-example":"Mac"},"osVersion":{"type":"string","description":"Operating system version.","x-example":"Mac"},"clientType":{"type":"string","description":"Client type.","x-example":"browser"},"clientCode":{"type":"string","description":"Client code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/clients.json).","x-example":"CM"},"clientName":{"type":"string","description":"Client name.","x-example":"Chrome Mobile iOS"},"clientVersion":{"type":"string","description":"Client version.","x-example":"84.0"},"clientEngine":{"type":"string","description":"Client engine name.","x-example":"WebKit"},"clientEngineVersion":{"type":"string","description":"Client engine name.","x-example":"605.1.15"},"deviceName":{"type":"string","description":"Device name.","x-example":"smartphone"},"deviceBrand":{"type":"string","description":"Device brand name.","x-example":"Google"},"deviceModel":{"type":"string","description":"Device model name.","x-example":"Nexus 5"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"}},"required":["event","userId","userEmail","userName","mode","ip","time","osCode","osName","osVersion","clientType","clientCode","clientName","clientVersion","clientEngine","clientEngineVersion","deviceName","deviceBrand","deviceModel","countryCode","countryName"]},"user":{"description":"User","type":"object","properties":{"$id":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"User name.","x-example":"John Doe"},"password":{"type":"string","description":"Hashed user password.","x-example":"$argon2id$v=19$m=2048,t=4,p=3$aUZjLnliVWRINmFNTWMudg$5S+x+7uA31xFnrHFT47yFwcJeaP0w92L\/4LdgrVRXxE"},"hash":{"type":"string","description":"Password hashing algorithm.","x-example":"argon2"},"hashOptions":{"type":"string","description":"Password hashing algorithm configuration.","x-example":"{}"},"registration":{"type":"integer","description":"User registration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"status":{"type":"boolean","description":"User status. Pass `true` for enabled and `false` for disabled.","x-example":true},"passwordUpdate":{"type":"integer","description":"Unix timestamp of the most recent password update","x-example":1592981250,"format":"int32"},"email":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"emailVerification":{"type":"boolean","description":"Email verification status.","x-example":true},"prefs":{"type":"object","description":"User preferences as a key-value object","x-example":{"theme":"pink","timezone":"UTC"},"items":{"type":"object","$ref":"#\/definitions\/preferences"}}},"required":["$id","name","password","hash","hashOptions","registration","status","passwordUpdate","email","emailVerification","prefs"]},"account":{"description":"Account","type":"object","properties":{"$id":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"User name.","x-example":"John Doe"},"registration":{"type":"integer","description":"User registration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"status":{"type":"boolean","description":"User status. Pass `true` for enabled and `false` for disabled.","x-example":true},"passwordUpdate":{"type":"integer","description":"Unix timestamp of the most recent password update","x-example":1592981250,"format":"int32"},"email":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"emailVerification":{"type":"boolean","description":"Email verification status.","x-example":true},"prefs":{"type":"object","description":"User preferences as a key-value object","x-example":{"theme":"pink","timezone":"UTC"},"items":{"type":"object","$ref":"#\/definitions\/preferences"}}},"required":["$id","name","registration","status","passwordUpdate","email","emailVerification","prefs"]},"preferences":{"description":"Preferences","type":"object","additionalProperties":true},"session":{"description":"Session","type":"object","properties":{"$id":{"type":"string","description":"Session ID.","x-example":"5e5ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5bb8c16897e"},"expire":{"type":"integer","description":"Session expiration date in Unix timestamp.","x-example":1592981250,"format":"int32"},"provider":{"type":"string","description":"Session Provider.","x-example":"email"},"providerUid":{"type":"string","description":"Session Provider User ID.","x-example":"user@example.com"},"providerAccessToken":{"type":"string","description":"Session Provider Access Token.","x-example":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"},"providerAccessTokenExpiry":{"type":"integer","description":"Date, the Unix timestamp of when the access token expires.","x-example":1592981250,"format":"int32"},"providerRefreshToken":{"type":"string","description":"Session Provider Refresh Token.","x-example":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"},"ip":{"type":"string","description":"IP in use when the session was created.","x-example":"127.0.0.1"},"osCode":{"type":"string","description":"Operating system code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/os.json).","x-example":"Mac"},"osName":{"type":"string","description":"Operating system name.","x-example":"Mac"},"osVersion":{"type":"string","description":"Operating system version.","x-example":"Mac"},"clientType":{"type":"string","description":"Client type.","x-example":"browser"},"clientCode":{"type":"string","description":"Client code name. View list of [available options](https:\/\/github.com\/appwrite\/appwrite\/blob\/master\/docs\/lists\/clients.json).","x-example":"CM"},"clientName":{"type":"string","description":"Client name.","x-example":"Chrome Mobile iOS"},"clientVersion":{"type":"string","description":"Client version.","x-example":"84.0"},"clientEngine":{"type":"string","description":"Client engine name.","x-example":"WebKit"},"clientEngineVersion":{"type":"string","description":"Client engine name.","x-example":"605.1.15"},"deviceName":{"type":"string","description":"Device name.","x-example":"smartphone"},"deviceBrand":{"type":"string","description":"Device brand name.","x-example":"Google"},"deviceModel":{"type":"string","description":"Device model name.","x-example":"Nexus 5"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"},"current":{"type":"boolean","description":"Returns true if this the current user session.","x-example":true}},"required":["$id","userId","expire","provider","providerUid","providerAccessToken","providerAccessTokenExpiry","providerRefreshToken","ip","osCode","osName","osVersion","clientType","clientCode","clientName","clientVersion","clientEngine","clientEngineVersion","deviceName","deviceBrand","deviceModel","countryCode","countryName","current"]},"token":{"description":"Token","type":"object","properties":{"$id":{"type":"string","description":"Token ID.","x-example":"bb8ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5ea5c168bb8"},"secret":{"type":"string","description":"Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.","x-example":""},"expire":{"type":"integer","description":"Token expiration date in Unix timestamp.","x-example":1592981250,"format":"int32"}},"required":["$id","userId","secret","expire"]},"locale":{"description":"Locale","type":"object","properties":{"ip":{"type":"string","description":"User IP address.","x-example":"127.0.0.1"},"countryCode":{"type":"string","description":"Country code in [ISO 3166-1](http:\/\/en.wikipedia.org\/wiki\/ISO_3166-1) two-character format","x-example":"US"},"country":{"type":"string","description":"Country name. This field support localization.","x-example":"United States"},"continentCode":{"type":"string","description":"Continent code. A two character continent code \"AF\" for Africa, \"AN\" for Antarctica, \"AS\" for Asia, \"EU\" for Europe, \"NA\" for North America, \"OC\" for Oceania, and \"SA\" for South America.","x-example":"NA"},"continent":{"type":"string","description":"Continent name. This field support localization.","x-example":"North America"},"eu":{"type":"boolean","description":"True if country is part of the Europian Union.","x-example":false},"currency":{"type":"string","description":"Currency code in [ISO 4217-1](http:\/\/en.wikipedia.org\/wiki\/ISO_4217) three-character format","x-example":"USD"}},"required":["ip","countryCode","country","continentCode","continent","eu","currency"]},"file":{"description":"File","type":"object","properties":{"$id":{"type":"string","description":"File ID.","x-example":"5e5ea5c16897e"},"bucketId":{"type":"string","description":"Bucket ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"File read permissions.","items":{"type":"string"},"x-example":"role:all"},"$write":{"type":"array","description":"File write permissions.","items":{"type":"string"},"x-example":"user:608f9da25e7e1"},"name":{"type":"string","description":"File name.","x-example":"Pink.png"},"dateCreated":{"type":"integer","description":"File creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"signature":{"type":"string","description":"File MD5 signature.","x-example":"5d529fd02b544198ae075bd57c1762bb"},"mimeType":{"type":"string","description":"File mime type.","x-example":"image\/png"},"sizeOriginal":{"type":"integer","description":"File original size in bytes.","x-example":17890,"format":"int32"},"chunksTotal":{"type":"integer","description":"Total number of chunks available","x-example":17890,"format":"int32"},"chunksUploaded":{"type":"integer","description":"Total number of chunks uploaded","x-example":17890,"format":"int32"}},"required":["$id","bucketId","$read","$write","name","dateCreated","signature","mimeType","sizeOriginal","chunksTotal","chunksUploaded"]},"bucket":{"description":"Bucket","type":"object","properties":{"$id":{"type":"string","description":"Bucket ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"File read permissions.","items":{"type":"string"},"x-example":["role:all"]},"$write":{"type":"array","description":"File write permissions.","items":{"type":"string"},"x-example":["user:608f9da25e7e1"]},"permission":{"type":"string","description":"Bucket permission model. Possible values: `bucket` or `file`","x-example":"file"},"dateCreated":{"type":"integer","description":"Bucket creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"dateUpdated":{"type":"integer","description":"Bucket update date in Unix timestamp.","x-example":1592981250,"format":"int32"},"name":{"type":"string","description":"Bucket name.","x-example":"Documents"},"enabled":{"type":"boolean","description":"Bucket enabled.","x-example":false},"maximumFileSize":{"type":"integer","description":"Maximum file size supported.","x-example":100,"format":"int32"},"allowedFileExtensions":{"type":"array","description":"Allowed file extensions.","items":{"type":"string"},"x-example":["jpg","png"]},"encryption":{"type":"boolean","description":"Bucket is encrypted.","x-example":false},"antivirus":{"type":"boolean","description":"Virus scanning is enabled.","x-example":false}},"required":["$id","$read","$write","permission","dateCreated","dateUpdated","name","enabled","maximumFileSize","allowedFileExtensions","encryption","antivirus"]},"team":{"description":"Team","type":"object","properties":{"$id":{"type":"string","description":"Team ID.","x-example":"5e5ea5c16897e"},"name":{"type":"string","description":"Team name.","x-example":"VIP"},"dateCreated":{"type":"integer","description":"Team creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"total":{"type":"integer","description":"Total number of team members.","x-example":7,"format":"int32"}},"required":["$id","name","dateCreated","total"]},"membership":{"description":"Membership","type":"object","properties":{"$id":{"type":"string","description":"Membership ID.","x-example":"5e5ea5c16897e"},"userId":{"type":"string","description":"User ID.","x-example":"5e5ea5c16897e"},"userName":{"type":"string","description":"User name.","x-example":"John Doe"},"userEmail":{"type":"string","description":"User email address.","x-example":"john@appwrite.io"},"teamId":{"type":"string","description":"Team ID.","x-example":"5e5ea5c16897e"},"teamName":{"type":"string","description":"Team name.","x-example":"VIP"},"invited":{"type":"integer","description":"Date, the user has been invited to join the team in Unix timestamp.","x-example":1592981250,"format":"int32"},"joined":{"type":"integer","description":"Date, the user has accepted the invitation to join the team in Unix timestamp.","x-example":1592981250,"format":"int32"},"confirm":{"type":"boolean","description":"User confirmation status, true if the user has joined the team or false otherwise.","x-example":false},"roles":{"type":"array","description":"User list of roles","items":{"type":"string"},"x-example":"admin"}},"required":["$id","userId","userName","userEmail","teamId","teamName","invited","joined","confirm","roles"]},"function":{"description":"Function","type":"object","properties":{"$id":{"type":"string","description":"Function ID.","x-example":"5e5ea5c16897e"},"execute":{"type":"array","description":"Execution permissions.","items":{"type":"string"},"x-example":"role:member"},"name":{"type":"string","description":"Function name.","x-example":"My Function"},"dateCreated":{"type":"integer","description":"Function creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"dateUpdated":{"type":"integer","description":"Function update date in Unix timestamp.","x-example":1592981257,"format":"int32"},"status":{"type":"string","description":"Function status. Possible values: `disabled`, `enabled`","x-example":"enabled"},"runtime":{"type":"string","description":"Function execution runtime.","x-example":"python-3.8"},"deployment":{"type":"string","description":"Function's active deployment ID.","x-example":"5e5ea5c16897e"},"vars":{"type":"object","additionalProperties":true,"description":"Function environment variables.","x-example":{"key":"value"}},"events":{"type":"array","description":"Function trigger events.","items":{"type":"string"},"x-example":"account.create"},"schedule":{"type":"string","description":"Function execution schedult in CRON format.","x-example":"5 4 * * *"},"scheduleNext":{"type":"integer","description":"Function next scheduled execution date in Unix timestamp.","x-example":1592981292,"format":"int32"},"schedulePrevious":{"type":"integer","description":"Function next scheduled execution date in Unix timestamp.","x-example":1592981237,"format":"int32"},"timeout":{"type":"integer","description":"Function execution timeout in seconds.","x-example":1592981237,"format":"int32"}},"required":["$id","execute","name","dateCreated","dateUpdated","status","runtime","deployment","vars","events","schedule","scheduleNext","schedulePrevious","timeout"]},"runtime":{"description":"Runtime","type":"object","properties":{"$id":{"type":"string","description":"Runtime ID.","x-example":"python-3.8"},"name":{"type":"string","description":"Runtime Name.","x-example":"Python"},"version":{"type":"string","description":"Runtime version.","x-example":"3.8"},"base":{"type":"string","description":"Base Docker image used to build the runtime.","x-example":"python:3.8-alpine"},"image":{"type":"string","description":"Image name of Docker Hub.","x-example":"appwrite\\\/runtime-for-python:3.8"},"logo":{"type":"string","description":"Name of the logo image.","x-example":"python.png"},"supports":{"type":"array","description":"List of supported architectures.","items":{"type":"string"},"x-example":"amd64"}},"required":["$id","name","version","base","image","logo","supports"]},"deployment":{"description":"Deployment","type":"object","properties":{"$id":{"type":"string","description":"Deployment ID.","x-example":"5e5ea5c16897e"},"resourceId":{"type":"string","description":"Resource ID.","x-example":"5e5ea6g16897e"},"resourceType":{"type":"string","description":"Resource type.","x-example":"functions"},"dateCreated":{"type":"integer","description":"The deployment creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"entrypoint":{"type":"string","description":"The entrypoint file to use to execute the deployment code.","x-example":"enabled"},"size":{"type":"integer","description":"The code size in bytes.","x-example":128,"format":"int32"},"buildId":{"type":"string","description":"The current build ID.","x-example":"5e5ea5c16897e"},"activate":{"type":"boolean","description":"Whether the deployment should be automatically activated.","x-example":true},"status":{"type":"string","description":"The deployment status.","x-example":"enabled"},"buildStdout":{"type":"string","description":"The build stdout.","x-example":"enabled"},"buildStderr":{"type":"string","description":"The build stderr.","x-example":"enabled"}},"required":["$id","resourceId","resourceType","dateCreated","entrypoint","size","buildId","activate","status","buildStdout","buildStderr"]},"execution":{"description":"Execution","type":"object","properties":{"$id":{"type":"string","description":"Execution ID.","x-example":"5e5ea5c16897e"},"$read":{"type":"array","description":"Execution read permissions.","items":{"type":"string"},"x-example":"role:all"},"functionId":{"type":"string","description":"Function ID.","x-example":"5e5ea6g16897e"},"dateCreated":{"type":"integer","description":"The execution creation date in Unix timestamp.","x-example":1592981250,"format":"int32"},"trigger":{"type":"string","description":"The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.","x-example":"http"},"status":{"type":"string","description":"The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.","x-example":"processing"},"statusCode":{"type":"integer","description":"The script status code.","x-example":0,"format":"int32"},"response":{"type":"string","description":"The script response output string. Logs the last 4,000 characters of the execution response output.","x-example":""},"stderr":{"type":"string","description":"The script stderr output string. Logs the last 4,000 characters of the execution stderr output","x-example":""},"time":{"type":"number","description":"The script execution time in seconds.","x-example":0.4,"format":"double"}},"required":["$id","$read","functionId","dateCreated","trigger","status","statusCode","response","stderr","time"]},"country":{"description":"Country","type":"object","properties":{"name":{"type":"string","description":"Country name.","x-example":"United States"},"code":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"}},"required":["name","code"]},"continent":{"description":"Continent","type":"object","properties":{"name":{"type":"string","description":"Continent name.","x-example":"Europe"},"code":{"type":"string","description":"Continent two letter code.","x-example":"EU"}},"required":["name","code"]},"language":{"description":"Language","type":"object","properties":{"name":{"type":"string","description":"Language name.","x-example":"Italian"},"code":{"type":"string","description":"Language two-character ISO 639-1 codes.","x-example":"it"},"nativeName":{"type":"string","description":"Language native name.","x-example":"Italiano"}},"required":["name","code","nativeName"]},"currency":{"description":"Currency","type":"object","properties":{"symbol":{"type":"string","description":"Currency symbol.","x-example":"$"},"name":{"type":"string","description":"Currency name.","x-example":"US dollar"},"symbolNative":{"type":"string","description":"Currency native symbol.","x-example":"$"},"decimalDigits":{"type":"integer","description":"Number of decimal digits.","x-example":2,"format":"int32"},"rounding":{"type":"number","description":"Currency digit rounding.","x-example":0,"format":"double"},"code":{"type":"string","description":"Currency code in [ISO 4217-1](http:\/\/en.wikipedia.org\/wiki\/ISO_4217) three-character format.","x-example":"USD"},"namePlural":{"type":"string","description":"Currency plural name","x-example":"US dollars"}},"required":["symbol","name","symbolNative","decimalDigits","rounding","code","namePlural"]},"phone":{"description":"Phone","type":"object","properties":{"code":{"type":"string","description":"Phone code.","x-example":"+1"},"countryCode":{"type":"string","description":"Country two-character ISO 3166-1 alpha code.","x-example":"US"},"countryName":{"type":"string","description":"Country name.","x-example":"United States"}},"required":["code","countryCode","countryName"]},"healthAntivirus":{"description":"Health Antivirus","type":"object","properties":{"version":{"type":"string","description":"Antivirus version.","x-example":"1.0.0"},"status":{"type":"string","description":"Antivirus status. Possible values can are: `disabled`, `offline`, `online`","x-example":"online"}},"required":["version","status"]},"healthQueue":{"description":"Health Queue","type":"object","properties":{"size":{"type":"integer","description":"Amount of actions in the queue.","x-example":8,"format":"int32"}},"required":["size"]},"healthStatus":{"description":"Health Status","type":"object","properties":{"ping":{"type":"integer","description":"Duration in milliseconds how long the health check took.","x-example":128,"format":"int32"},"status":{"type":"string","description":"Service status. Possible values can are: `pass`, `fail`","x-example":"pass"}},"required":["ping","status"]},"healthTime":{"description":"Health Time","type":"object","properties":{"remoteTime":{"type":"integer","description":"Current unix timestamp on trustful remote server.","x-example":1639490751,"format":"int32"},"localTime":{"type":"integer","description":"Current unix timestamp of local server where Appwrite runs.","x-example":1639490844,"format":"int32"},"diff":{"type":"integer","description":"Difference of unix remote and local timestamps in milliseconds.","x-example":93,"format":"int32"}},"required":["remoteTime","localTime","diff"]}},"externalDocs":{"description":"Full API docs, specs and tutorials","url":"https:\/\/appwrite.io\/docs"}} \ No newline at end of file diff --git a/app/init.php b/app/init.php index 89a21990af..4a456a4d1f 100644 --- a/app/init.php +++ b/app/init.php @@ -80,7 +80,7 @@ const APP_LIMIT_COMPRESSION = 20000000; //20MB const APP_LIMIT_ARRAY_PARAMS_SIZE = 100; // Default maximum of how many elements can there be in API parameter that expects array value const APP_LIMIT_SUBQUERY = 1000; const APP_CACHE_BUSTER = 305; -const APP_VERSION_STABLE = '0.15.0'; +const APP_VERSION_STABLE = '0.14.2'; const APP_DATABASE_ATTRIBUTE_EMAIL = 'email'; const APP_DATABASE_ATTRIBUTE_ENUM = 'enum'; const APP_DATABASE_ATTRIBUTE_IP = 'ip'; diff --git a/app/tasks/sdks.php b/app/tasks/sdks.php index 03e0ca81a9..b996b10e81 100644 --- a/app/tasks/sdks.php +++ b/app/tasks/sdks.php @@ -30,7 +30,7 @@ $cli $production = ($git) ? (Console::confirm('Type "Appwrite" to push code to production git repos') == 'Appwrite') : false; $message = ($git) ? Console::confirm('Please enter your commit message:') : ''; - if (!in_array($version, ['0.6.x', '0.7.x', '0.8.x', '0.9.x', '0.10.x', '0.11.x', '0.12.x', '0.13.x', '0.14.x', '0.15.x', 'latest'])) { + if (!in_array($version, ['0.6.x', '0.7.x', '0.8.x', '0.9.x', '0.10.x', '0.11.x', '0.12.x', '0.13.x', '0.14.x', 'latest'])) { throw new Exception('Unknown version given'); } diff --git a/docs/examples/0.15.x/client-android/java/account/create-anonymous-session.md b/docs/examples/0.15.x/client-android/java/account/create-anonymous-session.md deleted file mode 100644 index b1a2a25828..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/create-anonymous-session.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createAnonymousSession(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/create-j-w-t.md b/docs/examples/0.15.x/client-android/java/account/create-j-w-t.md deleted file mode 100644 index 3a97c334ce..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/create-j-w-t.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createJWT(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/create-magic-u-r-l-session.md b/docs/examples/0.15.x/client-android/java/account/create-magic-u-r-l-session.md deleted file mode 100644 index 6c9fa7c662..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createMagicURLSession( - "[USER_ID]", - "email@example.com", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/create-o-auth2session.md b/docs/examples/0.15.x/client-android/java/account/create-o-auth2session.md deleted file mode 100644 index e4cfb8d471..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/create-o-auth2session.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createOAuth2Session( - this, - "amazon", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/create-recovery.md b/docs/examples/0.15.x/client-android/java/account/create-recovery.md deleted file mode 100644 index 459213bce9..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/create-recovery.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createRecovery( - "email@example.com", - "https://example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/create-session.md b/docs/examples/0.15.x/client-android/java/account/create-session.md deleted file mode 100644 index 34dfca55d8..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/create-session.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createSession( - "email@example.com", - "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/create-verification.md b/docs/examples/0.15.x/client-android/java/account/create-verification.md deleted file mode 100644 index b8b1c206bf..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/create-verification.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createVerification( - "https://example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/create.md b/docs/examples/0.15.x/client-android/java/account/create.md deleted file mode 100644 index 11a5168d60..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/create.md +++ /dev/null @@ -1,50 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.create( - "[USER_ID]", - "email@example.com", - "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/delete-session.md b/docs/examples/0.15.x/client-android/java/account/delete-session.md deleted file mode 100644 index b3549c708b..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/delete-session.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.deleteSession( - "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/delete-sessions.md b/docs/examples/0.15.x/client-android/java/account/delete-sessions.md deleted file mode 100644 index 153c323b56..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/delete-sessions.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.deleteSessions(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/delete.md b/docs/examples/0.15.x/client-android/java/account/delete.md deleted file mode 100644 index aec96f1b4b..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/delete.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.delete(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/get-logs.md b/docs/examples/0.15.x/client-android/java/account/get-logs.md deleted file mode 100644 index fb83c5d6cc..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/get-logs.md +++ /dev/null @@ -1,47 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.getLogs( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/get-prefs.md b/docs/examples/0.15.x/client-android/java/account/get-prefs.md deleted file mode 100644 index 25ab6c3951..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/get-prefs.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.getPrefs(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/get-session.md b/docs/examples/0.15.x/client-android/java/account/get-session.md deleted file mode 100644 index 8d4c95aaf2..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/get-session.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.getSession( - "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/get-sessions.md b/docs/examples/0.15.x/client-android/java/account/get-sessions.md deleted file mode 100644 index 7afe852d71..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/get-sessions.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.getSessions(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/get.md b/docs/examples/0.15.x/client-android/java/account/get.md deleted file mode 100644 index 146a5e501d..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/get.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.get(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/update-email.md b/docs/examples/0.15.x/client-android/java/account/update-email.md deleted file mode 100644 index 56a1bc0206..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/update-email.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateEmail( - "email@example.com", - "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/0.15.x/client-android/java/account/update-magic-u-r-l-session.md deleted file mode 100644 index d0734e18ee..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateMagicURLSession( - "[USER_ID]", - "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/update-name.md b/docs/examples/0.15.x/client-android/java/account/update-name.md deleted file mode 100644 index 9842a2216e..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/update-name.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateName( - "[NAME]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/update-o-auth2tokens.md b/docs/examples/0.15.x/client-android/java/account/update-o-auth2tokens.md deleted file mode 100644 index 56ac698da2..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/update-o-auth2tokens.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateOAuth2Tokens( - "[SESSION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/update-password.md b/docs/examples/0.15.x/client-android/java/account/update-password.md deleted file mode 100644 index 468bdc21da..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/update-password.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updatePassword( - "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/update-prefs.md b/docs/examples/0.15.x/client-android/java/account/update-prefs.md deleted file mode 100644 index 9f94b8fe59..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/update-prefs.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updatePrefs( - mapOf( "a" to "b" ) - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/update-recovery.md b/docs/examples/0.15.x/client-android/java/account/update-recovery.md deleted file mode 100644 index bfcc89ed19..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/update-recovery.md +++ /dev/null @@ -1,51 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateRecovery( - "[USER_ID]", - "[SECRET]", - "password", - "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/update-session.md b/docs/examples/0.15.x/client-android/java/account/update-session.md deleted file mode 100644 index 80aff11b98..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/update-session.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateSession( - "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/update-status.md b/docs/examples/0.15.x/client-android/java/account/update-status.md deleted file mode 100644 index 0ef6a6e1f8..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/update-status.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateStatus(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/account/update-verification.md b/docs/examples/0.15.x/client-android/java/account/update-verification.md deleted file mode 100644 index 8cf8d67363..0000000000 --- a/docs/examples/0.15.x/client-android/java/account/update-verification.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateVerification( - "[USER_ID]", - "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/avatars/get-browser.md b/docs/examples/0.15.x/client-android/java/avatars/get-browser.md deleted file mode 100644 index fa88749dff..0000000000 --- a/docs/examples/0.15.x/client-android/java/avatars/get-browser.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getBrowser( - "aa", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/avatars/get-credit-card.md b/docs/examples/0.15.x/client-android/java/avatars/get-credit-card.md deleted file mode 100644 index 2ddda86cce..0000000000 --- a/docs/examples/0.15.x/client-android/java/avatars/get-credit-card.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getCreditCard( - "amex", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/avatars/get-favicon.md b/docs/examples/0.15.x/client-android/java/avatars/get-favicon.md deleted file mode 100644 index 39c1432260..0000000000 --- a/docs/examples/0.15.x/client-android/java/avatars/get-favicon.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getFavicon( - "https://example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/avatars/get-flag.md b/docs/examples/0.15.x/client-android/java/avatars/get-flag.md deleted file mode 100644 index 77bf3b1b1f..0000000000 --- a/docs/examples/0.15.x/client-android/java/avatars/get-flag.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getFlag( - "af", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/avatars/get-image.md b/docs/examples/0.15.x/client-android/java/avatars/get-image.md deleted file mode 100644 index 69371da6d3..0000000000 --- a/docs/examples/0.15.x/client-android/java/avatars/get-image.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getImage( - "https://example.com", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/avatars/get-initials.md b/docs/examples/0.15.x/client-android/java/avatars/get-initials.md deleted file mode 100644 index eea5669c2c..0000000000 --- a/docs/examples/0.15.x/client-android/java/avatars/get-initials.md +++ /dev/null @@ -1,47 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getInitials( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/avatars/get-q-r.md b/docs/examples/0.15.x/client-android/java/avatars/get-q-r.md deleted file mode 100644 index e2c48cdded..0000000000 --- a/docs/examples/0.15.x/client-android/java/avatars/get-q-r.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getQR( - "[TEXT]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/database/create-document.md b/docs/examples/0.15.x/client-android/java/database/create-document.md deleted file mode 100644 index 059a42ed66..0000000000 --- a/docs/examples/0.15.x/client-android/java/database/create-document.md +++ /dev/null @@ -1,50 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Database - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Database database = new Database(client); - - database.createDocument( - "[COLLECTION_ID]", - "[DOCUMENT_ID]", - mapOf( "a" to "b" ), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/database/delete-document.md b/docs/examples/0.15.x/client-android/java/database/delete-document.md deleted file mode 100644 index 75877c470a..0000000000 --- a/docs/examples/0.15.x/client-android/java/database/delete-document.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Database - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Database database = new Database(client); - - database.deleteDocument( - "[COLLECTION_ID]", - "[DOCUMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/database/get-document.md b/docs/examples/0.15.x/client-android/java/database/get-document.md deleted file mode 100644 index 69aff1df2c..0000000000 --- a/docs/examples/0.15.x/client-android/java/database/get-document.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Database - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Database database = new Database(client); - - database.getDocument( - "[COLLECTION_ID]", - "[DOCUMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/database/list-documents.md b/docs/examples/0.15.x/client-android/java/database/list-documents.md deleted file mode 100644 index 711aa412c0..0000000000 --- a/docs/examples/0.15.x/client-android/java/database/list-documents.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Database - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Database database = new Database(client); - - database.listDocuments( - "[COLLECTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/database/update-document.md b/docs/examples/0.15.x/client-android/java/database/update-document.md deleted file mode 100644 index a14c91f48c..0000000000 --- a/docs/examples/0.15.x/client-android/java/database/update-document.md +++ /dev/null @@ -1,50 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Database - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Database database = new Database(client); - - database.updateDocument( - "[COLLECTION_ID]", - "[DOCUMENT_ID]", - mapOf( "a" to "b" ), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/functions/create-execution.md b/docs/examples/0.15.x/client-android/java/functions/create-execution.md deleted file mode 100644 index ea30faddf3..0000000000 --- a/docs/examples/0.15.x/client-android/java/functions/create-execution.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Functions functions = new Functions(client); - - functions.createExecution( - "[FUNCTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/functions/get-build.md b/docs/examples/0.15.x/client-android/java/functions/get-build.md deleted file mode 100644 index 4fa737ede5..0000000000 --- a/docs/examples/0.15.x/client-android/java/functions/get-build.md +++ /dev/null @@ -1,50 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Functions functions = new Functions(client); - - functions.getBuild( - "[FUNCTION_ID]", - "[DEPLOYMENT_ID]", - "[BUILD_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/functions/get-execution.md b/docs/examples/0.15.x/client-android/java/functions/get-execution.md deleted file mode 100644 index 2f4e57edce..0000000000 --- a/docs/examples/0.15.x/client-android/java/functions/get-execution.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Functions functions = new Functions(client); - - functions.getExecution( - "[FUNCTION_ID]", - "[EXECUTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/functions/list-executions.md b/docs/examples/0.15.x/client-android/java/functions/list-executions.md deleted file mode 100644 index 68f767db9c..0000000000 --- a/docs/examples/0.15.x/client-android/java/functions/list-executions.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Functions functions = new Functions(client); - - functions.listExecutions( - "[FUNCTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/functions/retry-build.md b/docs/examples/0.15.x/client-android/java/functions/retry-build.md deleted file mode 100644 index 96501a096e..0000000000 --- a/docs/examples/0.15.x/client-android/java/functions/retry-build.md +++ /dev/null @@ -1,50 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Functions functions = new Functions(client); - - functions.retryBuild( - "[FUNCTION_ID]", - "[DEPLOYMENT_ID]", - "[BUILD_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/locale/get-continents.md b/docs/examples/0.15.x/client-android/java/locale/get-continents.md deleted file mode 100644 index e96a9fec1e..0000000000 --- a/docs/examples/0.15.x/client-android/java/locale/get-continents.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.getContinents(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/locale/get-countries-e-u.md b/docs/examples/0.15.x/client-android/java/locale/get-countries-e-u.md deleted file mode 100644 index ec478bc839..0000000000 --- a/docs/examples/0.15.x/client-android/java/locale/get-countries-e-u.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.getCountriesEU(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/locale/get-countries-phones.md b/docs/examples/0.15.x/client-android/java/locale/get-countries-phones.md deleted file mode 100644 index 34368d2877..0000000000 --- a/docs/examples/0.15.x/client-android/java/locale/get-countries-phones.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.getCountriesPhones(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/locale/get-countries.md b/docs/examples/0.15.x/client-android/java/locale/get-countries.md deleted file mode 100644 index f1c50fc8d1..0000000000 --- a/docs/examples/0.15.x/client-android/java/locale/get-countries.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.getCountries(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/locale/get-currencies.md b/docs/examples/0.15.x/client-android/java/locale/get-currencies.md deleted file mode 100644 index 63af14bbb3..0000000000 --- a/docs/examples/0.15.x/client-android/java/locale/get-currencies.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.getCurrencies(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/locale/get-languages.md b/docs/examples/0.15.x/client-android/java/locale/get-languages.md deleted file mode 100644 index 5952daafef..0000000000 --- a/docs/examples/0.15.x/client-android/java/locale/get-languages.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.getLanguages(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/locale/get.md b/docs/examples/0.15.x/client-android/java/locale/get.md deleted file mode 100644 index 417fc16f23..0000000000 --- a/docs/examples/0.15.x/client-android/java/locale/get.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.get(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/storage/create-file.md b/docs/examples/0.15.x/client-android/java/storage/create-file.md deleted file mode 100644 index 3b7099e216..0000000000 --- a/docs/examples/0.15.x/client-android/java/storage/create-file.md +++ /dev/null @@ -1,50 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.createFile( - "[BUCKET_ID]", - "[FILE_ID]", - File("file.png"), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/storage/delete-file.md b/docs/examples/0.15.x/client-android/java/storage/delete-file.md deleted file mode 100644 index 585593a8cb..0000000000 --- a/docs/examples/0.15.x/client-android/java/storage/delete-file.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.deleteFile( - "[BUCKET_ID]", - "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/storage/get-file-download.md b/docs/examples/0.15.x/client-android/java/storage/get-file-download.md deleted file mode 100644 index b16224804a..0000000000 --- a/docs/examples/0.15.x/client-android/java/storage/get-file-download.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.getFileDownload( - "[BUCKET_ID]", - "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/storage/get-file-preview.md b/docs/examples/0.15.x/client-android/java/storage/get-file-preview.md deleted file mode 100644 index 583c1a0a3c..0000000000 --- a/docs/examples/0.15.x/client-android/java/storage/get-file-preview.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.getFilePreview( - "[BUCKET_ID]", - "[FILE_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/storage/get-file-view.md b/docs/examples/0.15.x/client-android/java/storage/get-file-view.md deleted file mode 100644 index 21a5074aca..0000000000 --- a/docs/examples/0.15.x/client-android/java/storage/get-file-view.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.getFileView( - "[BUCKET_ID]", - "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/storage/get-file.md b/docs/examples/0.15.x/client-android/java/storage/get-file.md deleted file mode 100644 index 61740a9a46..0000000000 --- a/docs/examples/0.15.x/client-android/java/storage/get-file.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.getFile( - "[BUCKET_ID]", - "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/storage/list-files.md b/docs/examples/0.15.x/client-android/java/storage/list-files.md deleted file mode 100644 index a7ea06ec5b..0000000000 --- a/docs/examples/0.15.x/client-android/java/storage/list-files.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.listFiles( - "[BUCKET_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/storage/update-file.md b/docs/examples/0.15.x/client-android/java/storage/update-file.md deleted file mode 100644 index b3e8e904ef..0000000000 --- a/docs/examples/0.15.x/client-android/java/storage/update-file.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.updateFile( - "[BUCKET_ID]", - "[FILE_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/teams/create-membership.md b/docs/examples/0.15.x/client-android/java/teams/create-membership.md deleted file mode 100644 index f4d96de575..0000000000 --- a/docs/examples/0.15.x/client-android/java/teams/create-membership.md +++ /dev/null @@ -1,51 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.createMembership( - "[TEAM_ID]", - "email@example.com", - listOf(), - "https://example.com", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/teams/create.md b/docs/examples/0.15.x/client-android/java/teams/create.md deleted file mode 100644 index 3723b30b03..0000000000 --- a/docs/examples/0.15.x/client-android/java/teams/create.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.create( - "[TEAM_ID]", - "[NAME]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/teams/delete-membership.md b/docs/examples/0.15.x/client-android/java/teams/delete-membership.md deleted file mode 100644 index 98cb29ac75..0000000000 --- a/docs/examples/0.15.x/client-android/java/teams/delete-membership.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.deleteMembership( - "[TEAM_ID]", - "[MEMBERSHIP_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/teams/delete.md b/docs/examples/0.15.x/client-android/java/teams/delete.md deleted file mode 100644 index 828b457217..0000000000 --- a/docs/examples/0.15.x/client-android/java/teams/delete.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.delete( - "[TEAM_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/teams/get-membership.md b/docs/examples/0.15.x/client-android/java/teams/get-membership.md deleted file mode 100644 index 87c0160bf1..0000000000 --- a/docs/examples/0.15.x/client-android/java/teams/get-membership.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.getMembership( - "[TEAM_ID]", - "[MEMBERSHIP_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/teams/get-memberships.md b/docs/examples/0.15.x/client-android/java/teams/get-memberships.md deleted file mode 100644 index d8a4100b98..0000000000 --- a/docs/examples/0.15.x/client-android/java/teams/get-memberships.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.getMemberships( - "[TEAM_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/teams/get.md b/docs/examples/0.15.x/client-android/java/teams/get.md deleted file mode 100644 index 53ba33c4ca..0000000000 --- a/docs/examples/0.15.x/client-android/java/teams/get.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.get( - "[TEAM_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/teams/list.md b/docs/examples/0.15.x/client-android/java/teams/list.md deleted file mode 100644 index 61c2aa3f8e..0000000000 --- a/docs/examples/0.15.x/client-android/java/teams/list.md +++ /dev/null @@ -1,47 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.list( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/teams/update-membership-roles.md b/docs/examples/0.15.x/client-android/java/teams/update-membership-roles.md deleted file mode 100644 index ef6c67307e..0000000000 --- a/docs/examples/0.15.x/client-android/java/teams/update-membership-roles.md +++ /dev/null @@ -1,50 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.updateMembershipRoles( - "[TEAM_ID]", - "[MEMBERSHIP_ID]", - listOf() - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/teams/update-membership-status.md b/docs/examples/0.15.x/client-android/java/teams/update-membership-status.md deleted file mode 100644 index 447d0da2c9..0000000000 --- a/docs/examples/0.15.x/client-android/java/teams/update-membership-status.md +++ /dev/null @@ -1,51 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.updateMembershipStatus( - "[TEAM_ID]", - "[MEMBERSHIP_ID]", - "[USER_ID]", - "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/java/teams/update.md b/docs/examples/0.15.x/client-android/java/teams/update.md deleted file mode 100644 index b4df429a07..0000000000 --- a/docs/examples/0.15.x/client-android/java/teams/update.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.update( - "[TEAM_ID]", - "[NAME]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/0.15.x/client-android/kotlin/account/create-anonymous-session.md deleted file mode 100644 index 5fa06994fb..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/create-anonymous-session.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createAnonymousSession() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/0.15.x/client-android/kotlin/account/create-j-w-t.md deleted file mode 100644 index 212838b7fd..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/create-j-w-t.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createJWT() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/create-magic-u-r-l-session.md b/docs/examples/0.15.x/client-android/kotlin/account/create-magic-u-r-l-session.md deleted file mode 100644 index 15fa1c7a9f..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createMagicURLSession( - userId = "[USER_ID]", - email = "email@example.com", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/0.15.x/client-android/kotlin/account/create-o-auth2session.md deleted file mode 100644 index baf993069a..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/create-o-auth2session.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - account.createOAuth2Session( - activity = this@MainActivity, - provider = "amazon", - ) - - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/create-recovery.md b/docs/examples/0.15.x/client-android/kotlin/account/create-recovery.md deleted file mode 100644 index 2c1e7597b9..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/create-recovery.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createRecovery( - email = "email@example.com", - url = "https://example.com" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/create-session.md b/docs/examples/0.15.x/client-android/kotlin/account/create-session.md deleted file mode 100644 index 4999232e5b..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/create-session.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createSession( - email = "email@example.com", - password = "password" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/create-verification.md b/docs/examples/0.15.x/client-android/kotlin/account/create-verification.md deleted file mode 100644 index 1ebddee5cf..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/create-verification.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createVerification( - url = "https://example.com" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/create.md b/docs/examples/0.15.x/client-android/kotlin/account/create.md deleted file mode 100644 index ab2534f1db..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/create.md +++ /dev/null @@ -1,28 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.create( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/delete-session.md b/docs/examples/0.15.x/client-android/kotlin/account/delete-session.md deleted file mode 100644 index e670623490..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/delete-session.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.deleteSession( - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/0.15.x/client-android/kotlin/account/delete-sessions.md deleted file mode 100644 index ec30efdb8f..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/delete-sessions.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.deleteSessions() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/delete.md b/docs/examples/0.15.x/client-android/kotlin/account/delete.md deleted file mode 100644 index 7bfe95e88c..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/delete.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.delete() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/get-logs.md b/docs/examples/0.15.x/client-android/kotlin/account/get-logs.md deleted file mode 100644 index b8c89f4985..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/get-logs.md +++ /dev/null @@ -1,25 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.getLogs( - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/get-prefs.md b/docs/examples/0.15.x/client-android/kotlin/account/get-prefs.md deleted file mode 100644 index 9378cd2456..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/get-prefs.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.getPrefs() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/get-session.md b/docs/examples/0.15.x/client-android/kotlin/account/get-session.md deleted file mode 100644 index 45f00b69fc..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/get-session.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.getSession( - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/get-sessions.md b/docs/examples/0.15.x/client-android/kotlin/account/get-sessions.md deleted file mode 100644 index 4f939cc162..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/get-sessions.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.getSessions() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/get.md b/docs/examples/0.15.x/client-android/kotlin/account/get.md deleted file mode 100644 index c4c81a20aa..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/get.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.get() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/update-email.md b/docs/examples/0.15.x/client-android/kotlin/account/update-email.md deleted file mode 100644 index a9ec88b8a4..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/update-email.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateEmail( - email = "email@example.com", - password = "password" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/0.15.x/client-android/kotlin/account/update-magic-u-r-l-session.md deleted file mode 100644 index 3fe1b7c26e..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateMagicURLSession( - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/update-name.md b/docs/examples/0.15.x/client-android/kotlin/account/update-name.md deleted file mode 100644 index ce9d8a368f..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/update-name.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateName( - name = "[NAME]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/update-o-auth2tokens.md b/docs/examples/0.15.x/client-android/kotlin/account/update-o-auth2tokens.md deleted file mode 100644 index bfc4b2117a..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/update-o-auth2tokens.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateOAuth2Tokens( - sessionId = "[SESSION_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/update-password.md b/docs/examples/0.15.x/client-android/kotlin/account/update-password.md deleted file mode 100644 index edee78eab9..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/update-password.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updatePassword( - password = "password", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/update-prefs.md b/docs/examples/0.15.x/client-android/kotlin/account/update-prefs.md deleted file mode 100644 index 3059bc8196..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/update-prefs.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updatePrefs( - prefs = mapOf( "a" to "b" ) - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/update-recovery.md b/docs/examples/0.15.x/client-android/kotlin/account/update-recovery.md deleted file mode 100644 index 81c00b4f26..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/update-recovery.md +++ /dev/null @@ -1,29 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateRecovery( - userId = "[USER_ID]", - secret = "[SECRET]", - password = "password", - passwordAgain = "password" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/update-session.md b/docs/examples/0.15.x/client-android/kotlin/account/update-session.md deleted file mode 100644 index 465320d097..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/update-session.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateSession( - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/update-status.md b/docs/examples/0.15.x/client-android/kotlin/account/update-status.md deleted file mode 100644 index e138751287..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/update-status.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateStatus() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/account/update-verification.md b/docs/examples/0.15.x/client-android/kotlin/account/update-verification.md deleted file mode 100644 index cea2592a73..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/account/update-verification.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateVerification( - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/0.15.x/client-android/kotlin/avatars/get-browser.md deleted file mode 100644 index 95a2201d6a..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/avatars/get-browser.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getBrowser( - code = "aa", - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/0.15.x/client-android/kotlin/avatars/get-credit-card.md deleted file mode 100644 index 7507c40c5c..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/avatars/get-credit-card.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getCreditCard( - code = "amex", - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/0.15.x/client-android/kotlin/avatars/get-favicon.md deleted file mode 100644 index f8e2b400a8..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/avatars/get-favicon.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getFavicon( - url = "https://example.com" - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/0.15.x/client-android/kotlin/avatars/get-flag.md deleted file mode 100644 index 738ec8a91f..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/avatars/get-flag.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getFlag( - code = "af", - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/avatars/get-image.md b/docs/examples/0.15.x/client-android/kotlin/avatars/get-image.md deleted file mode 100644 index 25171b1447..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/avatars/get-image.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getImage( - url = "https://example.com", - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/0.15.x/client-android/kotlin/avatars/get-initials.md deleted file mode 100644 index e53a647b09..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/avatars/get-initials.md +++ /dev/null @@ -1,25 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getInitials( - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/0.15.x/client-android/kotlin/avatars/get-q-r.md deleted file mode 100644 index c9d60ea9c7..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/avatars/get-q-r.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getQR( - text = "[TEXT]", - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/database/create-document.md b/docs/examples/0.15.x/client-android/kotlin/database/create-document.md deleted file mode 100644 index d207383e62..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/database/create-document.md +++ /dev/null @@ -1,28 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Database - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val database = Database(client) - - GlobalScope.launch { - val response = database.createDocument( - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]", - data = mapOf( "a" to "b" ), - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/database/delete-document.md b/docs/examples/0.15.x/client-android/kotlin/database/delete-document.md deleted file mode 100644 index 49a85c8ebb..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/database/delete-document.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Database - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val database = Database(client) - - GlobalScope.launch { - val response = database.deleteDocument( - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/database/get-document.md b/docs/examples/0.15.x/client-android/kotlin/database/get-document.md deleted file mode 100644 index 3dd65c085d..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/database/get-document.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Database - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val database = Database(client) - - GlobalScope.launch { - val response = database.getDocument( - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/database/list-documents.md b/docs/examples/0.15.x/client-android/kotlin/database/list-documents.md deleted file mode 100644 index 65119819fd..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/database/list-documents.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Database - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val database = Database(client) - - GlobalScope.launch { - val response = database.listDocuments( - collectionId = "[COLLECTION_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/database/update-document.md b/docs/examples/0.15.x/client-android/kotlin/database/update-document.md deleted file mode 100644 index e19ce4a994..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/database/update-document.md +++ /dev/null @@ -1,28 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Database - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val database = Database(client) - - GlobalScope.launch { - val response = database.updateDocument( - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]", - data = mapOf( "a" to "b" ), - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/functions/create-execution.md b/docs/examples/0.15.x/client-android/kotlin/functions/create-execution.md deleted file mode 100644 index 3a7e599f8c..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/functions/create-execution.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val functions = Functions(client) - - GlobalScope.launch { - val response = functions.createExecution( - functionId = "[FUNCTION_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/functions/get-build.md b/docs/examples/0.15.x/client-android/kotlin/functions/get-build.md deleted file mode 100644 index 2a57065642..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/functions/get-build.md +++ /dev/null @@ -1,28 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val functions = Functions(client) - - GlobalScope.launch { - val response = functions.getBuild( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]", - buildId = "[BUILD_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/functions/get-execution.md b/docs/examples/0.15.x/client-android/kotlin/functions/get-execution.md deleted file mode 100644 index 781f26c743..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/functions/get-execution.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val functions = Functions(client) - - GlobalScope.launch { - val response = functions.getExecution( - functionId = "[FUNCTION_ID]", - executionId = "[EXECUTION_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/functions/list-executions.md b/docs/examples/0.15.x/client-android/kotlin/functions/list-executions.md deleted file mode 100644 index 4f11574f0d..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/functions/list-executions.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val functions = Functions(client) - - GlobalScope.launch { - val response = functions.listExecutions( - functionId = "[FUNCTION_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/functions/retry-build.md b/docs/examples/0.15.x/client-android/kotlin/functions/retry-build.md deleted file mode 100644 index 597421c9e3..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/functions/retry-build.md +++ /dev/null @@ -1,28 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val functions = Functions(client) - - GlobalScope.launch { - val response = functions.retryBuild( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]", - buildId = "[BUILD_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/locale/get-continents.md b/docs/examples/0.15.x/client-android/kotlin/locale/get-continents.md deleted file mode 100644 index faf1448d73..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/locale/get-continents.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.getContinents() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/locale/get-countries-e-u.md b/docs/examples/0.15.x/client-android/kotlin/locale/get-countries-e-u.md deleted file mode 100644 index 5a3552f1a7..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/locale/get-countries-e-u.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.getCountriesEU() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/locale/get-countries-phones.md b/docs/examples/0.15.x/client-android/kotlin/locale/get-countries-phones.md deleted file mode 100644 index 565097ef4b..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/locale/get-countries-phones.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.getCountriesPhones() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/locale/get-countries.md b/docs/examples/0.15.x/client-android/kotlin/locale/get-countries.md deleted file mode 100644 index e327c14ab8..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/locale/get-countries.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.getCountries() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/locale/get-currencies.md b/docs/examples/0.15.x/client-android/kotlin/locale/get-currencies.md deleted file mode 100644 index 00e11999e6..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/locale/get-currencies.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.getCurrencies() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/locale/get-languages.md b/docs/examples/0.15.x/client-android/kotlin/locale/get-languages.md deleted file mode 100644 index 796747a00d..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/locale/get-languages.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.getLanguages() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/locale/get.md b/docs/examples/0.15.x/client-android/kotlin/locale/get.md deleted file mode 100644 index f89c66a7ed..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/locale/get.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.get() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/storage/create-file.md b/docs/examples/0.15.x/client-android/kotlin/storage/create-file.md deleted file mode 100644 index c5cc6a3b24..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/storage/create-file.md +++ /dev/null @@ -1,28 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val response = storage.createFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - file = File("file.png"), - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/storage/delete-file.md b/docs/examples/0.15.x/client-android/kotlin/storage/delete-file.md deleted file mode 100644 index 1a4a5b9da1..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/storage/delete-file.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val response = storage.deleteFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/0.15.x/client-android/kotlin/storage/get-file-download.md deleted file mode 100644 index 3970fb8245..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/storage/get-file-download.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val result = storage.getFileDownload( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/0.15.x/client-android/kotlin/storage/get-file-preview.md deleted file mode 100644 index 780452729e..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/storage/get-file-preview.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val result = storage.getFilePreview( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/0.15.x/client-android/kotlin/storage/get-file-view.md deleted file mode 100644 index 107ad45679..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/storage/get-file-view.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val result = storage.getFileView( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/storage/get-file.md b/docs/examples/0.15.x/client-android/kotlin/storage/get-file.md deleted file mode 100644 index 30f640ba35..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/storage/get-file.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val response = storage.getFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/storage/list-files.md b/docs/examples/0.15.x/client-android/kotlin/storage/list-files.md deleted file mode 100644 index 20a253ab07..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/storage/list-files.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val response = storage.listFiles( - bucketId = "[BUCKET_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/storage/update-file.md b/docs/examples/0.15.x/client-android/kotlin/storage/update-file.md deleted file mode 100644 index 35b1afb939..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/storage/update-file.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val response = storage.updateFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/teams/create-membership.md b/docs/examples/0.15.x/client-android/kotlin/teams/create-membership.md deleted file mode 100644 index e2b7d16bfc..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/teams/create-membership.md +++ /dev/null @@ -1,29 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.createMembership( - teamId = "[TEAM_ID]", - email = "email@example.com", - roles = listOf(), - url = "https://example.com", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/teams/create.md b/docs/examples/0.15.x/client-android/kotlin/teams/create.md deleted file mode 100644 index 73857b80bb..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/teams/create.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.create( - teamId = "[TEAM_ID]", - name = "[NAME]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/0.15.x/client-android/kotlin/teams/delete-membership.md deleted file mode 100644 index 6545af5de7..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/teams/delete-membership.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.deleteMembership( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/teams/delete.md b/docs/examples/0.15.x/client-android/kotlin/teams/delete.md deleted file mode 100644 index de12449562..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/teams/delete.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.delete( - teamId = "[TEAM_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/teams/get-membership.md b/docs/examples/0.15.x/client-android/kotlin/teams/get-membership.md deleted file mode 100644 index aa3f29e74d..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/teams/get-membership.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.getMembership( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/teams/get-memberships.md b/docs/examples/0.15.x/client-android/kotlin/teams/get-memberships.md deleted file mode 100644 index 89b4f54559..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/teams/get-memberships.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.getMemberships( - teamId = "[TEAM_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/teams/get.md b/docs/examples/0.15.x/client-android/kotlin/teams/get.md deleted file mode 100644 index 54550b3ed6..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/teams/get.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.get( - teamId = "[TEAM_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/teams/list.md b/docs/examples/0.15.x/client-android/kotlin/teams/list.md deleted file mode 100644 index 6444205472..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/teams/list.md +++ /dev/null @@ -1,25 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.list( - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/teams/update-membership-roles.md b/docs/examples/0.15.x/client-android/kotlin/teams/update-membership-roles.md deleted file mode 100644 index d9a8a41895..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/teams/update-membership-roles.md +++ /dev/null @@ -1,28 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.updateMembershipRoles( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]", - roles = listOf() - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/0.15.x/client-android/kotlin/teams/update-membership-status.md deleted file mode 100644 index f8e10fdafc..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/teams/update-membership-status.md +++ /dev/null @@ -1,29 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.updateMembershipStatus( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]", - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-android/kotlin/teams/update.md b/docs/examples/0.15.x/client-android/kotlin/teams/update.md deleted file mode 100644 index 59dd69f081..0000000000 --- a/docs/examples/0.15.x/client-android/kotlin/teams/update.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.update( - teamId = "[TEAM_ID]", - name = "[NAME]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/0.15.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/0.15.x/client-apple/examples/account/create-anonymous-session.md deleted file mode 100644 index d2d71b9f00..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/create-anonymous-session.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let session = try await account.createAnonymousSession() - - print(String(describing: session) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/0.15.x/client-apple/examples/account/create-j-w-t.md deleted file mode 100644 index 51952f9953..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/create-j-w-t.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let jwt = try await account.createJWT() - - print(String(describing: jwt) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/create-magic-u-r-l-session.md b/docs/examples/0.15.x/client-apple/examples/account/create-magic-u-r-l-session.md deleted file mode 100644 index 3eab67aac4..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.createMagicURLSession( - userId: "[USER_ID]", - email: "email@example.com" - ) - - print(String(describing: token) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/0.15.x/client-apple/examples/account/create-o-auth2session.md deleted file mode 100644 index ddd7eb28a4..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let success = try await account.createOAuth2Session( - provider: "amazon" - ) - - print(String(describing: success) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/create-recovery.md b/docs/examples/0.15.x/client-apple/examples/account/create-recovery.md deleted file mode 100644 index 1f2d9b9e05..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/create-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.createRecovery( - email: "email@example.com", - url: "https://example.com" - ) - - print(String(describing: token) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/create-session.md b/docs/examples/0.15.x/client-apple/examples/account/create-session.md deleted file mode 100644 index dcaf9caa67..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/create-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let session = try await account.createSession( - email: "email@example.com", - password: "password" - ) - - print(String(describing: session) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/create-verification.md b/docs/examples/0.15.x/client-apple/examples/account/create-verification.md deleted file mode 100644 index cd0f9d5c87..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/create-verification.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.createVerification( - url: "https://example.com" - ) - - print(String(describing: token) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/create.md b/docs/examples/0.15.x/client-apple/examples/account/create.md deleted file mode 100644 index bd6e152e53..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/create.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.create( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/delete-session.md b/docs/examples/0.15.x/client-apple/examples/account/delete-session.md deleted file mode 100644 index 6f3dd76905..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/delete-session.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let result = try await account.deleteSession( - sessionId: "[SESSION_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/delete-sessions.md b/docs/examples/0.15.x/client-apple/examples/account/delete-sessions.md deleted file mode 100644 index f2721be95e..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/delete-sessions.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let result = try await account.deleteSessions() - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/delete.md b/docs/examples/0.15.x/client-apple/examples/account/delete.md deleted file mode 100644 index e43e10c2b7..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/delete.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - let account = Account(client) - account.delete() { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let ): - print(String(describing: ) - } - } -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/get-logs.md b/docs/examples/0.15.x/client-apple/examples/account/get-logs.md deleted file mode 100644 index 326672e682..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/get-logs.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let logList = try await account.getLogs() - - print(String(describing: logList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/get-prefs.md b/docs/examples/0.15.x/client-apple/examples/account/get-prefs.md deleted file mode 100644 index 6fb47ce31f..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/get-prefs.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let preferences = try await account.getPrefs() - - print(String(describing: preferences) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/get-session.md b/docs/examples/0.15.x/client-apple/examples/account/get-session.md deleted file mode 100644 index fa15d6d222..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/get-session.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let session = try await account.getSession( - sessionId: "[SESSION_ID]" - ) - - print(String(describing: session) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/get-sessions.md b/docs/examples/0.15.x/client-apple/examples/account/get-sessions.md deleted file mode 100644 index 81c02bbaf3..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/get-sessions.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let sessionList = try await account.getSessions() - - print(String(describing: sessionList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/get.md b/docs/examples/0.15.x/client-apple/examples/account/get.md deleted file mode 100644 index 09fd44655f..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/get.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.get() - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/update-email.md b/docs/examples/0.15.x/client-apple/examples/account/update-email.md deleted file mode 100644 index 67e1275783..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.updateEmail( - email: "email@example.com", - password: "password" - ) - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/0.15.x/client-apple/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index 34bfab9e80..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let session = try await account.updateMagicURLSession( - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: session) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/update-name.md b/docs/examples/0.15.x/client-apple/examples/account/update-name.md deleted file mode 100644 index 0ceff078a6..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/update-name.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.updateName( - name: "[NAME]" - ) - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/update-o-auth2tokens.md b/docs/examples/0.15.x/client-apple/examples/account/update-o-auth2tokens.md deleted file mode 100644 index 967c08a5bb..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/update-o-auth2tokens.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - let account = Account(client) - account.updateOAuth2Tokens( - sessionId: "[SESSION_ID]" - ) { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let session): - print(String(describing: session) - } - } -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/update-password.md b/docs/examples/0.15.x/client-apple/examples/account/update-password.md deleted file mode 100644 index a94bb2c3e6..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/update-password.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.updatePassword( - password: "password" - ) - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/update-prefs.md b/docs/examples/0.15.x/client-apple/examples/account/update-prefs.md deleted file mode 100644 index 3894ad2ae4..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/update-prefs.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.updatePrefs( - prefs: - ) - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/update-recovery.md b/docs/examples/0.15.x/client-apple/examples/account/update-recovery.md deleted file mode 100644 index f412c0f35a..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/update-recovery.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.updateRecovery( - userId: "[USER_ID]", - secret: "[SECRET]", - password: "password", - passwordAgain: "password" - ) - - print(String(describing: token) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/update-session.md b/docs/examples/0.15.x/client-apple/examples/account/update-session.md deleted file mode 100644 index 1d9282641c..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/update-session.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let session = try await account.updateSession( - sessionId: "[SESSION_ID]" - ) - - print(String(describing: session) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/update-status.md b/docs/examples/0.15.x/client-apple/examples/account/update-status.md deleted file mode 100644 index 172eae0478..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/update-status.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.updateStatus() - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/client-apple/examples/account/update-verification.md b/docs/examples/0.15.x/client-apple/examples/account/update-verification.md deleted file mode 100644 index 10e46b19d1..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/account/update-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.updateVerification( - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: token) -} diff --git a/docs/examples/0.15.x/client-apple/examples/avatars/get-browser.md b/docs/examples/0.15.x/client-apple/examples/avatars/get-browser.md deleted file mode 100644 index 536d9b6167..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/avatars/get-browser.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getBrowser( - code: "aa" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/0.15.x/client-apple/examples/avatars/get-credit-card.md deleted file mode 100644 index 7dff9411d0..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getCreditCard( - code: "amex" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/0.15.x/client-apple/examples/avatars/get-favicon.md deleted file mode 100644 index 1e2afab969..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/avatars/get-favicon.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getFavicon( - url: "https://example.com" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/client-apple/examples/avatars/get-flag.md b/docs/examples/0.15.x/client-apple/examples/avatars/get-flag.md deleted file mode 100644 index 43035a3530..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/avatars/get-flag.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getFlag( - code: "af" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/client-apple/examples/avatars/get-image.md b/docs/examples/0.15.x/client-apple/examples/avatars/get-image.md deleted file mode 100644 index a28299c153..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/avatars/get-image.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getImage( - url: "https://example.com" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/client-apple/examples/avatars/get-initials.md b/docs/examples/0.15.x/client-apple/examples/avatars/get-initials.md deleted file mode 100644 index df22100428..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/avatars/get-initials.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getInitials() - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/0.15.x/client-apple/examples/avatars/get-q-r.md deleted file mode 100644 index a9e3e9bae1..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/avatars/get-q-r.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getQR( - text: "[TEXT]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/client-apple/examples/database/create-document.md b/docs/examples/0.15.x/client-apple/examples/database/create-document.md deleted file mode 100644 index 416580a46f..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/database/create-document.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let database = Database(client) - let document = try await database.createDocument( - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]", - data: - ) - - print(String(describing: document) -} diff --git a/docs/examples/0.15.x/client-apple/examples/database/delete-document.md b/docs/examples/0.15.x/client-apple/examples/database/delete-document.md deleted file mode 100644 index 04eecbf316..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/database/delete-document.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let database = Database(client) - let result = try await database.deleteDocument( - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/client-apple/examples/database/get-document.md b/docs/examples/0.15.x/client-apple/examples/database/get-document.md deleted file mode 100644 index 26ad5a0b17..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/database/get-document.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let database = Database(client) - let document = try await database.getDocument( - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) - - print(String(describing: document) -} diff --git a/docs/examples/0.15.x/client-apple/examples/database/list-documents.md b/docs/examples/0.15.x/client-apple/examples/database/list-documents.md deleted file mode 100644 index f11cc2793f..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/database/list-documents.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let database = Database(client) - let documentList = try await database.listDocuments( - collectionId: "[COLLECTION_ID]" - ) - - print(String(describing: documentList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/database/update-document.md b/docs/examples/0.15.x/client-apple/examples/database/update-document.md deleted file mode 100644 index dc1e5646ac..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/database/update-document.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let database = Database(client) - let document = try await database.updateDocument( - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]", - data: - ) - - print(String(describing: document) -} diff --git a/docs/examples/0.15.x/client-apple/examples/functions/create-execution.md b/docs/examples/0.15.x/client-apple/examples/functions/create-execution.md deleted file mode 100644 index f086125c35..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/functions/create-execution.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let functions = Functions(client) - let execution = try await functions.createExecution( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: execution) -} diff --git a/docs/examples/0.15.x/client-apple/examples/functions/get-build.md b/docs/examples/0.15.x/client-apple/examples/functions/get-build.md deleted file mode 100644 index dc2c766da8..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/functions/get-build.md +++ /dev/null @@ -1,21 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - let functions = Functions(client) - functions.getBuild( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]", - buildId: "[BUILD_ID]" - ) { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let build): - print(String(describing: build) - } - } -} diff --git a/docs/examples/0.15.x/client-apple/examples/functions/get-execution.md b/docs/examples/0.15.x/client-apple/examples/functions/get-execution.md deleted file mode 100644 index 503c7f5412..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/functions/get-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let functions = Functions(client) - let execution = try await functions.getExecution( - functionId: "[FUNCTION_ID]", - executionId: "[EXECUTION_ID]" - ) - - print(String(describing: execution) -} diff --git a/docs/examples/0.15.x/client-apple/examples/functions/list-executions.md b/docs/examples/0.15.x/client-apple/examples/functions/list-executions.md deleted file mode 100644 index 45da8ee7a2..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/functions/list-executions.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let functions = Functions(client) - let executionList = try await functions.listExecutions( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: executionList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/functions/retry-build.md b/docs/examples/0.15.x/client-apple/examples/functions/retry-build.md deleted file mode 100644 index 1869dc8a61..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/functions/retry-build.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let functions = Functions(client) - let result = try await functions.retryBuild( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]", - buildId: "[BUILD_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/client-apple/examples/locale/get-continents.md b/docs/examples/0.15.x/client-apple/examples/locale/get-continents.md deleted file mode 100644 index efd4ffcda3..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/locale/get-continents.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let continentList = try await locale.getContinents() - - print(String(describing: continentList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/locale/get-countries-e-u.md b/docs/examples/0.15.x/client-apple/examples/locale/get-countries-e-u.md deleted file mode 100644 index 74837af07c..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let countryList = try await locale.getCountriesEU() - - print(String(describing: countryList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/locale/get-countries-phones.md b/docs/examples/0.15.x/client-apple/examples/locale/get-countries-phones.md deleted file mode 100644 index 6a9b72c197..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let phoneList = try await locale.getCountriesPhones() - - print(String(describing: phoneList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/locale/get-countries.md b/docs/examples/0.15.x/client-apple/examples/locale/get-countries.md deleted file mode 100644 index f753379f59..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/locale/get-countries.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let countryList = try await locale.getCountries() - - print(String(describing: countryList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/locale/get-currencies.md b/docs/examples/0.15.x/client-apple/examples/locale/get-currencies.md deleted file mode 100644 index 9282fef954..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/locale/get-currencies.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let currencyList = try await locale.getCurrencies() - - print(String(describing: currencyList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/locale/get-languages.md b/docs/examples/0.15.x/client-apple/examples/locale/get-languages.md deleted file mode 100644 index bc178e6b7a..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/locale/get-languages.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let languageList = try await locale.getLanguages() - - print(String(describing: languageList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/locale/get.md b/docs/examples/0.15.x/client-apple/examples/locale/get.md deleted file mode 100644 index 2b6101c5ed..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/locale/get.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let locale = try await locale.get() - - print(String(describing: locale) -} diff --git a/docs/examples/0.15.x/client-apple/examples/storage/create-file.md b/docs/examples/0.15.x/client-apple/examples/storage/create-file.md deleted file mode 100644 index 84e4af6425..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/storage/create-file.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let file = try await storage.createFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]", - file: File(name: "image.jpg", buffer: yourByteBuffer) - ) - - print(String(describing: file) -} diff --git a/docs/examples/0.15.x/client-apple/examples/storage/delete-file.md b/docs/examples/0.15.x/client-apple/examples/storage/delete-file.md deleted file mode 100644 index 5bad56677d..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/storage/delete-file.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let result = try await storage.deleteFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/client-apple/examples/storage/get-file-download.md b/docs/examples/0.15.x/client-apple/examples/storage/get-file-download.md deleted file mode 100644 index 1504f78d33..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/storage/get-file-download.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let byteBuffer = try await storage.getFileDownload( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/0.15.x/client-apple/examples/storage/get-file-preview.md deleted file mode 100644 index 33b80c49ae..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/storage/get-file-preview.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let byteBuffer = try await storage.getFilePreview( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/client-apple/examples/storage/get-file-view.md b/docs/examples/0.15.x/client-apple/examples/storage/get-file-view.md deleted file mode 100644 index 7e3524aabb..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/storage/get-file-view.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let byteBuffer = try await storage.getFileView( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/client-apple/examples/storage/get-file.md b/docs/examples/0.15.x/client-apple/examples/storage/get-file.md deleted file mode 100644 index 1f2fae973d..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/storage/get-file.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let file = try await storage.getFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: file) -} diff --git a/docs/examples/0.15.x/client-apple/examples/storage/list-files.md b/docs/examples/0.15.x/client-apple/examples/storage/list-files.md deleted file mode 100644 index 01ae959e43..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/storage/list-files.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let fileList = try await storage.listFiles( - bucketId: "[BUCKET_ID]" - ) - - print(String(describing: fileList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/storage/update-file.md b/docs/examples/0.15.x/client-apple/examples/storage/update-file.md deleted file mode 100644 index 85503f0199..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/storage/update-file.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let file = try await storage.updateFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: file) -} diff --git a/docs/examples/0.15.x/client-apple/examples/teams/create-membership.md b/docs/examples/0.15.x/client-apple/examples/teams/create-membership.md deleted file mode 100644 index 5a81e431d9..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/teams/create-membership.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let membership = try await teams.createMembership( - teamId: "[TEAM_ID]", - email: "email@example.com", - roles: [], - url: "https://example.com" - ) - - print(String(describing: membership) -} diff --git a/docs/examples/0.15.x/client-apple/examples/teams/create.md b/docs/examples/0.15.x/client-apple/examples/teams/create.md deleted file mode 100644 index 227ceb37b2..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/teams/create.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let team = try await teams.create( - teamId: "[TEAM_ID]", - name: "[NAME]" - ) - - print(String(describing: team) -} diff --git a/docs/examples/0.15.x/client-apple/examples/teams/delete-membership.md b/docs/examples/0.15.x/client-apple/examples/teams/delete-membership.md deleted file mode 100644 index 46a1ad7728..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/teams/delete-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let result = try await teams.deleteMembership( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/client-apple/examples/teams/delete.md b/docs/examples/0.15.x/client-apple/examples/teams/delete.md deleted file mode 100644 index d117a8bbf7..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/teams/delete.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let result = try await teams.delete( - teamId: "[TEAM_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/client-apple/examples/teams/get-membership.md b/docs/examples/0.15.x/client-apple/examples/teams/get-membership.md deleted file mode 100644 index 46bd83ecd6..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/teams/get-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let membershipList = try await teams.getMembership( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]" - ) - - print(String(describing: membershipList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/teams/get-memberships.md b/docs/examples/0.15.x/client-apple/examples/teams/get-memberships.md deleted file mode 100644 index 32e79a6faf..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/teams/get-memberships.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let membershipList = try await teams.getMemberships( - teamId: "[TEAM_ID]" - ) - - print(String(describing: membershipList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/teams/get.md b/docs/examples/0.15.x/client-apple/examples/teams/get.md deleted file mode 100644 index e4e0b9b68b..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/teams/get.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let team = try await teams.get( - teamId: "[TEAM_ID]" - ) - - print(String(describing: team) -} diff --git a/docs/examples/0.15.x/client-apple/examples/teams/list.md b/docs/examples/0.15.x/client-apple/examples/teams/list.md deleted file mode 100644 index a1e454fd6c..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/teams/list.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let teamList = try await teams.list() - - print(String(describing: teamList) -} diff --git a/docs/examples/0.15.x/client-apple/examples/teams/update-membership-roles.md b/docs/examples/0.15.x/client-apple/examples/teams/update-membership-roles.md deleted file mode 100644 index 68ed875e42..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let membership = try await teams.updateMembershipRoles( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]", - roles: [] - ) - - print(String(describing: membership) -} diff --git a/docs/examples/0.15.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/0.15.x/client-apple/examples/teams/update-membership-status.md deleted file mode 100644 index 9712539a6e..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/teams/update-membership-status.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let membership = try await teams.updateMembershipStatus( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]", - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: membership) -} diff --git a/docs/examples/0.15.x/client-apple/examples/teams/update.md b/docs/examples/0.15.x/client-apple/examples/teams/update.md deleted file mode 100644 index 90a4332756..0000000000 --- a/docs/examples/0.15.x/client-apple/examples/teams/update.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let team = try await teams.update( - teamId: "[TEAM_ID]", - name: "[NAME]" - ) - - print(String(describing: team) -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/0.15.x/client-flutter/examples/account/create-anonymous-session.md deleted file mode 100644 index 01b43744b0..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/create-anonymous-session.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createAnonymousSession(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/0.15.x/client-flutter/examples/account/create-j-w-t.md deleted file mode 100644 index f88c7ad3ea..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/create-j-w-t.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createJWT(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/create-magic-u-r-l-session.md b/docs/examples/0.15.x/client-flutter/examples/account/create-magic-u-r-l-session.md deleted file mode 100644 index 4d36b45b30..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createMagicURLSession( - userId: '[USER_ID]', - email: 'email@example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/0.15.x/client-flutter/examples/account/create-o-auth2session.md deleted file mode 100644 index a100378a00..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createOAuth2Session( - provider: 'amazon', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/create-recovery.md b/docs/examples/0.15.x/client-flutter/examples/account/create-recovery.md deleted file mode 100644 index 2a5df1aa49..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/create-recovery.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createRecovery( - email: 'email@example.com', - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/create-session.md b/docs/examples/0.15.x/client-flutter/examples/account/create-session.md deleted file mode 100644 index 6233665a43..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/create-session.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createSession( - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/create-verification.md b/docs/examples/0.15.x/client-flutter/examples/account/create-verification.md deleted file mode 100644 index 18fa98aed2..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/create-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createVerification( - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/create.md b/docs/examples/0.15.x/client-flutter/examples/account/create.md deleted file mode 100644 index 37447d9810..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/create.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.create( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/delete-session.md b/docs/examples/0.15.x/client-flutter/examples/account/delete-session.md deleted file mode 100644 index c116ef1188..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/delete-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.deleteSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/0.15.x/client-flutter/examples/account/delete-sessions.md deleted file mode 100644 index 0d84b9d121..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/delete-sessions.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.deleteSessions(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/delete.md b/docs/examples/0.15.x/client-flutter/examples/account/delete.md deleted file mode 100644 index c08891e787..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/delete.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.delete(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/get-logs.md b/docs/examples/0.15.x/client-flutter/examples/account/get-logs.md deleted file mode 100644 index 6cb5cf9714..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/get-logs.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.getLogs( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/get-prefs.md b/docs/examples/0.15.x/client-flutter/examples/account/get-prefs.md deleted file mode 100644 index 2d6efd54db..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/get-prefs.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.getPrefs(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/get-session.md b/docs/examples/0.15.x/client-flutter/examples/account/get-session.md deleted file mode 100644 index 4d93a81c72..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/get-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.getSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/get-sessions.md b/docs/examples/0.15.x/client-flutter/examples/account/get-sessions.md deleted file mode 100644 index a44eac144b..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/get-sessions.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.getSessions(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/get.md b/docs/examples/0.15.x/client-flutter/examples/account/get.md deleted file mode 100644 index 733d8842ce..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/get.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.get(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/update-email.md b/docs/examples/0.15.x/client-flutter/examples/account/update-email.md deleted file mode 100644 index 30dff9b7c9..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/update-email.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateEmail( - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/0.15.x/client-flutter/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index 96881103b5..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateMagicURLSession( - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/update-name.md b/docs/examples/0.15.x/client-flutter/examples/account/update-name.md deleted file mode 100644 index 01ff7a0b62..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/update-name.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateName( - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/update-o-auth2tokens.md b/docs/examples/0.15.x/client-flutter/examples/account/update-o-auth2tokens.md deleted file mode 100644 index 4f3424974d..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/update-o-auth2tokens.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateOAuth2Tokens( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/update-password.md b/docs/examples/0.15.x/client-flutter/examples/account/update-password.md deleted file mode 100644 index a4647c95bc..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/update-password.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updatePassword( - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/update-prefs.md b/docs/examples/0.15.x/client-flutter/examples/account/update-prefs.md deleted file mode 100644 index bb7b8f800e..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/update-prefs.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updatePrefs( - prefs: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/update-recovery.md b/docs/examples/0.15.x/client-flutter/examples/account/update-recovery.md deleted file mode 100644 index df9f144600..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/update-recovery.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateRecovery( - userId: '[USER_ID]', - secret: '[SECRET]', - password: 'password', - passwordAgain: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/update-session.md b/docs/examples/0.15.x/client-flutter/examples/account/update-session.md deleted file mode 100644 index 37fd58c3fd..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/update-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/update-status.md b/docs/examples/0.15.x/client-flutter/examples/account/update-status.md deleted file mode 100644 index fb3790ead8..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/update-status.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateStatus(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/account/update-verification.md b/docs/examples/0.15.x/client-flutter/examples/account/update-verification.md deleted file mode 100644 index 2bfbaed75c..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/account/update-verification.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateVerification( - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/0.15.x/client-flutter/examples/avatars/get-browser.md deleted file mode 100644 index f908d11099..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/avatars/get-browser.md +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getBrowser( - code: 'aa', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getBrowser( - code: 'aa', - ), //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 - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/0.15.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/0.15.x/client-flutter/examples/avatars/get-credit-card.md deleted file mode 100644 index 0c6ff01d19..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getCreditCard( - code: 'amex', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getCreditCard( - code: 'amex', - ), //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 - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/0.15.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/0.15.x/client-flutter/examples/avatars/get-favicon.md deleted file mode 100644 index 6df7c2dfbf..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/avatars/get-favicon.md +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getFavicon( - url: 'https://example.com', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getFavicon( - url: 'https://example.com', - ), //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 - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/0.15.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/0.15.x/client-flutter/examples/avatars/get-flag.md deleted file mode 100644 index fa5b60d767..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/avatars/get-flag.md +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getFlag( - code: 'af', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getFlag( - code: 'af', - ), //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 - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/0.15.x/client-flutter/examples/avatars/get-image.md b/docs/examples/0.15.x/client-flutter/examples/avatars/get-image.md deleted file mode 100644 index 219d160d8d..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/avatars/get-image.md +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getImage( - url: 'https://example.com', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getImage( - url: 'https://example.com', - ), //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 - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/0.15.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/0.15.x/client-flutter/examples/avatars/get-initials.md deleted file mode 100644 index cd1b1f7e9c..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/avatars/get-initials.md +++ /dev/null @@ -1,32 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getInitials( - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getInitials( - ), //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 - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/0.15.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/0.15.x/client-flutter/examples/avatars/get-q-r.md deleted file mode 100644 index df6ebd3c8c..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/avatars/get-q-r.md +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getQR( - text: '[TEXT]', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getQR( - text: '[TEXT]', - ), //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 - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/0.15.x/client-flutter/examples/database/create-document.md b/docs/examples/0.15.x/client-flutter/examples/database/create-document.md deleted file mode 100644 index 9027b71dca..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/database/create-document.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = database.createDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - data: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/database/delete-document.md b/docs/examples/0.15.x/client-flutter/examples/database/delete-document.md deleted file mode 100644 index 94479a0949..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/database/delete-document.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = database.deleteDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/database/get-document.md b/docs/examples/0.15.x/client-flutter/examples/database/get-document.md deleted file mode 100644 index 153ad8e0f9..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/database/get-document.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = database.getDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/database/list-documents.md b/docs/examples/0.15.x/client-flutter/examples/database/list-documents.md deleted file mode 100644 index dc6893a285..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/database/list-documents.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = database.listDocuments( - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/database/update-document.md b/docs/examples/0.15.x/client-flutter/examples/database/update-document.md deleted file mode 100644 index 65c23a297e..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/database/update-document.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = database.updateDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - data: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/functions/create-execution.md b/docs/examples/0.15.x/client-flutter/examples/functions/create-execution.md deleted file mode 100644 index 70b617ffab..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/functions/create-execution.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = functions.createExecution( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/functions/get-build.md b/docs/examples/0.15.x/client-flutter/examples/functions/get-build.md deleted file mode 100644 index 85f6c8e220..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/functions/get-build.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = functions.getBuild( - functionId: '[FUNCTION_ID]', - deploymentId: '[DEPLOYMENT_ID]', - buildId: '[BUILD_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/functions/get-execution.md b/docs/examples/0.15.x/client-flutter/examples/functions/get-execution.md deleted file mode 100644 index a10f7933c2..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/functions/get-execution.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = functions.getExecution( - functionId: '[FUNCTION_ID]', - executionId: '[EXECUTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/functions/list-executions.md b/docs/examples/0.15.x/client-flutter/examples/functions/list-executions.md deleted file mode 100644 index 3f59aa3f20..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/functions/list-executions.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = functions.listExecutions( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/functions/retry-build.md b/docs/examples/0.15.x/client-flutter/examples/functions/retry-build.md deleted file mode 100644 index 1e6c174e07..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/functions/retry-build.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = functions.retryBuild( - functionId: '[FUNCTION_ID]', - deploymentId: '[DEPLOYMENT_ID]', - buildId: '[BUILD_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/locale/get-continents.md b/docs/examples/0.15.x/client-flutter/examples/locale/get-continents.md deleted file mode 100644 index 63920e735a..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/locale/get-continents.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.getContinents(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/locale/get-countries-e-u.md b/docs/examples/0.15.x/client-flutter/examples/locale/get-countries-e-u.md deleted file mode 100644 index 39f3a1d709..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.getCountriesEU(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/locale/get-countries-phones.md b/docs/examples/0.15.x/client-flutter/examples/locale/get-countries-phones.md deleted file mode 100644 index 44ff02603b..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.getCountriesPhones(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/locale/get-countries.md b/docs/examples/0.15.x/client-flutter/examples/locale/get-countries.md deleted file mode 100644 index 97ef85e1e6..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/locale/get-countries.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.getCountries(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/locale/get-currencies.md b/docs/examples/0.15.x/client-flutter/examples/locale/get-currencies.md deleted file mode 100644 index fb27e3d957..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/locale/get-currencies.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.getCurrencies(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/locale/get-languages.md b/docs/examples/0.15.x/client-flutter/examples/locale/get-languages.md deleted file mode 100644 index badc806861..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/locale/get-languages.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.getLanguages(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/locale/get.md b/docs/examples/0.15.x/client-flutter/examples/locale/get.md deleted file mode 100644 index 21b1a6cff2..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/locale/get.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.get(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/storage/create-file.md b/docs/examples/0.15.x/client-flutter/examples/storage/create-file.md deleted file mode 100644 index 5c591ff223..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/storage/create-file.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'dart:io'; -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = storage.createFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - file: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/storage/delete-file.md b/docs/examples/0.15.x/client-flutter/examples/storage/delete-file.md deleted file mode 100644 index ee193d936f..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/storage/delete-file.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = storage.deleteFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/0.15.x/client-flutter/examples/storage/get-file-download.md deleted file mode 100644 index ea3f2abfc8..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/storage/get-file-download.md +++ /dev/null @@ -1,36 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = storage.getFileDownload( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: storage.getFileDownload( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ), //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 - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/0.15.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/0.15.x/client-flutter/examples/storage/get-file-preview.md deleted file mode 100644 index 1a0fca2911..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/storage/get-file-preview.md +++ /dev/null @@ -1,36 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = storage.getFilePreview( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: storage.getFilePreview( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ), //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 - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/0.15.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/0.15.x/client-flutter/examples/storage/get-file-view.md deleted file mode 100644 index 46051338eb..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/storage/get-file-view.md +++ /dev/null @@ -1,36 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = storage.getFileView( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: storage.getFileView( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ), //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 - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/0.15.x/client-flutter/examples/storage/get-file.md b/docs/examples/0.15.x/client-flutter/examples/storage/get-file.md deleted file mode 100644 index 26e5db0777..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/storage/get-file.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = storage.getFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/storage/list-files.md b/docs/examples/0.15.x/client-flutter/examples/storage/list-files.md deleted file mode 100644 index b1d095a5c7..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/storage/list-files.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = storage.listFiles( - bucketId: '[BUCKET_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/storage/update-file.md b/docs/examples/0.15.x/client-flutter/examples/storage/update-file.md deleted file mode 100644 index 71056526e9..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/storage/update-file.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = storage.updateFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/teams/create-membership.md b/docs/examples/0.15.x/client-flutter/examples/teams/create-membership.md deleted file mode 100644 index ef5931ea66..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/teams/create-membership.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.createMembership( - teamId: '[TEAM_ID]', - email: 'email@example.com', - roles: [], - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/teams/create.md b/docs/examples/0.15.x/client-flutter/examples/teams/create.md deleted file mode 100644 index 5333ce35f8..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/teams/create.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.create( - teamId: '[TEAM_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/0.15.x/client-flutter/examples/teams/delete-membership.md deleted file mode 100644 index 8192b8528e..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/teams/delete-membership.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.deleteMembership( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/teams/delete.md b/docs/examples/0.15.x/client-flutter/examples/teams/delete.md deleted file mode 100644 index e55c62b2e3..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/teams/delete.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.delete( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/teams/get-membership.md b/docs/examples/0.15.x/client-flutter/examples/teams/get-membership.md deleted file mode 100644 index 6abecfe3f8..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/teams/get-membership.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.getMembership( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/teams/get-memberships.md b/docs/examples/0.15.x/client-flutter/examples/teams/get-memberships.md deleted file mode 100644 index 3116ca86ad..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/teams/get-memberships.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.getMemberships( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/teams/get.md b/docs/examples/0.15.x/client-flutter/examples/teams/get.md deleted file mode 100644 index 25eb2453fc..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/teams/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.get( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/teams/list.md b/docs/examples/0.15.x/client-flutter/examples/teams/list.md deleted file mode 100644 index 8657f80fd3..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/teams/list.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.list( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/teams/update-membership-roles.md b/docs/examples/0.15.x/client-flutter/examples/teams/update-membership-roles.md deleted file mode 100644 index 7615752cd9..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.updateMembershipRoles( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - roles: [], - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/0.15.x/client-flutter/examples/teams/update-membership-status.md deleted file mode 100644 index 7cda544d00..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/teams/update-membership-status.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.updateMembershipStatus( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-flutter/examples/teams/update.md b/docs/examples/0.15.x/client-flutter/examples/teams/update.md deleted file mode 100644 index 838639be9b..0000000000 --- a/docs/examples/0.15.x/client-flutter/examples/teams/update.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.update( - teamId: '[TEAM_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/0.15.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/0.15.x/client-web/examples/account/create-anonymous-session.md deleted file mode 100644 index 8979218e0f..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/create-anonymous-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.createAnonymousSession(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/create-j-w-t.md b/docs/examples/0.15.x/client-web/examples/account/create-j-w-t.md deleted file mode 100644 index cf00356375..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/create-j-w-t.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.createJWT(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/0.15.x/client-web/examples/account/create-magic-u-r-l-session.md deleted file mode 100644 index 5318f5f276..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.createMagicURLSession('[USER_ID]', 'email@example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/0.15.x/client-web/examples/account/create-o-auth2session.md deleted file mode 100644 index 886a8f8480..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -// Go to OAuth provider login page -sdk.account.createOAuth2Session('amazon'); - diff --git a/docs/examples/0.15.x/client-web/examples/account/create-recovery.md b/docs/examples/0.15.x/client-web/examples/account/create-recovery.md deleted file mode 100644 index f57e926e9b..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/create-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.createRecovery('email@example.com', 'https://example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/create-session.md b/docs/examples/0.15.x/client-web/examples/account/create-session.md deleted file mode 100644 index f41438306e..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/create-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.createSession('email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/create-verification.md b/docs/examples/0.15.x/client-web/examples/account/create-verification.md deleted file mode 100644 index 6a00f1a3e1..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/create-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.createVerification('https://example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/create.md b/docs/examples/0.15.x/client-web/examples/account/create.md deleted file mode 100644 index 18f2fbbdc6..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/create.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.create('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/delete-session.md b/docs/examples/0.15.x/client-web/examples/account/delete-session.md deleted file mode 100644 index b3f46d15a9..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.deleteSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/delete-sessions.md b/docs/examples/0.15.x/client-web/examples/account/delete-sessions.md deleted file mode 100644 index e89ba3087a..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.deleteSessions(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/delete.md b/docs/examples/0.15.x/client-web/examples/account/delete.md deleted file mode 100644 index ad281d7a3c..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.delete(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/get-logs.md b/docs/examples/0.15.x/client-web/examples/account/get-logs.md deleted file mode 100644 index f382d7216c..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/get-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.getLogs(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/get-prefs.md b/docs/examples/0.15.x/client-web/examples/account/get-prefs.md deleted file mode 100644 index 99e86d4f1d..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.getPrefs(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/get-session.md b/docs/examples/0.15.x/client-web/examples/account/get-session.md deleted file mode 100644 index 79ec93f6e9..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/get-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.getSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/get-sessions.md b/docs/examples/0.15.x/client-web/examples/account/get-sessions.md deleted file mode 100644 index 384e6fa347..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/get-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.getSessions(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/get.md b/docs/examples/0.15.x/client-web/examples/account/get.md deleted file mode 100644 index cc933152a2..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/get.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.get(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/update-email.md b/docs/examples/0.15.x/client-web/examples/account/update-email.md deleted file mode 100644 index e4a68e25c9..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateEmail('email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/0.15.x/client-web/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index 3c00386b7f..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateMagicURLSession('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/update-name.md b/docs/examples/0.15.x/client-web/examples/account/update-name.md deleted file mode 100644 index ff782195b1..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateName('[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/update-o-auth2tokens.md b/docs/examples/0.15.x/client-web/examples/account/update-o-auth2tokens.md deleted file mode 100644 index 1e1cd31891..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/update-o-auth2tokens.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateOAuth2Tokens('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/update-password.md b/docs/examples/0.15.x/client-web/examples/account/update-password.md deleted file mode 100644 index d551ed726f..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updatePassword('password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/update-prefs.md b/docs/examples/0.15.x/client-web/examples/account/update-prefs.md deleted file mode 100644 index 232b77025b..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updatePrefs({}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/update-recovery.md b/docs/examples/0.15.x/client-web/examples/account/update-recovery.md deleted file mode 100644 index 6fe36c017e..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/update-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/update-session.md b/docs/examples/0.15.x/client-web/examples/account/update-session.md deleted file mode 100644 index cfb61b679a..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/update-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/update-status.md b/docs/examples/0.15.x/client-web/examples/account/update-status.md deleted file mode 100644 index 1b22ae81ad..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/update-status.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateStatus(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/account/update-verification.md b/docs/examples/0.15.x/client-web/examples/account/update-verification.md deleted file mode 100644 index e3312c5d5b..0000000000 --- a/docs/examples/0.15.x/client-web/examples/account/update-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateVerification('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/avatars/get-browser.md b/docs/examples/0.15.x/client-web/examples/avatars/get-browser.md deleted file mode 100644 index fe0143b818..0000000000 --- a/docs/examples/0.15.x/client-web/examples/avatars/get-browser.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getBrowser('aa'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/0.15.x/client-web/examples/avatars/get-credit-card.md deleted file mode 100644 index 5477094ca5..0000000000 --- a/docs/examples/0.15.x/client-web/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getCreditCard('amex'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/avatars/get-favicon.md b/docs/examples/0.15.x/client-web/examples/avatars/get-favicon.md deleted file mode 100644 index 1327bb7384..0000000000 --- a/docs/examples/0.15.x/client-web/examples/avatars/get-favicon.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getFavicon('https://example.com'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/avatars/get-flag.md b/docs/examples/0.15.x/client-web/examples/avatars/get-flag.md deleted file mode 100644 index 13a90c3075..0000000000 --- a/docs/examples/0.15.x/client-web/examples/avatars/get-flag.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getFlag('af'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/avatars/get-image.md b/docs/examples/0.15.x/client-web/examples/avatars/get-image.md deleted file mode 100644 index 82cb205a74..0000000000 --- a/docs/examples/0.15.x/client-web/examples/avatars/get-image.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getImage('https://example.com'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/avatars/get-initials.md b/docs/examples/0.15.x/client-web/examples/avatars/get-initials.md deleted file mode 100644 index a3da13d460..0000000000 --- a/docs/examples/0.15.x/client-web/examples/avatars/get-initials.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getInitials(); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/avatars/get-q-r.md b/docs/examples/0.15.x/client-web/examples/avatars/get-q-r.md deleted file mode 100644 index c900a63531..0000000000 --- a/docs/examples/0.15.x/client-web/examples/avatars/get-q-r.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getQR('[TEXT]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/database/create-document.md b/docs/examples/0.15.x/client-web/examples/database/create-document.md deleted file mode 100644 index 5f57b2fc3d..0000000000 --- a/docs/examples/0.15.x/client-web/examples/database/create-document.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/database/delete-document.md b/docs/examples/0.15.x/client-web/examples/database/delete-document.md deleted file mode 100644 index 557662966d..0000000000 --- a/docs/examples/0.15.x/client-web/examples/database/delete-document.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/database/get-document.md b/docs/examples/0.15.x/client-web/examples/database/get-document.md deleted file mode 100644 index 841157f551..0000000000 --- a/docs/examples/0.15.x/client-web/examples/database/get-document.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/database/list-documents.md b/docs/examples/0.15.x/client-web/examples/database/list-documents.md deleted file mode 100644 index 620137cf8e..0000000000 --- a/docs/examples/0.15.x/client-web/examples/database/list-documents.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.listDocuments('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/database/update-document.md b/docs/examples/0.15.x/client-web/examples/database/update-document.md deleted file mode 100644 index b07b2ecac1..0000000000 --- a/docs/examples/0.15.x/client-web/examples/database/update-document.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/functions/create-execution.md b/docs/examples/0.15.x/client-web/examples/functions/create-execution.md deleted file mode 100644 index 87dc73a205..0000000000 --- a/docs/examples/0.15.x/client-web/examples/functions/create-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.createExecution('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/functions/get-build.md b/docs/examples/0.15.x/client-web/examples/functions/get-build.md deleted file mode 100644 index 82028f2df7..0000000000 --- a/docs/examples/0.15.x/client-web/examples/functions/get-build.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.getBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/functions/get-execution.md b/docs/examples/0.15.x/client-web/examples/functions/get-execution.md deleted file mode 100644 index a8a0c4a0c8..0000000000 --- a/docs/examples/0.15.x/client-web/examples/functions/get-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/functions/list-executions.md b/docs/examples/0.15.x/client-web/examples/functions/list-executions.md deleted file mode 100644 index 82652ddb6c..0000000000 --- a/docs/examples/0.15.x/client-web/examples/functions/list-executions.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.listExecutions('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/functions/retry-build.md b/docs/examples/0.15.x/client-web/examples/functions/retry-build.md deleted file mode 100644 index e0f49976b0..0000000000 --- a/docs/examples/0.15.x/client-web/examples/functions/retry-build.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.retryBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/locale/get-continents.md b/docs/examples/0.15.x/client-web/examples/locale/get-continents.md deleted file mode 100644 index f0798a820c..0000000000 --- a/docs/examples/0.15.x/client-web/examples/locale/get-continents.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.getContinents(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/locale/get-countries-e-u.md b/docs/examples/0.15.x/client-web/examples/locale/get-countries-e-u.md deleted file mode 100644 index 7bc6aa2d50..0000000000 --- a/docs/examples/0.15.x/client-web/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.getCountriesEU(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/locale/get-countries-phones.md b/docs/examples/0.15.x/client-web/examples/locale/get-countries-phones.md deleted file mode 100644 index e92982c1a2..0000000000 --- a/docs/examples/0.15.x/client-web/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.getCountriesPhones(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/locale/get-countries.md b/docs/examples/0.15.x/client-web/examples/locale/get-countries.md deleted file mode 100644 index bb12e6ab5f..0000000000 --- a/docs/examples/0.15.x/client-web/examples/locale/get-countries.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.getCountries(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/locale/get-currencies.md b/docs/examples/0.15.x/client-web/examples/locale/get-currencies.md deleted file mode 100644 index 3382c2015c..0000000000 --- a/docs/examples/0.15.x/client-web/examples/locale/get-currencies.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.getCurrencies(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/locale/get-languages.md b/docs/examples/0.15.x/client-web/examples/locale/get-languages.md deleted file mode 100644 index a7fa4a0170..0000000000 --- a/docs/examples/0.15.x/client-web/examples/locale/get-languages.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.getLanguages(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/locale/get.md b/docs/examples/0.15.x/client-web/examples/locale/get.md deleted file mode 100644 index 89ade06941..0000000000 --- a/docs/examples/0.15.x/client-web/examples/locale/get.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.get(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/storage/create-file.md b/docs/examples/0.15.x/client-web/examples/storage/create-file.md deleted file mode 100644 index f464fe608e..0000000000 --- a/docs/examples/0.15.x/client-web/examples/storage/create-file.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.createFile('[BUCKET_ID]', '[FILE_ID]', document.getElementById('uploader').files[0]); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/storage/delete-file.md b/docs/examples/0.15.x/client-web/examples/storage/delete-file.md deleted file mode 100644 index 94c9e3112c..0000000000 --- a/docs/examples/0.15.x/client-web/examples/storage/delete-file.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.deleteFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/storage/get-file-download.md b/docs/examples/0.15.x/client-web/examples/storage/get-file-download.md deleted file mode 100644 index 18a01aaa91..0000000000 --- a/docs/examples/0.15.x/client-web/examples/storage/get-file-download.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/storage/get-file-preview.md b/docs/examples/0.15.x/client-web/examples/storage/get-file-preview.md deleted file mode 100644 index b9d9377e1f..0000000000 --- a/docs/examples/0.15.x/client-web/examples/storage/get-file-preview.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.storage.getFilePreview('[BUCKET_ID]', '[FILE_ID]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/storage/get-file-view.md b/docs/examples/0.15.x/client-web/examples/storage/get-file-view.md deleted file mode 100644 index eae4e78d6a..0000000000 --- a/docs/examples/0.15.x/client-web/examples/storage/get-file-view.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.storage.getFileView('[BUCKET_ID]', '[FILE_ID]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/storage/get-file.md b/docs/examples/0.15.x/client-web/examples/storage/get-file.md deleted file mode 100644 index 4a8eb23038..0000000000 --- a/docs/examples/0.15.x/client-web/examples/storage/get-file.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.getFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/storage/list-files.md b/docs/examples/0.15.x/client-web/examples/storage/list-files.md deleted file mode 100644 index f4a83cd29d..0000000000 --- a/docs/examples/0.15.x/client-web/examples/storage/list-files.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.listFiles('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/storage/update-file.md b/docs/examples/0.15.x/client-web/examples/storage/update-file.md deleted file mode 100644 index fbb04a9bda..0000000000 --- a/docs/examples/0.15.x/client-web/examples/storage/update-file.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.updateFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/teams/create-membership.md b/docs/examples/0.15.x/client-web/examples/teams/create-membership.md deleted file mode 100644 index 68b7f2be17..0000000000 --- a/docs/examples/0.15.x/client-web/examples/teams/create-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/teams/create.md b/docs/examples/0.15.x/client-web/examples/teams/create.md deleted file mode 100644 index c0b5e6aa06..0000000000 --- a/docs/examples/0.15.x/client-web/examples/teams/create.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.create('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/teams/delete-membership.md b/docs/examples/0.15.x/client-web/examples/teams/delete-membership.md deleted file mode 100644 index 46916ab1f4..0000000000 --- a/docs/examples/0.15.x/client-web/examples/teams/delete-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/teams/delete.md b/docs/examples/0.15.x/client-web/examples/teams/delete.md deleted file mode 100644 index e04f9f505a..0000000000 --- a/docs/examples/0.15.x/client-web/examples/teams/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.delete('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/teams/get-membership.md b/docs/examples/0.15.x/client-web/examples/teams/get-membership.md deleted file mode 100644 index 0ff21ca48e..0000000000 --- a/docs/examples/0.15.x/client-web/examples/teams/get-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/teams/get-memberships.md b/docs/examples/0.15.x/client-web/examples/teams/get-memberships.md deleted file mode 100644 index c23f190cbe..0000000000 --- a/docs/examples/0.15.x/client-web/examples/teams/get-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.getMemberships('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/teams/get.md b/docs/examples/0.15.x/client-web/examples/teams/get.md deleted file mode 100644 index c05bd59a0b..0000000000 --- a/docs/examples/0.15.x/client-web/examples/teams/get.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.get('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/teams/list.md b/docs/examples/0.15.x/client-web/examples/teams/list.md deleted file mode 100644 index 1e1a974d80..0000000000 --- a/docs/examples/0.15.x/client-web/examples/teams/list.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.list(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/teams/update-membership-roles.md b/docs/examples/0.15.x/client-web/examples/teams/update-membership-roles.md deleted file mode 100644 index 1d25e2601e..0000000000 --- a/docs/examples/0.15.x/client-web/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/teams/update-membership-status.md b/docs/examples/0.15.x/client-web/examples/teams/update-membership-status.md deleted file mode 100644 index 032f162501..0000000000 --- a/docs/examples/0.15.x/client-web/examples/teams/update-membership-status.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/client-web/examples/teams/update.md b/docs/examples/0.15.x/client-web/examples/teams/update.md deleted file mode 100644 index bcf53d1605..0000000000 --- a/docs/examples/0.15.x/client-web/examples/teams/update.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.update('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-cli/examples/account/create-anonymous-session.md b/docs/examples/0.15.x/console-cli/examples/account/create-anonymous-session.md deleted file mode 100644 index a7eb9c5be3..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/create-anonymous-session.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account createAnonymousSession diff --git a/docs/examples/0.15.x/console-cli/examples/account/create-j-w-t.md b/docs/examples/0.15.x/console-cli/examples/account/create-j-w-t.md deleted file mode 100644 index 7b5337993d..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/create-j-w-t.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account createJWT diff --git a/docs/examples/0.15.x/console-cli/examples/account/create-magic-u-r-l-session.md b/docs/examples/0.15.x/console-cli/examples/account/create-magic-u-r-l-session.md deleted file mode 100644 index 0060f2a892..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite account createMagicURLSession \ - --userId [USER_ID] \ - --email email@example.com \ - diff --git a/docs/examples/0.15.x/console-cli/examples/account/create-o-auth2session.md b/docs/examples/0.15.x/console-cli/examples/account/create-o-auth2session.md deleted file mode 100644 index 9159b8f25f..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite account createOAuth2Session \ - --provider amazon \ - - - diff --git a/docs/examples/0.15.x/console-cli/examples/account/create-recovery.md b/docs/examples/0.15.x/console-cli/examples/account/create-recovery.md deleted file mode 100644 index ea8c145abb..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/create-recovery.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account createRecovery \ - --email email@example.com \ - --url https://example.com diff --git a/docs/examples/0.15.x/console-cli/examples/account/create-session.md b/docs/examples/0.15.x/console-cli/examples/account/create-session.md deleted file mode 100644 index e174029636..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/create-session.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account createSession \ - --email email@example.com \ - --password password diff --git a/docs/examples/0.15.x/console-cli/examples/account/create-verification.md b/docs/examples/0.15.x/console-cli/examples/account/create-verification.md deleted file mode 100644 index 402038b4b6..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/create-verification.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account createVerification \ - --url https://example.com diff --git a/docs/examples/0.15.x/console-cli/examples/account/create.md b/docs/examples/0.15.x/console-cli/examples/account/create.md deleted file mode 100644 index 7d2221be29..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/create.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite account create \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/0.15.x/console-cli/examples/account/delete-session.md b/docs/examples/0.15.x/console-cli/examples/account/delete-session.md deleted file mode 100644 index 2c68c1a43b..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/delete-session.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account deleteSession \ - --sessionId [SESSION_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/account/delete-sessions.md b/docs/examples/0.15.x/console-cli/examples/account/delete-sessions.md deleted file mode 100644 index dd11877a5d..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/delete-sessions.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account deleteSessions diff --git a/docs/examples/0.15.x/console-cli/examples/account/get-logs.md b/docs/examples/0.15.x/console-cli/examples/account/get-logs.md deleted file mode 100644 index 9ab3150c10..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/get-logs.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account getLogs \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/account/get-prefs.md b/docs/examples/0.15.x/console-cli/examples/account/get-prefs.md deleted file mode 100644 index 6569925d99..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/get-prefs.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account getPrefs diff --git a/docs/examples/0.15.x/console-cli/examples/account/get-session.md b/docs/examples/0.15.x/console-cli/examples/account/get-session.md deleted file mode 100644 index fac3fca10d..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/get-session.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account getSession \ - --sessionId [SESSION_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/account/get-sessions.md b/docs/examples/0.15.x/console-cli/examples/account/get-sessions.md deleted file mode 100644 index cdf2d2b460..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/get-sessions.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account getSessions diff --git a/docs/examples/0.15.x/console-cli/examples/account/get.md b/docs/examples/0.15.x/console-cli/examples/account/get.md deleted file mode 100644 index c8b46e34c7..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/get.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account get diff --git a/docs/examples/0.15.x/console-cli/examples/account/update-email.md b/docs/examples/0.15.x/console-cli/examples/account/update-email.md deleted file mode 100644 index 81938ff3a9..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/update-email.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updateEmail \ - --email email@example.com \ - --password password diff --git a/docs/examples/0.15.x/console-cli/examples/account/update-magic-u-r-l-session.md b/docs/examples/0.15.x/console-cli/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index 1411370123..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updateMagicURLSession \ - --userId [USER_ID] \ - --secret [SECRET] diff --git a/docs/examples/0.15.x/console-cli/examples/account/update-name.md b/docs/examples/0.15.x/console-cli/examples/account/update-name.md deleted file mode 100644 index f4acb58db6..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/update-name.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account updateName \ - --name [NAME] diff --git a/docs/examples/0.15.x/console-cli/examples/account/update-password.md b/docs/examples/0.15.x/console-cli/examples/account/update-password.md deleted file mode 100644 index 520f9bb82e..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/update-password.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updatePassword \ - --password password \ - diff --git a/docs/examples/0.15.x/console-cli/examples/account/update-prefs.md b/docs/examples/0.15.x/console-cli/examples/account/update-prefs.md deleted file mode 100644 index 568ac66e48..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/update-prefs.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account updatePrefs \ - --prefs '{ "key": "value" }' diff --git a/docs/examples/0.15.x/console-cli/examples/account/update-recovery.md b/docs/examples/0.15.x/console-cli/examples/account/update-recovery.md deleted file mode 100644 index 7825aac8f0..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/update-recovery.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite account updateRecovery \ - --userId [USER_ID] \ - --secret [SECRET] \ - --password password \ - --passwordAgain password diff --git a/docs/examples/0.15.x/console-cli/examples/account/update-session.md b/docs/examples/0.15.x/console-cli/examples/account/update-session.md deleted file mode 100644 index 56f74565de..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/update-session.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account updateSession \ - --sessionId [SESSION_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/account/update-status.md b/docs/examples/0.15.x/console-cli/examples/account/update-status.md deleted file mode 100644 index 8886dbbc6a..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/update-status.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account updateStatus diff --git a/docs/examples/0.15.x/console-cli/examples/account/update-verification.md b/docs/examples/0.15.x/console-cli/examples/account/update-verification.md deleted file mode 100644 index ff420b5895..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/account/update-verification.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updateVerification \ - --userId [USER_ID] \ - --secret [SECRET] diff --git a/docs/examples/0.15.x/console-cli/examples/avatars/get-browser.md b/docs/examples/0.15.x/console-cli/examples/avatars/get-browser.md deleted file mode 100644 index 6b4f0b8007..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/avatars/get-browser.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite avatars getBrowser \ - --code aa \ - - - diff --git a/docs/examples/0.15.x/console-cli/examples/avatars/get-credit-card.md b/docs/examples/0.15.x/console-cli/examples/avatars/get-credit-card.md deleted file mode 100644 index 365568ba19..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite avatars getCreditCard \ - --code amex \ - - - diff --git a/docs/examples/0.15.x/console-cli/examples/avatars/get-favicon.md b/docs/examples/0.15.x/console-cli/examples/avatars/get-favicon.md deleted file mode 100644 index c658f1a483..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/avatars/get-favicon.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite avatars getFavicon \ - --url https://example.com diff --git a/docs/examples/0.15.x/console-cli/examples/avatars/get-flag.md b/docs/examples/0.15.x/console-cli/examples/avatars/get-flag.md deleted file mode 100644 index 9f11fef840..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/avatars/get-flag.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite avatars getFlag \ - --code af \ - - - diff --git a/docs/examples/0.15.x/console-cli/examples/avatars/get-image.md b/docs/examples/0.15.x/console-cli/examples/avatars/get-image.md deleted file mode 100644 index 7df150610c..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/avatars/get-image.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite avatars getImage \ - --url https://example.com \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/avatars/get-initials.md b/docs/examples/0.15.x/console-cli/examples/avatars/get-initials.md deleted file mode 100644 index ff11a4fe1b..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/avatars/get-initials.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite avatars getInitials \ - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/avatars/get-q-r.md b/docs/examples/0.15.x/console-cli/examples/avatars/get-q-r.md deleted file mode 100644 index 855f33920a..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/avatars/get-q-r.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite avatars getQR \ - --text [TEXT] \ - - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/create-boolean-attribute.md b/docs/examples/0.15.x/console-cli/examples/database/create-boolean-attribute.md deleted file mode 100644 index 4fa1b8f8b8..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/create-boolean-attribute.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite database createBooleanAttribute \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/create-collection.md b/docs/examples/0.15.x/console-cli/examples/database/create-collection.md deleted file mode 100644 index c08c5dad9e..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/create-collection.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite database createCollection \ - --collectionId [COLLECTION_ID] \ - --name [NAME] \ - --permission document \ - --read "role:all" \ - --write "role:all" diff --git a/docs/examples/0.15.x/console-cli/examples/database/create-document.md b/docs/examples/0.15.x/console-cli/examples/database/create-document.md deleted file mode 100644 index 7fc2e7d49a..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/create-document.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite database createDocument \ - --collectionId [COLLECTION_ID] \ - --documentId [DOCUMENT_ID] \ - --data '{ "key": "value" }' \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/create-email-attribute.md b/docs/examples/0.15.x/console-cli/examples/database/create-email-attribute.md deleted file mode 100644 index 649072b53c..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/create-email-attribute.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite database createEmailAttribute \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/create-enum-attribute.md b/docs/examples/0.15.x/console-cli/examples/database/create-enum-attribute.md deleted file mode 100644 index 309a57b566..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/create-enum-attribute.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite database createEnumAttribute \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --elements one two three \ - --required false \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/create-float-attribute.md b/docs/examples/0.15.x/console-cli/examples/database/create-float-attribute.md deleted file mode 100644 index 5fff529cbb..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/create-float-attribute.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite database createFloatAttribute \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/create-index.md b/docs/examples/0.15.x/console-cli/examples/database/create-index.md deleted file mode 100644 index e2b3b5d021..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/create-index.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite database createIndex \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --type key \ - --attributes one two three \ - diff --git a/docs/examples/0.15.x/console-cli/examples/database/create-integer-attribute.md b/docs/examples/0.15.x/console-cli/examples/database/create-integer-attribute.md deleted file mode 100644 index 61546febf9..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/create-integer-attribute.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite database createIntegerAttribute \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/create-ip-attribute.md b/docs/examples/0.15.x/console-cli/examples/database/create-ip-attribute.md deleted file mode 100644 index 19d40a73ef..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/create-ip-attribute.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite database createIpAttribute \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/create-string-attribute.md b/docs/examples/0.15.x/console-cli/examples/database/create-string-attribute.md deleted file mode 100644 index 542bc8e10b..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/create-string-attribute.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite database createStringAttribute \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --size 1 \ - --required false \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/create-url-attribute.md b/docs/examples/0.15.x/console-cli/examples/database/create-url-attribute.md deleted file mode 100644 index 1ff338026d..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/create-url-attribute.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite database createUrlAttribute \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/delete-attribute.md b/docs/examples/0.15.x/console-cli/examples/database/delete-attribute.md deleted file mode 100644 index 435919b006..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/delete-attribute.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite database deleteAttribute \ - --collectionId [COLLECTION_ID] \ - --key '' diff --git a/docs/examples/0.15.x/console-cli/examples/database/delete-collection.md b/docs/examples/0.15.x/console-cli/examples/database/delete-collection.md deleted file mode 100644 index 90cfde5885..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/delete-collection.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite database deleteCollection \ - --collectionId [COLLECTION_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/database/delete-document.md b/docs/examples/0.15.x/console-cli/examples/database/delete-document.md deleted file mode 100644 index 3987f90779..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/delete-document.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite database deleteDocument \ - --collectionId [COLLECTION_ID] \ - --documentId [DOCUMENT_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/database/delete-index.md b/docs/examples/0.15.x/console-cli/examples/database/delete-index.md deleted file mode 100644 index d3ac3c6a54..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/delete-index.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite database deleteIndex \ - --collectionId [COLLECTION_ID] \ - --key '' diff --git a/docs/examples/0.15.x/console-cli/examples/database/get-attribute.md b/docs/examples/0.15.x/console-cli/examples/database/get-attribute.md deleted file mode 100644 index ef0a004b41..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/get-attribute.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite database getAttribute \ - --collectionId [COLLECTION_ID] \ - --key '' diff --git a/docs/examples/0.15.x/console-cli/examples/database/get-collection-usage.md b/docs/examples/0.15.x/console-cli/examples/database/get-collection-usage.md deleted file mode 100644 index e945936251..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/get-collection-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite database getCollectionUsage \ - --collectionId [COLLECTION_ID] \ - diff --git a/docs/examples/0.15.x/console-cli/examples/database/get-collection.md b/docs/examples/0.15.x/console-cli/examples/database/get-collection.md deleted file mode 100644 index bfee02ff60..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/get-collection.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite database getCollection \ - --collectionId [COLLECTION_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/database/get-document.md b/docs/examples/0.15.x/console-cli/examples/database/get-document.md deleted file mode 100644 index d1082b3967..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/get-document.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite database getDocument \ - --collectionId [COLLECTION_ID] \ - --documentId [DOCUMENT_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/database/get-index.md b/docs/examples/0.15.x/console-cli/examples/database/get-index.md deleted file mode 100644 index d931f64b79..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/get-index.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite database getIndex \ - --collectionId [COLLECTION_ID] \ - --key '' diff --git a/docs/examples/0.15.x/console-cli/examples/database/get-usage.md b/docs/examples/0.15.x/console-cli/examples/database/get-usage.md deleted file mode 100644 index 4c0611a64e..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/get-usage.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite database getUsage \ - diff --git a/docs/examples/0.15.x/console-cli/examples/database/list-attributes.md b/docs/examples/0.15.x/console-cli/examples/database/list-attributes.md deleted file mode 100644 index 164f110d14..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/list-attributes.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite database listAttributes \ - --collectionId [COLLECTION_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/database/list-collection-logs.md b/docs/examples/0.15.x/console-cli/examples/database/list-collection-logs.md deleted file mode 100644 index d6dfcf5163..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/list-collection-logs.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite database listCollectionLogs \ - --collectionId [COLLECTION_ID] \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/list-collections.md b/docs/examples/0.15.x/console-cli/examples/database/list-collections.md deleted file mode 100644 index a81fd940dc..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/list-collections.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite database listCollections \ - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/list-document-logs.md b/docs/examples/0.15.x/console-cli/examples/database/list-document-logs.md deleted file mode 100644 index dfe192e6ed..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/list-document-logs.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite database listDocumentLogs \ - --collectionId [COLLECTION_ID] \ - --documentId [DOCUMENT_ID] \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/list-documents.md b/docs/examples/0.15.x/console-cli/examples/database/list-documents.md deleted file mode 100644 index cd295c64c7..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/list-documents.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite database listDocuments \ - --collectionId [COLLECTION_ID] \ - - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/list-indexes.md b/docs/examples/0.15.x/console-cli/examples/database/list-indexes.md deleted file mode 100644 index ccfc13f2ab..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/list-indexes.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite database listIndexes \ - --collectionId [COLLECTION_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/database/update-collection.md b/docs/examples/0.15.x/console-cli/examples/database/update-collection.md deleted file mode 100644 index 576fbe5c71..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/update-collection.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite database updateCollection \ - --collectionId [COLLECTION_ID] \ - --name [NAME] \ - --permission document \ - - - diff --git a/docs/examples/0.15.x/console-cli/examples/database/update-document.md b/docs/examples/0.15.x/console-cli/examples/database/update-document.md deleted file mode 100644 index 475ff0d557..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/database/update-document.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite database updateDocument \ - --collectionId [COLLECTION_ID] \ - --documentId [DOCUMENT_ID] \ - --data '{ "key": "value" }' \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/functions/create-deployment.md b/docs/examples/0.15.x/console-cli/examples/functions/create-deployment.md deleted file mode 100644 index 91e31739ba..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/create-deployment.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite functions createDeployment \ - --functionId [FUNCTION_ID] \ - --entrypoint [ENTRYPOINT] \ - --code 'path/to/file.png' \ - --activate false diff --git a/docs/examples/0.15.x/console-cli/examples/functions/create-execution.md b/docs/examples/0.15.x/console-cli/examples/functions/create-execution.md deleted file mode 100644 index adcb3cde08..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/create-execution.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite functions createExecution \ - --functionId [FUNCTION_ID] \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/functions/create.md b/docs/examples/0.15.x/console-cli/examples/functions/create.md deleted file mode 100644 index a9c7ec030a..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/create.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite functions create \ - --functionId [FUNCTION_ID] \ - --name [NAME] \ - --execute one two three \ - --runtime node-14.5 \ - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/functions/delete-deployment.md b/docs/examples/0.15.x/console-cli/examples/functions/delete-deployment.md deleted file mode 100644 index 2033b846ce..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/delete-deployment.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions deleteDeployment \ - --functionId [FUNCTION_ID] \ - --deploymentId [DEPLOYMENT_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/functions/delete.md b/docs/examples/0.15.x/console-cli/examples/functions/delete.md deleted file mode 100644 index b3ce304016..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/delete.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite functions delete \ - --functionId [FUNCTION_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/functions/get-deployment.md b/docs/examples/0.15.x/console-cli/examples/functions/get-deployment.md deleted file mode 100644 index 668bcde4fe..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/get-deployment.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions getDeployment \ - --functionId [FUNCTION_ID] \ - --deploymentId [DEPLOYMENT_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/functions/get-execution.md b/docs/examples/0.15.x/console-cli/examples/functions/get-execution.md deleted file mode 100644 index b6a974766d..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/get-execution.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions getExecution \ - --functionId [FUNCTION_ID] \ - --executionId [EXECUTION_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/functions/get-usage.md b/docs/examples/0.15.x/console-cli/examples/functions/get-usage.md deleted file mode 100644 index 1c2cf27a50..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/get-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions getUsage \ - --functionId [FUNCTION_ID] \ - diff --git a/docs/examples/0.15.x/console-cli/examples/functions/get.md b/docs/examples/0.15.x/console-cli/examples/functions/get.md deleted file mode 100644 index 0332c4a6aa..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/get.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite functions get \ - --functionId [FUNCTION_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/functions/list-deployments.md b/docs/examples/0.15.x/console-cli/examples/functions/list-deployments.md deleted file mode 100644 index 1dc432533e..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/list-deployments.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite functions listDeployments \ - --functionId [FUNCTION_ID] \ - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/functions/list-executions.md b/docs/examples/0.15.x/console-cli/examples/functions/list-executions.md deleted file mode 100644 index 9eec5b9e56..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/list-executions.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite functions listExecutions \ - --functionId [FUNCTION_ID] \ - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/functions/list-runtimes.md b/docs/examples/0.15.x/console-cli/examples/functions/list-runtimes.md deleted file mode 100644 index 15dc019c44..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/list-runtimes.md +++ /dev/null @@ -1 +0,0 @@ -appwrite functions listRuntimes diff --git a/docs/examples/0.15.x/console-cli/examples/functions/list.md b/docs/examples/0.15.x/console-cli/examples/functions/list.md deleted file mode 100644 index 40ace98960..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/list.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite functions list \ - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/functions/retry-build.md b/docs/examples/0.15.x/console-cli/examples/functions/retry-build.md deleted file mode 100644 index bd226b77b1..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/retry-build.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite functions retryBuild \ - --functionId [FUNCTION_ID] \ - --deploymentId [DEPLOYMENT_ID] \ - --buildId [BUILD_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/functions/update-deployment.md b/docs/examples/0.15.x/console-cli/examples/functions/update-deployment.md deleted file mode 100644 index 7276b3e780..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/update-deployment.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions updateDeployment \ - --functionId [FUNCTION_ID] \ - --deploymentId [DEPLOYMENT_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/functions/update.md b/docs/examples/0.15.x/console-cli/examples/functions/update.md deleted file mode 100644 index d0557d9cd1..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/functions/update.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite functions update \ - --functionId [FUNCTION_ID] \ - --name [NAME] \ - --execute one two three \ - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/health/get-antivirus.md b/docs/examples/0.15.x/console-cli/examples/health/get-antivirus.md deleted file mode 100644 index 96dd7e78b2..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/health/get-antivirus.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getAntivirus diff --git a/docs/examples/0.15.x/console-cli/examples/health/get-cache.md b/docs/examples/0.15.x/console-cli/examples/health/get-cache.md deleted file mode 100644 index ad1111ccf0..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/health/get-cache.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getCache diff --git a/docs/examples/0.15.x/console-cli/examples/health/get-d-b.md b/docs/examples/0.15.x/console-cli/examples/health/get-d-b.md deleted file mode 100644 index b0ea2d3eac..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/health/get-d-b.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getDB diff --git a/docs/examples/0.15.x/console-cli/examples/health/get-queue-certificates.md b/docs/examples/0.15.x/console-cli/examples/health/get-queue-certificates.md deleted file mode 100644 index 7cae239389..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/health/get-queue-certificates.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getQueueCertificates diff --git a/docs/examples/0.15.x/console-cli/examples/health/get-queue-functions.md b/docs/examples/0.15.x/console-cli/examples/health/get-queue-functions.md deleted file mode 100644 index 9edfddac62..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/health/get-queue-functions.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getQueueFunctions diff --git a/docs/examples/0.15.x/console-cli/examples/health/get-queue-logs.md b/docs/examples/0.15.x/console-cli/examples/health/get-queue-logs.md deleted file mode 100644 index 9a0974934b..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/health/get-queue-logs.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getQueueLogs diff --git a/docs/examples/0.15.x/console-cli/examples/health/get-queue-webhooks.md b/docs/examples/0.15.x/console-cli/examples/health/get-queue-webhooks.md deleted file mode 100644 index f38eaa4e77..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getQueueWebhooks diff --git a/docs/examples/0.15.x/console-cli/examples/health/get-storage-local.md b/docs/examples/0.15.x/console-cli/examples/health/get-storage-local.md deleted file mode 100644 index b5df39fae0..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/health/get-storage-local.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getStorageLocal diff --git a/docs/examples/0.15.x/console-cli/examples/health/get-time.md b/docs/examples/0.15.x/console-cli/examples/health/get-time.md deleted file mode 100644 index 067e5daf9e..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/health/get-time.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getTime diff --git a/docs/examples/0.15.x/console-cli/examples/health/get.md b/docs/examples/0.15.x/console-cli/examples/health/get.md deleted file mode 100644 index 94c08e5aa3..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/health/get.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health get diff --git a/docs/examples/0.15.x/console-cli/examples/locale/get-continents.md b/docs/examples/0.15.x/console-cli/examples/locale/get-continents.md deleted file mode 100644 index ff7f1aea0d..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/locale/get-continents.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale getContinents diff --git a/docs/examples/0.15.x/console-cli/examples/locale/get-countries-e-u.md b/docs/examples/0.15.x/console-cli/examples/locale/get-countries-e-u.md deleted file mode 100644 index 8ecd92fb10..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale getCountriesEU diff --git a/docs/examples/0.15.x/console-cli/examples/locale/get-countries-phones.md b/docs/examples/0.15.x/console-cli/examples/locale/get-countries-phones.md deleted file mode 100644 index 6be84104d4..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/locale/get-countries-phones.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale getCountriesPhones diff --git a/docs/examples/0.15.x/console-cli/examples/locale/get-countries.md b/docs/examples/0.15.x/console-cli/examples/locale/get-countries.md deleted file mode 100644 index f2a4a4dc28..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/locale/get-countries.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale getCountries diff --git a/docs/examples/0.15.x/console-cli/examples/locale/get-currencies.md b/docs/examples/0.15.x/console-cli/examples/locale/get-currencies.md deleted file mode 100644 index b43f11f507..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/locale/get-currencies.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale getCurrencies diff --git a/docs/examples/0.15.x/console-cli/examples/locale/get-languages.md b/docs/examples/0.15.x/console-cli/examples/locale/get-languages.md deleted file mode 100644 index 86ab7134b9..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/locale/get-languages.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale getLanguages diff --git a/docs/examples/0.15.x/console-cli/examples/locale/get.md b/docs/examples/0.15.x/console-cli/examples/locale/get.md deleted file mode 100644 index 2002a06c20..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/locale/get.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale get diff --git a/docs/examples/0.15.x/console-cli/examples/projects/create-domain.md b/docs/examples/0.15.x/console-cli/examples/projects/create-domain.md deleted file mode 100644 index 6ae89ccf27..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/create-domain.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects createDomain \ - --projectId [PROJECT_ID] \ - --domain '' diff --git a/docs/examples/0.15.x/console-cli/examples/projects/create-key.md b/docs/examples/0.15.x/console-cli/examples/projects/create-key.md deleted file mode 100644 index 14112865c5..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/create-key.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite projects createKey \ - --projectId [PROJECT_ID] \ - --name [NAME] \ - --scopes one two three \ - diff --git a/docs/examples/0.15.x/console-cli/examples/projects/create-platform.md b/docs/examples/0.15.x/console-cli/examples/projects/create-platform.md deleted file mode 100644 index 1374f510e2..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/create-platform.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite projects createPlatform \ - --projectId [PROJECT_ID] \ - --type web \ - --name [NAME] \ - - - diff --git a/docs/examples/0.15.x/console-cli/examples/projects/create-webhook.md b/docs/examples/0.15.x/console-cli/examples/projects/create-webhook.md deleted file mode 100644 index 2eaacd167f..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/create-webhook.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite projects createWebhook \ - --projectId [PROJECT_ID] \ - --name [NAME] \ - --events one two three \ - --url https://example.com \ - --security false \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/projects/create.md b/docs/examples/0.15.x/console-cli/examples/projects/create.md deleted file mode 100644 index 3638e11b10..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/create.md +++ /dev/null @@ -1,13 +0,0 @@ -appwrite projects create \ - --projectId [PROJECT_ID] \ - --name [NAME] \ - --teamId [TEAM_ID] \ - - - - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/projects/delete-domain.md b/docs/examples/0.15.x/console-cli/examples/projects/delete-domain.md deleted file mode 100644 index c4690086e1..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/delete-domain.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects deleteDomain \ - --projectId [PROJECT_ID] \ - --domainId [DOMAIN_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/delete-key.md b/docs/examples/0.15.x/console-cli/examples/projects/delete-key.md deleted file mode 100644 index 48f97cf529..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/delete-key.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects deleteKey \ - --projectId [PROJECT_ID] \ - --keyId [KEY_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/delete-platform.md b/docs/examples/0.15.x/console-cli/examples/projects/delete-platform.md deleted file mode 100644 index 9e14cb5b69..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/delete-platform.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects deletePlatform \ - --projectId [PROJECT_ID] \ - --platformId [PLATFORM_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/delete-webhook.md b/docs/examples/0.15.x/console-cli/examples/projects/delete-webhook.md deleted file mode 100644 index 1235e737c4..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/delete-webhook.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects deleteWebhook \ - --projectId [PROJECT_ID] \ - --webhookId [WEBHOOK_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/delete.md b/docs/examples/0.15.x/console-cli/examples/projects/delete.md deleted file mode 100644 index 99a21b1127..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/delete.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects delete \ - --projectId [PROJECT_ID] \ - --password password diff --git a/docs/examples/0.15.x/console-cli/examples/projects/get-domain.md b/docs/examples/0.15.x/console-cli/examples/projects/get-domain.md deleted file mode 100644 index 367679aa4e..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/get-domain.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects getDomain \ - --projectId [PROJECT_ID] \ - --domainId [DOMAIN_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/get-key.md b/docs/examples/0.15.x/console-cli/examples/projects/get-key.md deleted file mode 100644 index 75548d21b3..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/get-key.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects getKey \ - --projectId [PROJECT_ID] \ - --keyId [KEY_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/get-platform.md b/docs/examples/0.15.x/console-cli/examples/projects/get-platform.md deleted file mode 100644 index 97432f00a2..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/get-platform.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects getPlatform \ - --projectId [PROJECT_ID] \ - --platformId [PLATFORM_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/get-usage.md b/docs/examples/0.15.x/console-cli/examples/projects/get-usage.md deleted file mode 100644 index a10e474c14..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/get-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects getUsage \ - --projectId [PROJECT_ID] \ - diff --git a/docs/examples/0.15.x/console-cli/examples/projects/get-webhook.md b/docs/examples/0.15.x/console-cli/examples/projects/get-webhook.md deleted file mode 100644 index b51a78c247..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/get-webhook.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects getWebhook \ - --projectId [PROJECT_ID] \ - --webhookId [WEBHOOK_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/get.md b/docs/examples/0.15.x/console-cli/examples/projects/get.md deleted file mode 100644 index b0589ea3e7..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/get.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite projects get \ - --projectId [PROJECT_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/list-domains.md b/docs/examples/0.15.x/console-cli/examples/projects/list-domains.md deleted file mode 100644 index 29677137bc..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/list-domains.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite projects listDomains \ - --projectId [PROJECT_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/list-keys.md b/docs/examples/0.15.x/console-cli/examples/projects/list-keys.md deleted file mode 100644 index aba2fab9e1..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/list-keys.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite projects listKeys \ - --projectId [PROJECT_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/list-platforms.md b/docs/examples/0.15.x/console-cli/examples/projects/list-platforms.md deleted file mode 100644 index cd7ae3760f..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/list-platforms.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite projects listPlatforms \ - --projectId [PROJECT_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/list-webhooks.md b/docs/examples/0.15.x/console-cli/examples/projects/list-webhooks.md deleted file mode 100644 index cda3f1e5c8..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/list-webhooks.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite projects listWebhooks \ - --projectId [PROJECT_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/list.md b/docs/examples/0.15.x/console-cli/examples/projects/list.md deleted file mode 100644 index ca4d5e70eb..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/list.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite projects list \ - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/projects/update-auth-limit.md b/docs/examples/0.15.x/console-cli/examples/projects/update-auth-limit.md deleted file mode 100644 index 0f59c9600c..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/update-auth-limit.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects updateAuthLimit \ - --projectId [PROJECT_ID] \ - --limit 0 diff --git a/docs/examples/0.15.x/console-cli/examples/projects/update-auth-status.md b/docs/examples/0.15.x/console-cli/examples/projects/update-auth-status.md deleted file mode 100644 index c4348c1b09..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/update-auth-status.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite projects updateAuthStatus \ - --projectId [PROJECT_ID] \ - --method email-password \ - --status false diff --git a/docs/examples/0.15.x/console-cli/examples/projects/update-domain-verification.md b/docs/examples/0.15.x/console-cli/examples/projects/update-domain-verification.md deleted file mode 100644 index bb07cdba78..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/update-domain-verification.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects updateDomainVerification \ - --projectId [PROJECT_ID] \ - --domainId [DOMAIN_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/projects/update-key.md b/docs/examples/0.15.x/console-cli/examples/projects/update-key.md deleted file mode 100644 index 97a004b5a2..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/update-key.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite projects updateKey \ - --projectId [PROJECT_ID] \ - --keyId [KEY_ID] \ - --name [NAME] \ - --scopes one two three \ - diff --git a/docs/examples/0.15.x/console-cli/examples/projects/update-o-auth2.md b/docs/examples/0.15.x/console-cli/examples/projects/update-o-auth2.md deleted file mode 100644 index bf9dea665a..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/update-o-auth2.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite projects updateOAuth2 \ - --projectId [PROJECT_ID] \ - --provider amazon \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/projects/update-platform.md b/docs/examples/0.15.x/console-cli/examples/projects/update-platform.md deleted file mode 100644 index 77268a4ee7..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/update-platform.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite projects updatePlatform \ - --projectId [PROJECT_ID] \ - --platformId [PLATFORM_ID] \ - --name [NAME] \ - - - diff --git a/docs/examples/0.15.x/console-cli/examples/projects/update-service-status.md b/docs/examples/0.15.x/console-cli/examples/projects/update-service-status.md deleted file mode 100644 index 4cfd9f9f3c..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/update-service-status.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite projects updateServiceStatus \ - --projectId [PROJECT_ID] \ - --service account \ - --status false diff --git a/docs/examples/0.15.x/console-cli/examples/projects/update-webhook.md b/docs/examples/0.15.x/console-cli/examples/projects/update-webhook.md deleted file mode 100644 index 4f681a1d23..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/update-webhook.md +++ /dev/null @@ -1,10 +0,0 @@ -appwrite projects updateWebhook \ - --projectId [PROJECT_ID] \ - --webhookId [WEBHOOK_ID] \ - --name [NAME] \ - --events one two three \ - --url https://example.com \ - --security false \ - - - diff --git a/docs/examples/0.15.x/console-cli/examples/projects/update.md b/docs/examples/0.15.x/console-cli/examples/projects/update.md deleted file mode 100644 index 83e99a1a8a..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/projects/update.md +++ /dev/null @@ -1,12 +0,0 @@ -appwrite projects update \ - --projectId [PROJECT_ID] \ - --name [NAME] \ - - - - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/storage/create-bucket.md b/docs/examples/0.15.x/console-cli/examples/storage/create-bucket.md deleted file mode 100644 index 0ccfdb088f..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/create-bucket.md +++ /dev/null @@ -1,11 +0,0 @@ -appwrite storage createBucket \ - --bucketId [BUCKET_ID] \ - --name [NAME] \ - --permission file \ - - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/storage/create-file.md b/docs/examples/0.15.x/console-cli/examples/storage/create-file.md deleted file mode 100644 index eaa8f9bc88..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/create-file.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite storage createFile \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] \ - --file 'path/to/file.png' \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/storage/delete-bucket.md b/docs/examples/0.15.x/console-cli/examples/storage/delete-bucket.md deleted file mode 100644 index 178a6a4b3a..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/delete-bucket.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite storage deleteBucket \ - --bucketId [BUCKET_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/storage/delete-file.md b/docs/examples/0.15.x/console-cli/examples/storage/delete-file.md deleted file mode 100644 index 0275f87172..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/delete-file.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite storage deleteFile \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/storage/get-bucket-usage.md b/docs/examples/0.15.x/console-cli/examples/storage/get-bucket-usage.md deleted file mode 100644 index 930575e2e9..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/get-bucket-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite storage getBucketUsage \ - --bucketId [BUCKET_ID] \ - diff --git a/docs/examples/0.15.x/console-cli/examples/storage/get-bucket.md b/docs/examples/0.15.x/console-cli/examples/storage/get-bucket.md deleted file mode 100644 index 76479be7d6..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/get-bucket.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite storage getBucket \ - --bucketId [BUCKET_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/storage/get-file-download.md b/docs/examples/0.15.x/console-cli/examples/storage/get-file-download.md deleted file mode 100644 index 637c7db1da..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/get-file-download.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite storage getFileDownload \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/storage/get-file-preview.md b/docs/examples/0.15.x/console-cli/examples/storage/get-file-preview.md deleted file mode 100644 index 309088506b..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/get-file-preview.md +++ /dev/null @@ -1,14 +0,0 @@ -appwrite storage getFilePreview \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] \ - - - - - - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/storage/get-file-view.md b/docs/examples/0.15.x/console-cli/examples/storage/get-file-view.md deleted file mode 100644 index a8500f3597..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/get-file-view.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite storage getFileView \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/storage/get-file.md b/docs/examples/0.15.x/console-cli/examples/storage/get-file.md deleted file mode 100644 index f556ef1d5c..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/get-file.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite storage getFile \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/storage/get-usage.md b/docs/examples/0.15.x/console-cli/examples/storage/get-usage.md deleted file mode 100644 index 29466e02f0..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/get-usage.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite storage getUsage \ - diff --git a/docs/examples/0.15.x/console-cli/examples/storage/list-buckets.md b/docs/examples/0.15.x/console-cli/examples/storage/list-buckets.md deleted file mode 100644 index 2245c6ca32..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/list-buckets.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite storage listBuckets \ - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/storage/list-files.md b/docs/examples/0.15.x/console-cli/examples/storage/list-files.md deleted file mode 100644 index c0a7b1bade..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/list-files.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite storage listFiles \ - --bucketId [BUCKET_ID] \ - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/storage/update-bucket.md b/docs/examples/0.15.x/console-cli/examples/storage/update-bucket.md deleted file mode 100644 index 9fc6b8001d..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/update-bucket.md +++ /dev/null @@ -1,11 +0,0 @@ -appwrite storage updateBucket \ - --bucketId [BUCKET_ID] \ - --name [NAME] \ - --permission file \ - - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/storage/update-file.md b/docs/examples/0.15.x/console-cli/examples/storage/update-file.md deleted file mode 100644 index 6f6a9ca2f6..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/storage/update-file.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite storage updateFile \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/teams/create-membership.md b/docs/examples/0.15.x/console-cli/examples/teams/create-membership.md deleted file mode 100644 index 351213c078..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/teams/create-membership.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite teams createMembership \ - --teamId [TEAM_ID] \ - --email email@example.com \ - --roles one two three \ - --url https://example.com \ - diff --git a/docs/examples/0.15.x/console-cli/examples/teams/create.md b/docs/examples/0.15.x/console-cli/examples/teams/create.md deleted file mode 100644 index 3704d02d0b..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/teams/create.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite teams create \ - --teamId [TEAM_ID] \ - --name [NAME] \ - diff --git a/docs/examples/0.15.x/console-cli/examples/teams/delete-membership.md b/docs/examples/0.15.x/console-cli/examples/teams/delete-membership.md deleted file mode 100644 index 6aaaf8902b..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/teams/delete-membership.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite teams deleteMembership \ - --teamId [TEAM_ID] \ - --membershipId [MEMBERSHIP_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/teams/delete.md b/docs/examples/0.15.x/console-cli/examples/teams/delete.md deleted file mode 100644 index 0a4d554b1b..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/teams/delete.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite teams delete \ - --teamId [TEAM_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/teams/get-membership.md b/docs/examples/0.15.x/console-cli/examples/teams/get-membership.md deleted file mode 100644 index 25d11863b9..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/teams/get-membership.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite teams getMembership \ - --teamId [TEAM_ID] \ - --membershipId [MEMBERSHIP_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/teams/get-memberships.md b/docs/examples/0.15.x/console-cli/examples/teams/get-memberships.md deleted file mode 100644 index 2ce366bb93..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/teams/get-memberships.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite teams getMemberships \ - --teamId [TEAM_ID] \ - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/teams/get.md b/docs/examples/0.15.x/console-cli/examples/teams/get.md deleted file mode 100644 index 111aff623b..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/teams/get.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite teams get \ - --teamId [TEAM_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/teams/list-logs.md b/docs/examples/0.15.x/console-cli/examples/teams/list-logs.md deleted file mode 100644 index 6acfe4e3b6..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/teams/list-logs.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite teams listLogs \ - --teamId [TEAM_ID] \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/teams/list.md b/docs/examples/0.15.x/console-cli/examples/teams/list.md deleted file mode 100644 index f2cf1beee3..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/teams/list.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite teams list \ - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/teams/update-membership-roles.md b/docs/examples/0.15.x/console-cli/examples/teams/update-membership-roles.md deleted file mode 100644 index c6684d2f65..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite teams updateMembershipRoles \ - --teamId [TEAM_ID] \ - --membershipId [MEMBERSHIP_ID] \ - --roles one two three diff --git a/docs/examples/0.15.x/console-cli/examples/teams/update-membership-status.md b/docs/examples/0.15.x/console-cli/examples/teams/update-membership-status.md deleted file mode 100644 index 0f3efc413a..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/teams/update-membership-status.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite teams updateMembershipStatus \ - --teamId [TEAM_ID] \ - --membershipId [MEMBERSHIP_ID] \ - --userId [USER_ID] \ - --secret [SECRET] diff --git a/docs/examples/0.15.x/console-cli/examples/teams/update.md b/docs/examples/0.15.x/console-cli/examples/teams/update.md deleted file mode 100644 index 4298ea519a..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/teams/update.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite teams update \ - --teamId [TEAM_ID] \ - --name [NAME] diff --git a/docs/examples/0.15.x/console-cli/examples/users/create-argon2user.md b/docs/examples/0.15.x/console-cli/examples/users/create-argon2user.md deleted file mode 100644 index e215603b23..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/create-argon2user.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite users createArgon2User \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/0.15.x/console-cli/examples/users/create-bcrypt-user.md b/docs/examples/0.15.x/console-cli/examples/users/create-bcrypt-user.md deleted file mode 100644 index b4f121266b..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite users createBcryptUser \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/0.15.x/console-cli/examples/users/create-m-d5user.md b/docs/examples/0.15.x/console-cli/examples/users/create-m-d5user.md deleted file mode 100644 index 4bb8cb4531..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/create-m-d5user.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite users createMD5User \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/0.15.x/console-cli/examples/users/create-p-h-pass-user.md b/docs/examples/0.15.x/console-cli/examples/users/create-p-h-pass-user.md deleted file mode 100644 index c0ebd7b0ec..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite users createPHPassUser \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/0.15.x/console-cli/examples/users/create-s-crypt-modified-user.md b/docs/examples/0.15.x/console-cli/examples/users/create-s-crypt-modified-user.md deleted file mode 100644 index 707b7eafd3..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/create-s-crypt-modified-user.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite users createSCryptModifiedUser \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - --passwordSalt [PASSWORD_SALT] \ - --passwordSaltSeparator [PASSWORD_SALT_SEPARATOR] \ - --passwordSignerKey [PASSWORD_SIGNER_KEY] \ - diff --git a/docs/examples/0.15.x/console-cli/examples/users/create-s-crypt-user.md b/docs/examples/0.15.x/console-cli/examples/users/create-s-crypt-user.md deleted file mode 100644 index e8725252bf..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/create-s-crypt-user.md +++ /dev/null @@ -1,10 +0,0 @@ -appwrite users createSCryptUser \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/users/create-s-h-a-user.md b/docs/examples/0.15.x/console-cli/examples/users/create-s-h-a-user.md deleted file mode 100644 index 3aae965b68..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite users createSHAUser \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/users/create.md b/docs/examples/0.15.x/console-cli/examples/users/create.md deleted file mode 100644 index ccf46cc98b..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/create.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite users create \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/0.15.x/console-cli/examples/users/delete-session.md b/docs/examples/0.15.x/console-cli/examples/users/delete-session.md deleted file mode 100644 index e4b7632cf7..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/delete-session.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users deleteSession \ - --userId [USER_ID] \ - --sessionId [SESSION_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/users/delete-sessions.md b/docs/examples/0.15.x/console-cli/examples/users/delete-sessions.md deleted file mode 100644 index 16c2c3a070..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/delete-sessions.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users deleteSessions \ - --userId [USER_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/users/delete.md b/docs/examples/0.15.x/console-cli/examples/users/delete.md deleted file mode 100644 index 9c24060965..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/delete.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users delete \ - --userId [USER_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/users/get-logs.md b/docs/examples/0.15.x/console-cli/examples/users/get-logs.md deleted file mode 100644 index dfc1744564..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/get-logs.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite users getLogs \ - --userId [USER_ID] \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/users/get-memberships.md b/docs/examples/0.15.x/console-cli/examples/users/get-memberships.md deleted file mode 100644 index 7375de23c2..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/get-memberships.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users getMemberships \ - --userId [USER_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/users/get-prefs.md b/docs/examples/0.15.x/console-cli/examples/users/get-prefs.md deleted file mode 100644 index 1aa1b1e332..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/get-prefs.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users getPrefs \ - --userId [USER_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/users/get-sessions.md b/docs/examples/0.15.x/console-cli/examples/users/get-sessions.md deleted file mode 100644 index 432b35cd2d..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/get-sessions.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users getSessions \ - --userId [USER_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/users/get-usage.md b/docs/examples/0.15.x/console-cli/examples/users/get-usage.md deleted file mode 100644 index 860cdc0c42..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/get-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users getUsage \ - - diff --git a/docs/examples/0.15.x/console-cli/examples/users/get.md b/docs/examples/0.15.x/console-cli/examples/users/get.md deleted file mode 100644 index 95f44afecf..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/get.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users get \ - --userId [USER_ID] diff --git a/docs/examples/0.15.x/console-cli/examples/users/list.md b/docs/examples/0.15.x/console-cli/examples/users/list.md deleted file mode 100644 index 79bd22c68e..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/list.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite users list \ - - - - - - diff --git a/docs/examples/0.15.x/console-cli/examples/users/update-email.md b/docs/examples/0.15.x/console-cli/examples/users/update-email.md deleted file mode 100644 index be8bb11607..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/update-email.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updateEmail \ - --userId [USER_ID] \ - --email email@example.com diff --git a/docs/examples/0.15.x/console-cli/examples/users/update-name.md b/docs/examples/0.15.x/console-cli/examples/users/update-name.md deleted file mode 100644 index ce9cad511b..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/update-name.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updateName \ - --userId [USER_ID] \ - --name [NAME] diff --git a/docs/examples/0.15.x/console-cli/examples/users/update-password.md b/docs/examples/0.15.x/console-cli/examples/users/update-password.md deleted file mode 100644 index 1678467102..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/update-password.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updatePassword \ - --userId [USER_ID] \ - --password password diff --git a/docs/examples/0.15.x/console-cli/examples/users/update-prefs.md b/docs/examples/0.15.x/console-cli/examples/users/update-prefs.md deleted file mode 100644 index cc4a7422ac..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/update-prefs.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updatePrefs \ - --userId [USER_ID] \ - --prefs '{ "key": "value" }' diff --git a/docs/examples/0.15.x/console-cli/examples/users/update-status.md b/docs/examples/0.15.x/console-cli/examples/users/update-status.md deleted file mode 100644 index 6bc10ee5de..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/update-status.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updateStatus \ - --userId [USER_ID] \ - --status false diff --git a/docs/examples/0.15.x/console-cli/examples/users/update-verification.md b/docs/examples/0.15.x/console-cli/examples/users/update-verification.md deleted file mode 100644 index edc5934bb4..0000000000 --- a/docs/examples/0.15.x/console-cli/examples/users/update-verification.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updateVerification \ - --userId [USER_ID] \ - --emailVerification false diff --git a/docs/examples/0.15.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/0.15.x/console-web/examples/account/create-anonymous-session.md deleted file mode 100644 index 8979218e0f..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/create-anonymous-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.createAnonymousSession(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/create-j-w-t.md b/docs/examples/0.15.x/console-web/examples/account/create-j-w-t.md deleted file mode 100644 index cf00356375..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/create-j-w-t.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.createJWT(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/0.15.x/console-web/examples/account/create-magic-u-r-l-session.md deleted file mode 100644 index 5318f5f276..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.createMagicURLSession('[USER_ID]', 'email@example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/0.15.x/console-web/examples/account/create-o-auth2session.md deleted file mode 100644 index 886a8f8480..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -// Go to OAuth provider login page -sdk.account.createOAuth2Session('amazon'); - diff --git a/docs/examples/0.15.x/console-web/examples/account/create-recovery.md b/docs/examples/0.15.x/console-web/examples/account/create-recovery.md deleted file mode 100644 index f57e926e9b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/create-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.createRecovery('email@example.com', 'https://example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/create-session.md b/docs/examples/0.15.x/console-web/examples/account/create-session.md deleted file mode 100644 index f41438306e..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/create-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.createSession('email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/create-verification.md b/docs/examples/0.15.x/console-web/examples/account/create-verification.md deleted file mode 100644 index 6a00f1a3e1..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/create-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.createVerification('https://example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/create.md b/docs/examples/0.15.x/console-web/examples/account/create.md deleted file mode 100644 index 18f2fbbdc6..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/create.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.create('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/delete-session.md b/docs/examples/0.15.x/console-web/examples/account/delete-session.md deleted file mode 100644 index b3f46d15a9..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.deleteSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/delete-sessions.md b/docs/examples/0.15.x/console-web/examples/account/delete-sessions.md deleted file mode 100644 index e89ba3087a..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.deleteSessions(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/delete.md b/docs/examples/0.15.x/console-web/examples/account/delete.md deleted file mode 100644 index ad281d7a3c..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.delete(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/get-logs.md b/docs/examples/0.15.x/console-web/examples/account/get-logs.md deleted file mode 100644 index f382d7216c..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/get-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.getLogs(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/get-prefs.md b/docs/examples/0.15.x/console-web/examples/account/get-prefs.md deleted file mode 100644 index 99e86d4f1d..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.getPrefs(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/get-session.md b/docs/examples/0.15.x/console-web/examples/account/get-session.md deleted file mode 100644 index 79ec93f6e9..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/get-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.getSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/get-sessions.md b/docs/examples/0.15.x/console-web/examples/account/get-sessions.md deleted file mode 100644 index 384e6fa347..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/get-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.getSessions(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/get.md b/docs/examples/0.15.x/console-web/examples/account/get.md deleted file mode 100644 index cc933152a2..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/get.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.get(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/update-email.md b/docs/examples/0.15.x/console-web/examples/account/update-email.md deleted file mode 100644 index e4a68e25c9..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateEmail('email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/0.15.x/console-web/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index 3c00386b7f..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateMagicURLSession('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/update-name.md b/docs/examples/0.15.x/console-web/examples/account/update-name.md deleted file mode 100644 index ff782195b1..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateName('[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/update-o-auth2tokens.md b/docs/examples/0.15.x/console-web/examples/account/update-o-auth2tokens.md deleted file mode 100644 index 1e1cd31891..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/update-o-auth2tokens.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateOAuth2Tokens('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/update-password.md b/docs/examples/0.15.x/console-web/examples/account/update-password.md deleted file mode 100644 index d551ed726f..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updatePassword('password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/update-prefs.md b/docs/examples/0.15.x/console-web/examples/account/update-prefs.md deleted file mode 100644 index 232b77025b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updatePrefs({}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/update-recovery.md b/docs/examples/0.15.x/console-web/examples/account/update-recovery.md deleted file mode 100644 index 6fe36c017e..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/update-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/update-session.md b/docs/examples/0.15.x/console-web/examples/account/update-session.md deleted file mode 100644 index cfb61b679a..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/update-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/update-status.md b/docs/examples/0.15.x/console-web/examples/account/update-status.md deleted file mode 100644 index 1b22ae81ad..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/update-status.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateStatus(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/account/update-verification.md b/docs/examples/0.15.x/console-web/examples/account/update-verification.md deleted file mode 100644 index e3312c5d5b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/account/update-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.account.updateVerification('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/avatars/get-browser.md b/docs/examples/0.15.x/console-web/examples/avatars/get-browser.md deleted file mode 100644 index fe0143b818..0000000000 --- a/docs/examples/0.15.x/console-web/examples/avatars/get-browser.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getBrowser('aa'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/0.15.x/console-web/examples/avatars/get-credit-card.md deleted file mode 100644 index 5477094ca5..0000000000 --- a/docs/examples/0.15.x/console-web/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getCreditCard('amex'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/avatars/get-favicon.md b/docs/examples/0.15.x/console-web/examples/avatars/get-favicon.md deleted file mode 100644 index 1327bb7384..0000000000 --- a/docs/examples/0.15.x/console-web/examples/avatars/get-favicon.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getFavicon('https://example.com'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/avatars/get-flag.md b/docs/examples/0.15.x/console-web/examples/avatars/get-flag.md deleted file mode 100644 index 13a90c3075..0000000000 --- a/docs/examples/0.15.x/console-web/examples/avatars/get-flag.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getFlag('af'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/avatars/get-image.md b/docs/examples/0.15.x/console-web/examples/avatars/get-image.md deleted file mode 100644 index 82cb205a74..0000000000 --- a/docs/examples/0.15.x/console-web/examples/avatars/get-image.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getImage('https://example.com'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/avatars/get-initials.md b/docs/examples/0.15.x/console-web/examples/avatars/get-initials.md deleted file mode 100644 index a3da13d460..0000000000 --- a/docs/examples/0.15.x/console-web/examples/avatars/get-initials.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getInitials(); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/avatars/get-q-r.md b/docs/examples/0.15.x/console-web/examples/avatars/get-q-r.md deleted file mode 100644 index c900a63531..0000000000 --- a/docs/examples/0.15.x/console-web/examples/avatars/get-q-r.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.avatars.getQR('[TEXT]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/create-boolean-attribute.md b/docs/examples/0.15.x/console-web/examples/database/create-boolean-attribute.md deleted file mode 100644 index cfa1ea0e8d..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/create-boolean-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.createBooleanAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/create-collection.md b/docs/examples/0.15.x/console-web/examples/database/create-collection.md deleted file mode 100644 index c4add41814..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/create-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.createCollection('[COLLECTION_ID]', '[NAME]', 'document', ["role:all"], ["role:all"]); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/create-document.md b/docs/examples/0.15.x/console-web/examples/database/create-document.md deleted file mode 100644 index 5f57b2fc3d..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/create-document.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/create-email-attribute.md b/docs/examples/0.15.x/console-web/examples/database/create-email-attribute.md deleted file mode 100644 index c6dc762917..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/create-email-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.createEmailAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/create-enum-attribute.md b/docs/examples/0.15.x/console-web/examples/database/create-enum-attribute.md deleted file mode 100644 index e1d8146d3d..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/create-enum-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.createEnumAttribute('[COLLECTION_ID]', '', [], false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/create-float-attribute.md b/docs/examples/0.15.x/console-web/examples/database/create-float-attribute.md deleted file mode 100644 index 302a6fdfa3..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/create-float-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.createFloatAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/create-index.md b/docs/examples/0.15.x/console-web/examples/database/create-index.md deleted file mode 100644 index 4dc3b43fef..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/create-index.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.createIndex('[COLLECTION_ID]', '', 'key', []); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/create-integer-attribute.md b/docs/examples/0.15.x/console-web/examples/database/create-integer-attribute.md deleted file mode 100644 index e9d50a2525..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/create-integer-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.createIntegerAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/create-ip-attribute.md b/docs/examples/0.15.x/console-web/examples/database/create-ip-attribute.md deleted file mode 100644 index 62fad8c742..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/create-ip-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.createIpAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/create-string-attribute.md b/docs/examples/0.15.x/console-web/examples/database/create-string-attribute.md deleted file mode 100644 index 2a5b6169fd..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/create-string-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.createStringAttribute('[COLLECTION_ID]', '', 1, false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/create-url-attribute.md b/docs/examples/0.15.x/console-web/examples/database/create-url-attribute.md deleted file mode 100644 index e95c5f0a72..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/create-url-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.createUrlAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/delete-attribute.md b/docs/examples/0.15.x/console-web/examples/database/delete-attribute.md deleted file mode 100644 index 574137390b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/delete-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.deleteAttribute('[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/delete-collection.md b/docs/examples/0.15.x/console-web/examples/database/delete-collection.md deleted file mode 100644 index 94ff0a6f06..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/delete-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.deleteCollection('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/delete-document.md b/docs/examples/0.15.x/console-web/examples/database/delete-document.md deleted file mode 100644 index 557662966d..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/delete-document.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/delete-index.md b/docs/examples/0.15.x/console-web/examples/database/delete-index.md deleted file mode 100644 index 0ffb7b626b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.deleteIndex('[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/get-attribute.md b/docs/examples/0.15.x/console-web/examples/database/get-attribute.md deleted file mode 100644 index 38f96614e1..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/get-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.getAttribute('[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/get-collection-usage.md b/docs/examples/0.15.x/console-web/examples/database/get-collection-usage.md deleted file mode 100644 index 80bb7a8acd..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/get-collection-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.getCollectionUsage('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/get-collection.md b/docs/examples/0.15.x/console-web/examples/database/get-collection.md deleted file mode 100644 index 4180a5c7db..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/get-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.getCollection('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/get-document.md b/docs/examples/0.15.x/console-web/examples/database/get-document.md deleted file mode 100644 index 841157f551..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/get-document.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/get-index.md b/docs/examples/0.15.x/console-web/examples/database/get-index.md deleted file mode 100644 index 1994f9c8a3..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.getIndex('[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/get-usage.md b/docs/examples/0.15.x/console-web/examples/database/get-usage.md deleted file mode 100644 index 1e4316ac62..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/get-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.getUsage(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/list-attributes.md b/docs/examples/0.15.x/console-web/examples/database/list-attributes.md deleted file mode 100644 index e05c5e778f..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/list-attributes.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.listAttributes('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/list-collection-logs.md b/docs/examples/0.15.x/console-web/examples/database/list-collection-logs.md deleted file mode 100644 index 536b1c698b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/list-collection-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.listCollectionLogs('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/list-collections.md b/docs/examples/0.15.x/console-web/examples/database/list-collections.md deleted file mode 100644 index d06151dcee..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/list-collections.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.listCollections(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/list-document-logs.md b/docs/examples/0.15.x/console-web/examples/database/list-document-logs.md deleted file mode 100644 index 761328157c..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/list-document-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.listDocumentLogs('[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/list-documents.md b/docs/examples/0.15.x/console-web/examples/database/list-documents.md deleted file mode 100644 index 620137cf8e..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/list-documents.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.listDocuments('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/list-indexes.md b/docs/examples/0.15.x/console-web/examples/database/list-indexes.md deleted file mode 100644 index 4d755d929b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.listIndexes('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/update-collection.md b/docs/examples/0.15.x/console-web/examples/database/update-collection.md deleted file mode 100644 index efca04d443..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/update-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.updateCollection('[COLLECTION_ID]', '[NAME]', 'document'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/database/update-document.md b/docs/examples/0.15.x/console-web/examples/database/update-document.md deleted file mode 100644 index b07b2ecac1..0000000000 --- a/docs/examples/0.15.x/console-web/examples/database/update-document.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/builds.md b/docs/examples/0.15.x/console-web/examples/functions/builds.md deleted file mode 100644 index f63d6eacb3..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/builds.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.builds('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/create-deployment.md b/docs/examples/0.15.x/console-web/examples/functions/create-deployment.md deleted file mode 100644 index 6076987a56..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/create-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', document.getElementById('uploader').files[0], false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/create-execution.md b/docs/examples/0.15.x/console-web/examples/functions/create-execution.md deleted file mode 100644 index 87dc73a205..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/create-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.createExecution('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/create-tag.md b/docs/examples/0.15.x/console-web/examples/functions/create-tag.md deleted file mode 100644 index 63414ee25f..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/create-tag.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.createTag('[FUNCTION_ID]', '[COMMAND]', document.getElementById('uploader').files[0]); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/create.md b/docs/examples/0.15.x/console-web/examples/functions/create.md deleted file mode 100644 index 296e2798c6..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/create.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/delete-deployment.md b/docs/examples/0.15.x/console-web/examples/functions/delete-deployment.md deleted file mode 100644 index 1bea4d90fc..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/delete-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.deleteDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/delete-tag.md b/docs/examples/0.15.x/console-web/examples/functions/delete-tag.md deleted file mode 100644 index d363b7536b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/delete-tag.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.deleteTag('[FUNCTION_ID]', '[TAG_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/delete.md b/docs/examples/0.15.x/console-web/examples/functions/delete.md deleted file mode 100644 index d080c101bf..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.delete('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/get-build.md b/docs/examples/0.15.x/console-web/examples/functions/get-build.md deleted file mode 100644 index 82028f2df7..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/get-build.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.getBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/get-deployment.md b/docs/examples/0.15.x/console-web/examples/functions/get-deployment.md deleted file mode 100644 index 3eb536f9ee..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/get-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.getDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/get-execution.md b/docs/examples/0.15.x/console-web/examples/functions/get-execution.md deleted file mode 100644 index a8a0c4a0c8..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/get-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/get-tag.md b/docs/examples/0.15.x/console-web/examples/functions/get-tag.md deleted file mode 100644 index 815eb80b56..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/get-tag.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.getTag('[FUNCTION_ID]', '[TAG_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/get-usage.md b/docs/examples/0.15.x/console-web/examples/functions/get-usage.md deleted file mode 100644 index 3a14e5d0be..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/get-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.getUsage('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/get.md b/docs/examples/0.15.x/console-web/examples/functions/get.md deleted file mode 100644 index eeeee205bd..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/get.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.get('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/list-deployments.md b/docs/examples/0.15.x/console-web/examples/functions/list-deployments.md deleted file mode 100644 index 04ef5bf9c4..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/list-deployments.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.listDeployments('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/list-executions.md b/docs/examples/0.15.x/console-web/examples/functions/list-executions.md deleted file mode 100644 index 82652ddb6c..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/list-executions.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.listExecutions('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/list-runtimes.md b/docs/examples/0.15.x/console-web/examples/functions/list-runtimes.md deleted file mode 100644 index a6d0099e1b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/list-runtimes.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.listRuntimes(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/list-tags.md b/docs/examples/0.15.x/console-web/examples/functions/list-tags.md deleted file mode 100644 index 0829d68576..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/list-tags.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.listTags('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/list.md b/docs/examples/0.15.x/console-web/examples/functions/list.md deleted file mode 100644 index 3002e2d8ee..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/list.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.list(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/retry-build.md b/docs/examples/0.15.x/console-web/examples/functions/retry-build.md deleted file mode 100644 index e0f49976b0..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/retry-build.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.retryBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/update-deployment.md b/docs/examples/0.15.x/console-web/examples/functions/update-deployment.md deleted file mode 100644 index e8e3ad2faa..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/update-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.updateDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/update-tag.md b/docs/examples/0.15.x/console-web/examples/functions/update-tag.md deleted file mode 100644 index 0dfa2bfe80..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/update-tag.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.updateTag('[FUNCTION_ID]', '[TAG]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/functions/update.md b/docs/examples/0.15.x/console-web/examples/functions/update.md deleted file mode 100644 index 4243843568..0000000000 --- a/docs/examples/0.15.x/console-web/examples/functions/update.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.functions.update('[FUNCTION_ID]', '[NAME]', []); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/health/get-antivirus.md b/docs/examples/0.15.x/console-web/examples/health/get-antivirus.md deleted file mode 100644 index 71e16bd903..0000000000 --- a/docs/examples/0.15.x/console-web/examples/health/get-antivirus.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.health.getAntivirus(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/health/get-cache.md b/docs/examples/0.15.x/console-web/examples/health/get-cache.md deleted file mode 100644 index a087d8db58..0000000000 --- a/docs/examples/0.15.x/console-web/examples/health/get-cache.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.health.getCache(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/health/get-d-b.md b/docs/examples/0.15.x/console-web/examples/health/get-d-b.md deleted file mode 100644 index fa4810de41..0000000000 --- a/docs/examples/0.15.x/console-web/examples/health/get-d-b.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.health.getDB(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/0.15.x/console-web/examples/health/get-queue-certificates.md deleted file mode 100644 index 9395664549..0000000000 --- a/docs/examples/0.15.x/console-web/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.health.getQueueCertificates(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/health/get-queue-functions.md b/docs/examples/0.15.x/console-web/examples/health/get-queue-functions.md deleted file mode 100644 index 9153497870..0000000000 --- a/docs/examples/0.15.x/console-web/examples/health/get-queue-functions.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.health.getQueueFunctions(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/health/get-queue-logs.md b/docs/examples/0.15.x/console-web/examples/health/get-queue-logs.md deleted file mode 100644 index 32b58757a3..0000000000 --- a/docs/examples/0.15.x/console-web/examples/health/get-queue-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.health.getQueueLogs(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/health/get-queue-usage.md b/docs/examples/0.15.x/console-web/examples/health/get-queue-usage.md deleted file mode 100644 index b59d11b62b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/health/get-queue-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.health.getQueueUsage(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/0.15.x/console-web/examples/health/get-queue-webhooks.md deleted file mode 100644 index 8a23b957d7..0000000000 --- a/docs/examples/0.15.x/console-web/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.health.getQueueWebhooks(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/health/get-storage-local.md b/docs/examples/0.15.x/console-web/examples/health/get-storage-local.md deleted file mode 100644 index 8fb72d9538..0000000000 --- a/docs/examples/0.15.x/console-web/examples/health/get-storage-local.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.health.getStorageLocal(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/health/get-time.md b/docs/examples/0.15.x/console-web/examples/health/get-time.md deleted file mode 100644 index 49c9848e9b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/health/get-time.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.health.getTime(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/health/get.md b/docs/examples/0.15.x/console-web/examples/health/get.md deleted file mode 100644 index b933fb70f0..0000000000 --- a/docs/examples/0.15.x/console-web/examples/health/get.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.health.get(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/locale/get-continents.md b/docs/examples/0.15.x/console-web/examples/locale/get-continents.md deleted file mode 100644 index f0798a820c..0000000000 --- a/docs/examples/0.15.x/console-web/examples/locale/get-continents.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.getContinents(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/locale/get-countries-e-u.md b/docs/examples/0.15.x/console-web/examples/locale/get-countries-e-u.md deleted file mode 100644 index 7bc6aa2d50..0000000000 --- a/docs/examples/0.15.x/console-web/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.getCountriesEU(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/locale/get-countries-phones.md b/docs/examples/0.15.x/console-web/examples/locale/get-countries-phones.md deleted file mode 100644 index e92982c1a2..0000000000 --- a/docs/examples/0.15.x/console-web/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.getCountriesPhones(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/locale/get-countries.md b/docs/examples/0.15.x/console-web/examples/locale/get-countries.md deleted file mode 100644 index bb12e6ab5f..0000000000 --- a/docs/examples/0.15.x/console-web/examples/locale/get-countries.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.getCountries(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/locale/get-currencies.md b/docs/examples/0.15.x/console-web/examples/locale/get-currencies.md deleted file mode 100644 index 3382c2015c..0000000000 --- a/docs/examples/0.15.x/console-web/examples/locale/get-currencies.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.getCurrencies(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/locale/get-languages.md b/docs/examples/0.15.x/console-web/examples/locale/get-languages.md deleted file mode 100644 index a7fa4a0170..0000000000 --- a/docs/examples/0.15.x/console-web/examples/locale/get-languages.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.getLanguages(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/locale/get.md b/docs/examples/0.15.x/console-web/examples/locale/get.md deleted file mode 100644 index 89ade06941..0000000000 --- a/docs/examples/0.15.x/console-web/examples/locale/get.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.locale.get(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/create-domain.md b/docs/examples/0.15.x/console-web/examples/projects/create-domain.md deleted file mode 100644 index 1382106c03..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/create-domain.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.createDomain('[PROJECT_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/create-key.md b/docs/examples/0.15.x/console-web/examples/projects/create-key.md deleted file mode 100644 index 95157eab7b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/create-key.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.createKey('[PROJECT_ID]', '[NAME]', []); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/create-platform.md b/docs/examples/0.15.x/console-web/examples/projects/create-platform.md deleted file mode 100644 index 177fe89e01..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/create-platform.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.createPlatform('[PROJECT_ID]', 'web', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/create-webhook.md b/docs/examples/0.15.x/console-web/examples/projects/create-webhook.md deleted file mode 100644 index f3a1271d34..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/create-webhook.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.createWebhook('[PROJECT_ID]', '[NAME]', [], 'https://example.com', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/create.md b/docs/examples/0.15.x/console-web/examples/projects/create.md deleted file mode 100644 index 5321ffa040..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/create.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.create('[PROJECT_ID]', '[NAME]', '[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/delete-domain.md b/docs/examples/0.15.x/console-web/examples/projects/delete-domain.md deleted file mode 100644 index 53aaa577f7..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/delete-domain.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.deleteDomain('[PROJECT_ID]', '[DOMAIN_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/delete-key.md b/docs/examples/0.15.x/console-web/examples/projects/delete-key.md deleted file mode 100644 index 205f357a70..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/delete-key.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.deleteKey('[PROJECT_ID]', '[KEY_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/delete-platform.md b/docs/examples/0.15.x/console-web/examples/projects/delete-platform.md deleted file mode 100644 index 3f770290ad..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/delete-platform.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.deletePlatform('[PROJECT_ID]', '[PLATFORM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/delete-webhook.md b/docs/examples/0.15.x/console-web/examples/projects/delete-webhook.md deleted file mode 100644 index 5e698f398f..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/delete-webhook.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.deleteWebhook('[PROJECT_ID]', '[WEBHOOK_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/delete.md b/docs/examples/0.15.x/console-web/examples/projects/delete.md deleted file mode 100644 index 506bba2f42..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.delete('[PROJECT_ID]', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/get-domain.md b/docs/examples/0.15.x/console-web/examples/projects/get-domain.md deleted file mode 100644 index f81b67f3ab..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/get-domain.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.getDomain('[PROJECT_ID]', '[DOMAIN_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/get-key.md b/docs/examples/0.15.x/console-web/examples/projects/get-key.md deleted file mode 100644 index 0780229ecf..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/get-key.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.getKey('[PROJECT_ID]', '[KEY_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/get-platform.md b/docs/examples/0.15.x/console-web/examples/projects/get-platform.md deleted file mode 100644 index a2229a2c59..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/get-platform.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.getPlatform('[PROJECT_ID]', '[PLATFORM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/get-usage.md b/docs/examples/0.15.x/console-web/examples/projects/get-usage.md deleted file mode 100644 index db4f2d84f9..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/get-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.getUsage('[PROJECT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/get-webhook.md b/docs/examples/0.15.x/console-web/examples/projects/get-webhook.md deleted file mode 100644 index 849cf75ee0..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/get-webhook.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.getWebhook('[PROJECT_ID]', '[WEBHOOK_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/get.md b/docs/examples/0.15.x/console-web/examples/projects/get.md deleted file mode 100644 index 3e3e10f023..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/get.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.get('[PROJECT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/list-domains.md b/docs/examples/0.15.x/console-web/examples/projects/list-domains.md deleted file mode 100644 index f6537d86bf..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/list-domains.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.listDomains('[PROJECT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/list-keys.md b/docs/examples/0.15.x/console-web/examples/projects/list-keys.md deleted file mode 100644 index 1ce0040051..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/list-keys.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.listKeys('[PROJECT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/list-platforms.md b/docs/examples/0.15.x/console-web/examples/projects/list-platforms.md deleted file mode 100644 index 7851b80b44..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/list-platforms.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.listPlatforms('[PROJECT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/list-webhooks.md b/docs/examples/0.15.x/console-web/examples/projects/list-webhooks.md deleted file mode 100644 index eef35c531e..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/list-webhooks.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.listWebhooks('[PROJECT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/list.md b/docs/examples/0.15.x/console-web/examples/projects/list.md deleted file mode 100644 index 2dae186849..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/list.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.list(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/0.15.x/console-web/examples/projects/update-auth-limit.md deleted file mode 100644 index 68e3a4a764..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/update-auth-limit.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.updateAuthLimit('[PROJECT_ID]', 0); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/update-auth-status.md b/docs/examples/0.15.x/console-web/examples/projects/update-auth-status.md deleted file mode 100644 index 7e325972b3..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/update-auth-status.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.updateAuthStatus('[PROJECT_ID]', 'email-password', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/update-domain-verification.md b/docs/examples/0.15.x/console-web/examples/projects/update-domain-verification.md deleted file mode 100644 index c00aea2724..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/update-domain-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.updateDomainVerification('[PROJECT_ID]', '[DOMAIN_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/update-key.md b/docs/examples/0.15.x/console-web/examples/projects/update-key.md deleted file mode 100644 index 90209de5e1..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/update-key.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.updateKey('[PROJECT_ID]', '[KEY_ID]', '[NAME]', []); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/0.15.x/console-web/examples/projects/update-o-auth2.md deleted file mode 100644 index 126a45e425..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/update-o-auth2.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.updateOAuth2('[PROJECT_ID]', 'amazon'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/update-platform.md b/docs/examples/0.15.x/console-web/examples/projects/update-platform.md deleted file mode 100644 index 17d3773ea9..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/update-platform.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.updatePlatform('[PROJECT_ID]', '[PLATFORM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/update-service-status.md b/docs/examples/0.15.x/console-web/examples/projects/update-service-status.md deleted file mode 100644 index 3fdaa5ad6d..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/update-service-status.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.updateServiceStatus('[PROJECT_ID]', 'account', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/update-webhook.md b/docs/examples/0.15.x/console-web/examples/projects/update-webhook.md deleted file mode 100644 index cf12bcb209..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/update-webhook.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], 'https://example.com', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/projects/update.md b/docs/examples/0.15.x/console-web/examples/projects/update.md deleted file mode 100644 index 835779e30f..0000000000 --- a/docs/examples/0.15.x/console-web/examples/projects/update.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.projects.update('[PROJECT_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/create-bucket.md b/docs/examples/0.15.x/console-web/examples/storage/create-bucket.md deleted file mode 100644 index 5af19f6264..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/create-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.createBucket('[BUCKET_ID]', '[NAME]', 'file'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/create-file.md b/docs/examples/0.15.x/console-web/examples/storage/create-file.md deleted file mode 100644 index f464fe608e..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/create-file.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.createFile('[BUCKET_ID]', '[FILE_ID]', document.getElementById('uploader').files[0]); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/delete-bucket.md b/docs/examples/0.15.x/console-web/examples/storage/delete-bucket.md deleted file mode 100644 index 02d11d5846..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/delete-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.deleteBucket('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/delete-file.md b/docs/examples/0.15.x/console-web/examples/storage/delete-file.md deleted file mode 100644 index 94c9e3112c..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/delete-file.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.deleteFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/0.15.x/console-web/examples/storage/get-bucket-usage.md deleted file mode 100644 index 7cc74b6665..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/get-bucket-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.getBucketUsage('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/get-bucket.md b/docs/examples/0.15.x/console-web/examples/storage/get-bucket.md deleted file mode 100644 index 57c32e138b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/get-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.getBucket('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/get-file-download.md b/docs/examples/0.15.x/console-web/examples/storage/get-file-download.md deleted file mode 100644 index 18a01aaa91..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/get-file-download.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/get-file-preview.md b/docs/examples/0.15.x/console-web/examples/storage/get-file-preview.md deleted file mode 100644 index b9d9377e1f..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/get-file-preview.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.storage.getFilePreview('[BUCKET_ID]', '[FILE_ID]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/get-file-view.md b/docs/examples/0.15.x/console-web/examples/storage/get-file-view.md deleted file mode 100644 index eae4e78d6a..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/get-file-view.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let result = sdk.storage.getFileView('[BUCKET_ID]', '[FILE_ID]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/get-file.md b/docs/examples/0.15.x/console-web/examples/storage/get-file.md deleted file mode 100644 index 4a8eb23038..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/get-file.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.getFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/get-usage.md b/docs/examples/0.15.x/console-web/examples/storage/get-usage.md deleted file mode 100644 index a232301ba6..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/get-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.getUsage(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/list-buckets.md b/docs/examples/0.15.x/console-web/examples/storage/list-buckets.md deleted file mode 100644 index f44b2d232d..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/list-buckets.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.listBuckets(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/list-files.md b/docs/examples/0.15.x/console-web/examples/storage/list-files.md deleted file mode 100644 index f4a83cd29d..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/list-files.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.listFiles('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/update-bucket.md b/docs/examples/0.15.x/console-web/examples/storage/update-bucket.md deleted file mode 100644 index 06eaf14176..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/update-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.updateBucket('[BUCKET_ID]', '[NAME]', 'file'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/storage/update-file.md b/docs/examples/0.15.x/console-web/examples/storage/update-file.md deleted file mode 100644 index fbb04a9bda..0000000000 --- a/docs/examples/0.15.x/console-web/examples/storage/update-file.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.storage.updateFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/teams/create-membership.md b/docs/examples/0.15.x/console-web/examples/teams/create-membership.md deleted file mode 100644 index 68b7f2be17..0000000000 --- a/docs/examples/0.15.x/console-web/examples/teams/create-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/teams/create.md b/docs/examples/0.15.x/console-web/examples/teams/create.md deleted file mode 100644 index c0b5e6aa06..0000000000 --- a/docs/examples/0.15.x/console-web/examples/teams/create.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.create('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/teams/delete-membership.md b/docs/examples/0.15.x/console-web/examples/teams/delete-membership.md deleted file mode 100644 index 46916ab1f4..0000000000 --- a/docs/examples/0.15.x/console-web/examples/teams/delete-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/teams/delete.md b/docs/examples/0.15.x/console-web/examples/teams/delete.md deleted file mode 100644 index e04f9f505a..0000000000 --- a/docs/examples/0.15.x/console-web/examples/teams/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.delete('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/teams/get-membership.md b/docs/examples/0.15.x/console-web/examples/teams/get-membership.md deleted file mode 100644 index 0ff21ca48e..0000000000 --- a/docs/examples/0.15.x/console-web/examples/teams/get-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/teams/get-memberships.md b/docs/examples/0.15.x/console-web/examples/teams/get-memberships.md deleted file mode 100644 index c23f190cbe..0000000000 --- a/docs/examples/0.15.x/console-web/examples/teams/get-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.getMemberships('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/teams/get.md b/docs/examples/0.15.x/console-web/examples/teams/get.md deleted file mode 100644 index c05bd59a0b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/teams/get.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.get('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/teams/list-logs.md b/docs/examples/0.15.x/console-web/examples/teams/list-logs.md deleted file mode 100644 index 79ee8e965f..0000000000 --- a/docs/examples/0.15.x/console-web/examples/teams/list-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.listLogs('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/teams/list.md b/docs/examples/0.15.x/console-web/examples/teams/list.md deleted file mode 100644 index 1e1a974d80..0000000000 --- a/docs/examples/0.15.x/console-web/examples/teams/list.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.list(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/teams/update-membership-roles.md b/docs/examples/0.15.x/console-web/examples/teams/update-membership-roles.md deleted file mode 100644 index 1d25e2601e..0000000000 --- a/docs/examples/0.15.x/console-web/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/teams/update-membership-status.md b/docs/examples/0.15.x/console-web/examples/teams/update-membership-status.md deleted file mode 100644 index 032f162501..0000000000 --- a/docs/examples/0.15.x/console-web/examples/teams/update-membership-status.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/teams/update.md b/docs/examples/0.15.x/console-web/examples/teams/update.md deleted file mode 100644 index bcf53d1605..0000000000 --- a/docs/examples/0.15.x/console-web/examples/teams/update.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.teams.update('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/create-argon2user.md b/docs/examples/0.15.x/console-web/examples/users/create-argon2user.md deleted file mode 100644 index 1d6821377a..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/create-argon2user.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.createArgon2User('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/0.15.x/console-web/examples/users/create-bcrypt-user.md deleted file mode 100644 index c11bebaba0..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.createBcryptUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/create-m-d5user.md b/docs/examples/0.15.x/console-web/examples/users/create-m-d5user.md deleted file mode 100644 index f4918f5b2c..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/create-m-d5user.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.createMD5User('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/0.15.x/console-web/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 710810ddad..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.createPHPassUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/create-s-crypt-modified-user.md b/docs/examples/0.15.x/console-web/examples/users/create-s-crypt-modified-user.md deleted file mode 100644 index e233d11762..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/create-s-crypt-modified-user.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.createSCryptModifiedUser('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', '[PASSWORD_SALT_SEPARATOR]', '[PASSWORD_SIGNER_KEY]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/create-s-crypt-user.md b/docs/examples/0.15.x/console-web/examples/users/create-s-crypt-user.md deleted file mode 100644 index a8fa0fabbf..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/create-s-crypt-user.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.createSCryptUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/0.15.x/console-web/examples/users/create-s-h-a-user.md deleted file mode 100644 index e14f86beeb..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.createSHAUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/create.md b/docs/examples/0.15.x/console-web/examples/users/create.md deleted file mode 100644 index 180589f554..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/create.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.create('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/delete-session.md b/docs/examples/0.15.x/console-web/examples/users/delete-session.md deleted file mode 100644 index 12e225032f..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.deleteSession('[USER_ID]', '[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/delete-sessions.md b/docs/examples/0.15.x/console-web/examples/users/delete-sessions.md deleted file mode 100644 index df330210fe..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.deleteSessions('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/delete.md b/docs/examples/0.15.x/console-web/examples/users/delete.md deleted file mode 100644 index f9cb4c0e0e..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.delete('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/get-logs.md b/docs/examples/0.15.x/console-web/examples/users/get-logs.md deleted file mode 100644 index 7ad392a78b..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/get-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.getLogs('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/get-memberships.md b/docs/examples/0.15.x/console-web/examples/users/get-memberships.md deleted file mode 100644 index b421e59afc..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/get-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.getMemberships('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/get-prefs.md b/docs/examples/0.15.x/console-web/examples/users/get-prefs.md deleted file mode 100644 index f3f5d6a3db..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.getPrefs('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/get-sessions.md b/docs/examples/0.15.x/console-web/examples/users/get-sessions.md deleted file mode 100644 index f50f5221eb..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/get-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.getSessions('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/get-usage.md b/docs/examples/0.15.x/console-web/examples/users/get-usage.md deleted file mode 100644 index 15464df92a..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/get-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.getUsage(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/get.md b/docs/examples/0.15.x/console-web/examples/users/get.md deleted file mode 100644 index 48069a70f2..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/get.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.get('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/list.md b/docs/examples/0.15.x/console-web/examples/users/list.md deleted file mode 100644 index 4a37dd985d..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/list.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.list(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/update-email.md b/docs/examples/0.15.x/console-web/examples/users/update-email.md deleted file mode 100644 index 97236c4b7c..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.updateEmail('[USER_ID]', 'email@example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/update-name.md b/docs/examples/0.15.x/console-web/examples/users/update-name.md deleted file mode 100644 index 332f076fb6..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.updateName('[USER_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/update-password.md b/docs/examples/0.15.x/console-web/examples/users/update-password.md deleted file mode 100644 index d2647ca200..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.updatePassword('[USER_ID]', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/update-prefs.md b/docs/examples/0.15.x/console-web/examples/users/update-prefs.md deleted file mode 100644 index d6abb5914d..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.updatePrefs('[USER_ID]', {}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/update-status.md b/docs/examples/0.15.x/console-web/examples/users/update-status.md deleted file mode 100644 index 00b94ba3eb..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/update-status.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.updateStatus('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/console-web/examples/users/update-verification.md b/docs/examples/0.15.x/console-web/examples/users/update-verification.md deleted file mode 100644 index a07f9e8433..0000000000 --- a/docs/examples/0.15.x/console-web/examples/users/update-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = new Appwrite(); - -sdk - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -let promise = sdk.users.updateVerification('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/create-recovery.md b/docs/examples/0.15.x/server-dart/examples/account/create-recovery.md deleted file mode 100644 index 1d6c7fca9e..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/create-recovery.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.createRecovery( - email: 'email@example.com', - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/create-verification.md b/docs/examples/0.15.x/server-dart/examples/account/create-verification.md deleted file mode 100644 index a46c1cf519..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/create-verification.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.createVerification( - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/delete-session.md b/docs/examples/0.15.x/server-dart/examples/account/delete-session.md deleted file mode 100644 index 7e2c59b629..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/delete-session.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.deleteSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/delete-sessions.md b/docs/examples/0.15.x/server-dart/examples/account/delete-sessions.md deleted file mode 100644 index 8647d09fa7..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/delete-sessions.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.deleteSessions(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/delete.md b/docs/examples/0.15.x/server-dart/examples/account/delete.md deleted file mode 100644 index d468b5cfc0..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/delete.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.delete(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/get-logs.md b/docs/examples/0.15.x/server-dart/examples/account/get-logs.md deleted file mode 100644 index 27b579c725..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/get-logs.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.getLogs( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/get-prefs.md b/docs/examples/0.15.x/server-dart/examples/account/get-prefs.md deleted file mode 100644 index 911e868115..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/get-prefs.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.getPrefs(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/get-session.md b/docs/examples/0.15.x/server-dart/examples/account/get-session.md deleted file mode 100644 index ef78a5291d..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/get-session.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.getSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/get-sessions.md b/docs/examples/0.15.x/server-dart/examples/account/get-sessions.md deleted file mode 100644 index 40051a967d..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/get-sessions.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.getSessions(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/get.md b/docs/examples/0.15.x/server-dart/examples/account/get.md deleted file mode 100644 index 040dad642f..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.get(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/update-email.md b/docs/examples/0.15.x/server-dart/examples/account/update-email.md deleted file mode 100644 index 85b5950bc5..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/update-email.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateEmail( - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/update-name.md b/docs/examples/0.15.x/server-dart/examples/account/update-name.md deleted file mode 100644 index 026206d169..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/update-name.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateName( - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/update-o-auth2tokens.md b/docs/examples/0.15.x/server-dart/examples/account/update-o-auth2tokens.md deleted file mode 100644 index 2f6ae194c0..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/update-o-auth2tokens.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateOAuth2Tokens( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/update-password.md b/docs/examples/0.15.x/server-dart/examples/account/update-password.md deleted file mode 100644 index dec459c686..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/update-password.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updatePassword( - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/update-prefs.md b/docs/examples/0.15.x/server-dart/examples/account/update-prefs.md deleted file mode 100644 index 8bcb83e7db..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/update-prefs.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updatePrefs( - prefs: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/update-recovery.md b/docs/examples/0.15.x/server-dart/examples/account/update-recovery.md deleted file mode 100644 index 5840fbec70..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/update-recovery.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateRecovery( - userId: '[USER_ID]', - secret: '[SECRET]', - password: 'password', - passwordAgain: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/update-session.md b/docs/examples/0.15.x/server-dart/examples/account/update-session.md deleted file mode 100644 index c689dda9f0..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/update-session.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/update-status.md b/docs/examples/0.15.x/server-dart/examples/account/update-status.md deleted file mode 100644 index 025ef77771..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/update-status.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateStatus(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/account/update-verification.md b/docs/examples/0.15.x/server-dart/examples/account/update-verification.md deleted file mode 100644 index c970793640..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/account/update-verification.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateVerification( - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/avatars/get-browser.md b/docs/examples/0.15.x/server-dart/examples/avatars/get-browser.md deleted file mode 100644 index c924ae43c8..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/avatars/get-browser.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getBrowser( - code: 'aa', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/0.15.x/server-dart/examples/avatars/get-credit-card.md deleted file mode 100644 index 5d01d690dd..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getCreditCard( - code: 'amex', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/0.15.x/server-dart/examples/avatars/get-favicon.md deleted file mode 100644 index 3308f5c59a..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/avatars/get-favicon.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getFavicon( - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/avatars/get-flag.md b/docs/examples/0.15.x/server-dart/examples/avatars/get-flag.md deleted file mode 100644 index 5da4aaf219..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/avatars/get-flag.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getFlag( - code: 'af', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/avatars/get-image.md b/docs/examples/0.15.x/server-dart/examples/avatars/get-image.md deleted file mode 100644 index 196c6dedb5..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/avatars/get-image.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getImage( - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/avatars/get-initials.md b/docs/examples/0.15.x/server-dart/examples/avatars/get-initials.md deleted file mode 100644 index c40a54b712..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/avatars/get-initials.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getInitials( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/0.15.x/server-dart/examples/avatars/get-q-r.md deleted file mode 100644 index bef31b345f..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/avatars/get-q-r.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getQR( - text: '[TEXT]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/create-boolean-attribute.md b/docs/examples/0.15.x/server-dart/examples/database/create-boolean-attribute.md deleted file mode 100644 index 81e66e1ab6..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/create-boolean-attribute.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.createBooleanAttribute( - collectionId: '[COLLECTION_ID]', - key: '', - required: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/create-collection.md b/docs/examples/0.15.x/server-dart/examples/database/create-collection.md deleted file mode 100644 index aff5643ff5..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/create-collection.md +++ /dev/null @@ -1,27 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.createCollection( - collectionId: '[COLLECTION_ID]', - name: '[NAME]', - permission: 'document', - read: ["role:all"], - write: ["role:all"], - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/create-document.md b/docs/examples/0.15.x/server-dart/examples/database/create-document.md deleted file mode 100644 index 2775f740ab..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/create-document.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.createDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - data: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/create-email-attribute.md b/docs/examples/0.15.x/server-dart/examples/database/create-email-attribute.md deleted file mode 100644 index d0eca5cc73..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/create-email-attribute.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.createEmailAttribute( - collectionId: '[COLLECTION_ID]', - key: '', - required: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/create-enum-attribute.md b/docs/examples/0.15.x/server-dart/examples/database/create-enum-attribute.md deleted file mode 100644 index d50c76efb3..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/create-enum-attribute.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.createEnumAttribute( - collectionId: '[COLLECTION_ID]', - key: '', - elements: [], - required: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/create-float-attribute.md b/docs/examples/0.15.x/server-dart/examples/database/create-float-attribute.md deleted file mode 100644 index 5fa831b682..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/create-float-attribute.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.createFloatAttribute( - collectionId: '[COLLECTION_ID]', - key: '', - required: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/create-index.md b/docs/examples/0.15.x/server-dart/examples/database/create-index.md deleted file mode 100644 index 41b118d6af..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/create-index.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.createIndex( - collectionId: '[COLLECTION_ID]', - key: '', - type: 'key', - attributes: [], - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/create-integer-attribute.md b/docs/examples/0.15.x/server-dart/examples/database/create-integer-attribute.md deleted file mode 100644 index 161a5c9812..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/create-integer-attribute.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.createIntegerAttribute( - collectionId: '[COLLECTION_ID]', - key: '', - required: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/create-ip-attribute.md b/docs/examples/0.15.x/server-dart/examples/database/create-ip-attribute.md deleted file mode 100644 index 94990f9cf1..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/create-ip-attribute.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.createIpAttribute( - collectionId: '[COLLECTION_ID]', - key: '', - required: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/create-string-attribute.md b/docs/examples/0.15.x/server-dart/examples/database/create-string-attribute.md deleted file mode 100644 index e9119e11c0..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/create-string-attribute.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.createStringAttribute( - collectionId: '[COLLECTION_ID]', - key: '', - size: 1, - required: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/create-url-attribute.md b/docs/examples/0.15.x/server-dart/examples/database/create-url-attribute.md deleted file mode 100644 index 3bea728890..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/create-url-attribute.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.createUrlAttribute( - collectionId: '[COLLECTION_ID]', - key: '', - required: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/delete-attribute.md b/docs/examples/0.15.x/server-dart/examples/database/delete-attribute.md deleted file mode 100644 index 50d5f345c7..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/delete-attribute.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.deleteAttribute( - collectionId: '[COLLECTION_ID]', - key: '', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/delete-collection.md b/docs/examples/0.15.x/server-dart/examples/database/delete-collection.md deleted file mode 100644 index 6543cc1491..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/delete-collection.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.deleteCollection( - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/delete-document.md b/docs/examples/0.15.x/server-dart/examples/database/delete-document.md deleted file mode 100644 index 89204f6d81..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/delete-document.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.deleteDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/delete-index.md b/docs/examples/0.15.x/server-dart/examples/database/delete-index.md deleted file mode 100644 index fe6cd43f11..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/delete-index.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.deleteIndex( - collectionId: '[COLLECTION_ID]', - key: '', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/get-attribute.md b/docs/examples/0.15.x/server-dart/examples/database/get-attribute.md deleted file mode 100644 index 41a0fbee21..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/get-attribute.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.getAttribute( - collectionId: '[COLLECTION_ID]', - key: '', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/get-collection.md b/docs/examples/0.15.x/server-dart/examples/database/get-collection.md deleted file mode 100644 index 6b0cb526ca..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/get-collection.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.getCollection( - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/get-document.md b/docs/examples/0.15.x/server-dart/examples/database/get-document.md deleted file mode 100644 index efe007aadf..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/get-document.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.getDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/get-index.md b/docs/examples/0.15.x/server-dart/examples/database/get-index.md deleted file mode 100644 index 736e860f30..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/get-index.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.getIndex( - collectionId: '[COLLECTION_ID]', - key: '', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/list-attributes.md b/docs/examples/0.15.x/server-dart/examples/database/list-attributes.md deleted file mode 100644 index ffbc556e71..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/list-attributes.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.listAttributes( - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/list-collections.md b/docs/examples/0.15.x/server-dart/examples/database/list-collections.md deleted file mode 100644 index aecd08a54a..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/list-collections.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.listCollections( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/list-documents.md b/docs/examples/0.15.x/server-dart/examples/database/list-documents.md deleted file mode 100644 index 9323fd34be..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/list-documents.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.listDocuments( - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/list-indexes.md b/docs/examples/0.15.x/server-dart/examples/database/list-indexes.md deleted file mode 100644 index 3f22632bc7..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/list-indexes.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.listIndexes( - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/update-collection.md b/docs/examples/0.15.x/server-dart/examples/database/update-collection.md deleted file mode 100644 index 7430ef8673..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/update-collection.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.updateCollection( - collectionId: '[COLLECTION_ID]', - name: '[NAME]', - permission: 'document', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/database/update-document.md b/docs/examples/0.15.x/server-dart/examples/database/update-document.md deleted file mode 100644 index b2c78752e5..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/database/update-document.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = database.updateDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - data: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/builds.md b/docs/examples/0.15.x/server-dart/examples/functions/builds.md deleted file mode 100644 index ebeff24663..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/builds.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.builds( - functionId: '[FUNCTION_ID]', - deploymentId: '[DEPLOYMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/create-deployment.md b/docs/examples/0.15.x/server-dart/examples/functions/create-deployment.md deleted file mode 100644 index a407622ffc..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/create-deployment.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.createDeployment( - functionId: '[FUNCTION_ID]', - entrypoint: '[ENTRYPOINT]', - code: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), - activate: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/create-execution.md b/docs/examples/0.15.x/server-dart/examples/functions/create-execution.md deleted file mode 100644 index 572b54ffd5..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/create-execution.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.createExecution( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/create-tag.md b/docs/examples/0.15.x/server-dart/examples/functions/create-tag.md deleted file mode 100644 index 3a23bd2d1b..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/create-tag.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.createTag( - functionId: '[FUNCTION_ID]', - command: '[COMMAND]', - code: await MultipartFile.fromPath('code', './path-to-files/image.jpg', 'image.jpg'), - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/create.md b/docs/examples/0.15.x/server-dart/examples/functions/create.md deleted file mode 100644 index 9788357e4a..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/create.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.create( - functionId: '[FUNCTION_ID]', - name: '[NAME]', - execute: [], - runtime: 'node-14.5', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/0.15.x/server-dart/examples/functions/delete-deployment.md deleted file mode 100644 index 495b5b6c25..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/delete-deployment.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.deleteDeployment( - functionId: '[FUNCTION_ID]', - deploymentId: '[DEPLOYMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/delete-tag.md b/docs/examples/0.15.x/server-dart/examples/functions/delete-tag.md deleted file mode 100644 index 2dc621cc43..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/delete-tag.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.deleteTag( - functionId: '[FUNCTION_ID]', - tagId: '[TAG_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/delete.md b/docs/examples/0.15.x/server-dart/examples/functions/delete.md deleted file mode 100644 index 36694658cd..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/delete.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.delete( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/get-build.md b/docs/examples/0.15.x/server-dart/examples/functions/get-build.md deleted file mode 100644 index 4cc3aa33ec..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/get-build.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.getBuild( - functionId: '[FUNCTION_ID]', - deploymentId: '[DEPLOYMENT_ID]', - buildId: '[BUILD_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/get-deployment.md b/docs/examples/0.15.x/server-dart/examples/functions/get-deployment.md deleted file mode 100644 index 7e529df767..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/get-deployment.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.getDeployment( - functionId: '[FUNCTION_ID]', - deploymentId: '[DEPLOYMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/get-execution.md b/docs/examples/0.15.x/server-dart/examples/functions/get-execution.md deleted file mode 100644 index 7854e7f7c4..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/get-execution.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.getExecution( - functionId: '[FUNCTION_ID]', - executionId: '[EXECUTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/get-tag.md b/docs/examples/0.15.x/server-dart/examples/functions/get-tag.md deleted file mode 100644 index 3d12d91262..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/get-tag.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.getTag( - functionId: '[FUNCTION_ID]', - tagId: '[TAG_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/get.md b/docs/examples/0.15.x/server-dart/examples/functions/get.md deleted file mode 100644 index 261ffef362..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/get.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.get( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/list-deployments.md b/docs/examples/0.15.x/server-dart/examples/functions/list-deployments.md deleted file mode 100644 index 071c1a7f5a..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/list-deployments.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.listDeployments( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/list-executions.md b/docs/examples/0.15.x/server-dart/examples/functions/list-executions.md deleted file mode 100644 index a0af0d161e..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/list-executions.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.listExecutions( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/0.15.x/server-dart/examples/functions/list-runtimes.md deleted file mode 100644 index da474ff727..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/list-runtimes.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.listRuntimes(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/list-tags.md b/docs/examples/0.15.x/server-dart/examples/functions/list-tags.md deleted file mode 100644 index 5d13f6a7d6..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/list-tags.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.listTags( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/list.md b/docs/examples/0.15.x/server-dart/examples/functions/list.md deleted file mode 100644 index a530d00fbb..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/list.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.list( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/retry-build.md b/docs/examples/0.15.x/server-dart/examples/functions/retry-build.md deleted file mode 100644 index 2312208584..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/retry-build.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.retryBuild( - functionId: '[FUNCTION_ID]', - deploymentId: '[DEPLOYMENT_ID]', - buildId: '[BUILD_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/update-deployment.md b/docs/examples/0.15.x/server-dart/examples/functions/update-deployment.md deleted file mode 100644 index 633b626560..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/update-deployment.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.updateDeployment( - functionId: '[FUNCTION_ID]', - deploymentId: '[DEPLOYMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/update-tag.md b/docs/examples/0.15.x/server-dart/examples/functions/update-tag.md deleted file mode 100644 index 5e2284a298..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/update-tag.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.updateTag( - functionId: '[FUNCTION_ID]', - tag: '[TAG]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/functions/update.md b/docs/examples/0.15.x/server-dart/examples/functions/update.md deleted file mode 100644 index d1845b771d..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/functions/update.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.update( - functionId: '[FUNCTION_ID]', - name: '[NAME]', - execute: [], - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/health/get-antivirus.md b/docs/examples/0.15.x/server-dart/examples/health/get-antivirus.md deleted file mode 100644 index 974a29bd1f..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/health/get-antivirus.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getAntivirus(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/health/get-cache.md b/docs/examples/0.15.x/server-dart/examples/health/get-cache.md deleted file mode 100644 index 322939d74e..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/health/get-cache.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getCache(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/health/get-d-b.md b/docs/examples/0.15.x/server-dart/examples/health/get-d-b.md deleted file mode 100644 index e3447550eb..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/health/get-d-b.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getDB(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/0.15.x/server-dart/examples/health/get-queue-certificates.md deleted file mode 100644 index 7c605154a6..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getQueueCertificates(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/0.15.x/server-dart/examples/health/get-queue-functions.md deleted file mode 100644 index c06cda9185..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/health/get-queue-functions.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getQueueFunctions(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/0.15.x/server-dart/examples/health/get-queue-logs.md deleted file mode 100644 index 807a04fb11..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/health/get-queue-logs.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getQueueLogs(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/health/get-queue-usage.md b/docs/examples/0.15.x/server-dart/examples/health/get-queue-usage.md deleted file mode 100644 index b504a8efc5..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/health/get-queue-usage.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getQueueUsage(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/0.15.x/server-dart/examples/health/get-queue-webhooks.md deleted file mode 100644 index 7c159ac8cd..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getQueueWebhooks(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/health/get-storage-local.md b/docs/examples/0.15.x/server-dart/examples/health/get-storage-local.md deleted file mode 100644 index 7f172bf86c..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/health/get-storage-local.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getStorageLocal(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/health/get-time.md b/docs/examples/0.15.x/server-dart/examples/health/get-time.md deleted file mode 100644 index 65861d3cc3..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/health/get-time.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getTime(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/health/get.md b/docs/examples/0.15.x/server-dart/examples/health/get.md deleted file mode 100644 index 0c9d39218e..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/health/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.get(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/locale/get-continents.md b/docs/examples/0.15.x/server-dart/examples/locale/get-continents.md deleted file mode 100644 index 2daced78b6..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/locale/get-continents.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.getContinents(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/locale/get-countries-e-u.md b/docs/examples/0.15.x/server-dart/examples/locale/get-countries-e-u.md deleted file mode 100644 index 7b04a49487..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.getCountriesEU(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/locale/get-countries-phones.md b/docs/examples/0.15.x/server-dart/examples/locale/get-countries-phones.md deleted file mode 100644 index 57138a6b75..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.getCountriesPhones(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/locale/get-countries.md b/docs/examples/0.15.x/server-dart/examples/locale/get-countries.md deleted file mode 100644 index 2bf758adca..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/locale/get-countries.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.getCountries(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/locale/get-currencies.md b/docs/examples/0.15.x/server-dart/examples/locale/get-currencies.md deleted file mode 100644 index c8a415de4c..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/locale/get-currencies.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.getCurrencies(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/locale/get-languages.md b/docs/examples/0.15.x/server-dart/examples/locale/get-languages.md deleted file mode 100644 index b9ae6655a3..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/locale/get-languages.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.getLanguages(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/locale/get.md b/docs/examples/0.15.x/server-dart/examples/locale/get.md deleted file mode 100644 index d290063060..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/locale/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.get(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/create-bucket.md b/docs/examples/0.15.x/server-dart/examples/storage/create-bucket.md deleted file mode 100644 index 9d58d263ba..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/create-bucket.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.createBucket( - bucketId: '[BUCKET_ID]', - name: '[NAME]', - permission: 'file', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/create-file.md b/docs/examples/0.15.x/server-dart/examples/storage/create-file.md deleted file mode 100644 index ef596fcc49..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/create-file.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'dart:io'; -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.createFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - file: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/0.15.x/server-dart/examples/storage/delete-bucket.md deleted file mode 100644 index 786084a158..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/delete-bucket.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.deleteBucket( - bucketId: '[BUCKET_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/delete-file.md b/docs/examples/0.15.x/server-dart/examples/storage/delete-file.md deleted file mode 100644 index 574532c12b..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/delete-file.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.deleteFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/get-bucket.md b/docs/examples/0.15.x/server-dart/examples/storage/get-bucket.md deleted file mode 100644 index 22360826ef..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/get-bucket.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.getBucket( - bucketId: '[BUCKET_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/get-file-download.md b/docs/examples/0.15.x/server-dart/examples/storage/get-file-download.md deleted file mode 100644 index 6a87cafe83..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/get-file-download.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.getFileDownload( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/0.15.x/server-dart/examples/storage/get-file-preview.md deleted file mode 100644 index f678eacb2a..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/get-file-preview.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.getFilePreview( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/get-file-view.md b/docs/examples/0.15.x/server-dart/examples/storage/get-file-view.md deleted file mode 100644 index 2be352fef0..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/get-file-view.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.getFileView( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/get-file.md b/docs/examples/0.15.x/server-dart/examples/storage/get-file.md deleted file mode 100644 index 7ecdcf9e53..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/get-file.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.getFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/list-buckets.md b/docs/examples/0.15.x/server-dart/examples/storage/list-buckets.md deleted file mode 100644 index fa5607a825..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/list-buckets.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.listBuckets( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/list-files.md b/docs/examples/0.15.x/server-dart/examples/storage/list-files.md deleted file mode 100644 index 519a002ced..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/list-files.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.listFiles( - bucketId: '[BUCKET_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/update-bucket.md b/docs/examples/0.15.x/server-dart/examples/storage/update-bucket.md deleted file mode 100644 index 6a09e87c4d..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/update-bucket.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.updateBucket( - bucketId: '[BUCKET_ID]', - name: '[NAME]', - permission: 'file', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/storage/update-file.md b/docs/examples/0.15.x/server-dart/examples/storage/update-file.md deleted file mode 100644 index 77d43afba3..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/storage/update-file.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.updateFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/teams/create-membership.md b/docs/examples/0.15.x/server-dart/examples/teams/create-membership.md deleted file mode 100644 index e3923bd207..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/teams/create-membership.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.createMembership( - teamId: '[TEAM_ID]', - email: 'email@example.com', - roles: [], - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/teams/create.md b/docs/examples/0.15.x/server-dart/examples/teams/create.md deleted file mode 100644 index fd89a4814a..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/teams/create.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.create( - teamId: '[TEAM_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/teams/delete-membership.md b/docs/examples/0.15.x/server-dart/examples/teams/delete-membership.md deleted file mode 100644 index 28069ad04a..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/teams/delete-membership.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.deleteMembership( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/teams/delete.md b/docs/examples/0.15.x/server-dart/examples/teams/delete.md deleted file mode 100644 index a006e8f347..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/teams/delete.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.delete( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/teams/get-membership.md b/docs/examples/0.15.x/server-dart/examples/teams/get-membership.md deleted file mode 100644 index 1beceeb3d7..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/teams/get-membership.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.getMembership( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/teams/get-memberships.md b/docs/examples/0.15.x/server-dart/examples/teams/get-memberships.md deleted file mode 100644 index 3a12dc5c2b..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/teams/get-memberships.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.getMemberships( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/teams/get.md b/docs/examples/0.15.x/server-dart/examples/teams/get.md deleted file mode 100644 index a1bfe8e72c..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/teams/get.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.get( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/teams/list.md b/docs/examples/0.15.x/server-dart/examples/teams/list.md deleted file mode 100644 index d55e58e36e..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/teams/list.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.list( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/teams/update-membership-roles.md b/docs/examples/0.15.x/server-dart/examples/teams/update-membership-roles.md deleted file mode 100644 index e3488768b6..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.updateMembershipRoles( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - roles: [], - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/0.15.x/server-dart/examples/teams/update-membership-status.md deleted file mode 100644 index 2a3f1e101e..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/teams/update-membership-status.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = teams.updateMembershipStatus( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/teams/update.md b/docs/examples/0.15.x/server-dart/examples/teams/update.md deleted file mode 100644 index 22af165502..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/teams/update.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.update( - teamId: '[TEAM_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/create-argon2user.md b/docs/examples/0.15.x/server-dart/examples/users/create-argon2user.md deleted file mode 100644 index f2ece2b269..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/create-argon2user.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createArgon2User( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/0.15.x/server-dart/examples/users/create-bcrypt-user.md deleted file mode 100644 index b4951a94c4..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createBcryptUser( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/0.15.x/server-dart/examples/users/create-m-d5user.md deleted file mode 100644 index 95f6e539f4..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/create-m-d5user.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createMD5User( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/0.15.x/server-dart/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 9013ccc992..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createPHPassUser( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/create-s-crypt-modified-user.md b/docs/examples/0.15.x/server-dart/examples/users/create-s-crypt-modified-user.md deleted file mode 100644 index 72513be5ed..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/create-s-crypt-modified-user.md +++ /dev/null @@ -1,28 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createSCryptModifiedUser( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - passwordSalt: '[PASSWORD_SALT]', - passwordSaltSeparator: '[PASSWORD_SALT_SEPARATOR]', - passwordSignerKey: '[PASSWORD_SIGNER_KEY]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/create-s-crypt-user.md b/docs/examples/0.15.x/server-dart/examples/users/create-s-crypt-user.md deleted file mode 100644 index 05c6f152cd..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/create-s-crypt-user.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createSCryptUser( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/0.15.x/server-dart/examples/users/create-s-h-a-user.md deleted file mode 100644 index 4488765055..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createSHAUser( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/create.md b/docs/examples/0.15.x/server-dart/examples/users/create.md deleted file mode 100644 index 027363f2a5..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/create.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.create( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/delete-session.md b/docs/examples/0.15.x/server-dart/examples/users/delete-session.md deleted file mode 100644 index eaa98c17b7..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/delete-session.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.deleteSession( - userId: '[USER_ID]', - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/delete-sessions.md b/docs/examples/0.15.x/server-dart/examples/users/delete-sessions.md deleted file mode 100644 index 8c889aad2b..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/delete-sessions.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.deleteSessions( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/delete.md b/docs/examples/0.15.x/server-dart/examples/users/delete.md deleted file mode 100644 index b45f398b4a..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/delete.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.delete( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/get-logs.md b/docs/examples/0.15.x/server-dart/examples/users/get-logs.md deleted file mode 100644 index 63eb6b5bcf..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/get-logs.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.getLogs( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/get-memberships.md b/docs/examples/0.15.x/server-dart/examples/users/get-memberships.md deleted file mode 100644 index e5c60cdfbe..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/get-memberships.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.getMemberships( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/get-prefs.md b/docs/examples/0.15.x/server-dart/examples/users/get-prefs.md deleted file mode 100644 index e5909422a3..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/get-prefs.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.getPrefs( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/get-sessions.md b/docs/examples/0.15.x/server-dart/examples/users/get-sessions.md deleted file mode 100644 index ebe44c3eb9..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/get-sessions.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.getSessions( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/get.md b/docs/examples/0.15.x/server-dart/examples/users/get.md deleted file mode 100644 index be582d52c5..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/get.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.get( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/list.md b/docs/examples/0.15.x/server-dart/examples/users/list.md deleted file mode 100644 index e0ecf7adf3..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/list.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.list( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/update-email.md b/docs/examples/0.15.x/server-dart/examples/users/update-email.md deleted file mode 100644 index dc3e063ab8..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/update-email.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updateEmail( - userId: '[USER_ID]', - email: 'email@example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/update-name.md b/docs/examples/0.15.x/server-dart/examples/users/update-name.md deleted file mode 100644 index 192add919a..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/update-name.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updateName( - userId: '[USER_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/update-password.md b/docs/examples/0.15.x/server-dart/examples/users/update-password.md deleted file mode 100644 index 44ead5980b..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/update-password.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updatePassword( - userId: '[USER_ID]', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/update-prefs.md b/docs/examples/0.15.x/server-dart/examples/users/update-prefs.md deleted file mode 100644 index d148e52f0b..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/update-prefs.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updatePrefs( - userId: '[USER_ID]', - prefs: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/update-status.md b/docs/examples/0.15.x/server-dart/examples/users/update-status.md deleted file mode 100644 index 4392188985..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/update-status.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updateStatus( - userId: '[USER_ID]', - status: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-dart/examples/users/update-verification.md b/docs/examples/0.15.x/server-dart/examples/users/update-verification.md deleted file mode 100644 index 065dfb7f91..0000000000 --- a/docs/examples/0.15.x/server-dart/examples/users/update-verification.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updateVerification( - userId: '[USER_ID]', - emailVerification: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/create-recovery.md b/docs/examples/0.15.x/server-deno/examples/account/create-recovery.md deleted file mode 100644 index 003dbdfec7..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/create-recovery.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.createRecovery('email@example.com', 'https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/create-verification.md b/docs/examples/0.15.x/server-deno/examples/account/create-verification.md deleted file mode 100644 index 18dec9a9f0..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/create-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.createVerification('https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/delete-session.md b/docs/examples/0.15.x/server-deno/examples/account/delete-session.md deleted file mode 100644 index 6ff639935b..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/delete-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.deleteSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/delete-sessions.md b/docs/examples/0.15.x/server-deno/examples/account/delete-sessions.md deleted file mode 100644 index 453c7e418d..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/delete-sessions.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.deleteSessions(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/delete.md b/docs/examples/0.15.x/server-deno/examples/account/delete.md deleted file mode 100644 index 9f8bec04a3..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/delete.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.delete(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/get-logs.md b/docs/examples/0.15.x/server-deno/examples/account/get-logs.md deleted file mode 100644 index 43d67078e2..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/get-logs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.getLogs(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/get-prefs.md b/docs/examples/0.15.x/server-deno/examples/account/get-prefs.md deleted file mode 100644 index 537760c32e..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/get-prefs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.getPrefs(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/get-session.md b/docs/examples/0.15.x/server-deno/examples/account/get-session.md deleted file mode 100644 index 46c7a5981d..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/get-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.getSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/get-sessions.md b/docs/examples/0.15.x/server-deno/examples/account/get-sessions.md deleted file mode 100644 index 486a153f0b..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/get-sessions.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.getSessions(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/get.md b/docs/examples/0.15.x/server-deno/examples/account/get.md deleted file mode 100644 index 35453cd3b2..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.get(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/update-email.md b/docs/examples/0.15.x/server-deno/examples/account/update-email.md deleted file mode 100644 index 12706c4313..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/update-email.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateEmail('email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/update-name.md b/docs/examples/0.15.x/server-deno/examples/account/update-name.md deleted file mode 100644 index 2ee6aa4f87..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/update-name.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateName('[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/update-o-auth2tokens.md b/docs/examples/0.15.x/server-deno/examples/account/update-o-auth2tokens.md deleted file mode 100644 index 51310da1e1..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/update-o-auth2tokens.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateOAuth2Tokens('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/update-password.md b/docs/examples/0.15.x/server-deno/examples/account/update-password.md deleted file mode 100644 index bf27df4dde..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/update-password.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updatePassword('password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/update-prefs.md b/docs/examples/0.15.x/server-deno/examples/account/update-prefs.md deleted file mode 100644 index f553593ae0..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/update-prefs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updatePrefs({}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/update-recovery.md b/docs/examples/0.15.x/server-deno/examples/account/update-recovery.md deleted file mode 100644 index 6d91d570c2..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/update-recovery.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/update-session.md b/docs/examples/0.15.x/server-deno/examples/account/update-session.md deleted file mode 100644 index 36c3d1e250..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/update-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/update-status.md b/docs/examples/0.15.x/server-deno/examples/account/update-status.md deleted file mode 100644 index 26585b6f7b..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/update-status.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateStatus(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/account/update-verification.md b/docs/examples/0.15.x/server-deno/examples/account/update-verification.md deleted file mode 100644 index 40ebcdd7c6..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/account/update-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateVerification('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/avatars/get-browser.md b/docs/examples/0.15.x/server-deno/examples/avatars/get-browser.md deleted file mode 100644 index 3eb6ff845d..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/avatars/get-browser.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = avatars.getBrowser('aa'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/0.15.x/server-deno/examples/avatars/get-credit-card.md deleted file mode 100644 index 0a75b1665d..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = avatars.getCreditCard('amex'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/0.15.x/server-deno/examples/avatars/get-favicon.md deleted file mode 100644 index e132db2f5f..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/avatars/get-favicon.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = avatars.getFavicon('https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/avatars/get-flag.md b/docs/examples/0.15.x/server-deno/examples/avatars/get-flag.md deleted file mode 100644 index 7455538cec..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/avatars/get-flag.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = avatars.getFlag('af'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/avatars/get-image.md b/docs/examples/0.15.x/server-deno/examples/avatars/get-image.md deleted file mode 100644 index e1d6f7d5f5..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/avatars/get-image.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = avatars.getImage('https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/avatars/get-initials.md b/docs/examples/0.15.x/server-deno/examples/avatars/get-initials.md deleted file mode 100644 index 36e9b8fa94..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/avatars/get-initials.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = avatars.getInitials(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/0.15.x/server-deno/examples/avatars/get-q-r.md deleted file mode 100644 index 23d6a60d90..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/avatars/get-q-r.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = avatars.getQR('[TEXT]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/create-boolean-attribute.md b/docs/examples/0.15.x/server-deno/examples/database/create-boolean-attribute.md deleted file mode 100644 index b332758ef3..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/create-boolean-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.createBooleanAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/create-collection.md b/docs/examples/0.15.x/server-deno/examples/database/create-collection.md deleted file mode 100644 index 9646b8c0a4..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/create-collection.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.createCollection('[COLLECTION_ID]', '[NAME]', 'document', ["role:all"], ["role:all"]); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/create-document.md b/docs/examples/0.15.x/server-deno/examples/database/create-document.md deleted file mode 100644 index 5180caf05c..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/create-document.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/create-email-attribute.md b/docs/examples/0.15.x/server-deno/examples/database/create-email-attribute.md deleted file mode 100644 index 0b192f60cc..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/create-email-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.createEmailAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/create-enum-attribute.md b/docs/examples/0.15.x/server-deno/examples/database/create-enum-attribute.md deleted file mode 100644 index 7b30a6139f..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/create-enum-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.createEnumAttribute('[COLLECTION_ID]', '', [], false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/create-float-attribute.md b/docs/examples/0.15.x/server-deno/examples/database/create-float-attribute.md deleted file mode 100644 index 75a8afc0a5..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/create-float-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.createFloatAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/create-index.md b/docs/examples/0.15.x/server-deno/examples/database/create-index.md deleted file mode 100644 index f519d1f4bb..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/create-index.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.createIndex('[COLLECTION_ID]', '', 'key', []); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/create-integer-attribute.md b/docs/examples/0.15.x/server-deno/examples/database/create-integer-attribute.md deleted file mode 100644 index ef09167d6f..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/create-integer-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.createIntegerAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/create-ip-attribute.md b/docs/examples/0.15.x/server-deno/examples/database/create-ip-attribute.md deleted file mode 100644 index c4daa5508e..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/create-ip-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.createIpAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/create-string-attribute.md b/docs/examples/0.15.x/server-deno/examples/database/create-string-attribute.md deleted file mode 100644 index 57b310105f..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/create-string-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.createStringAttribute('[COLLECTION_ID]', '', 1, false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/create-url-attribute.md b/docs/examples/0.15.x/server-deno/examples/database/create-url-attribute.md deleted file mode 100644 index f298e07baa..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/create-url-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.createUrlAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/delete-attribute.md b/docs/examples/0.15.x/server-deno/examples/database/delete-attribute.md deleted file mode 100644 index e817850cc9..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/delete-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.deleteAttribute('[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/delete-collection.md b/docs/examples/0.15.x/server-deno/examples/database/delete-collection.md deleted file mode 100644 index d62c8d0974..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/delete-collection.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.deleteCollection('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/delete-document.md b/docs/examples/0.15.x/server-deno/examples/database/delete-document.md deleted file mode 100644 index 558a4bbe67..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/delete-document.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/delete-index.md b/docs/examples/0.15.x/server-deno/examples/database/delete-index.md deleted file mode 100644 index 87bf839b82..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/delete-index.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.deleteIndex('[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/get-attribute.md b/docs/examples/0.15.x/server-deno/examples/database/get-attribute.md deleted file mode 100644 index fc2e6227c6..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/get-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.getAttribute('[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/get-collection.md b/docs/examples/0.15.x/server-deno/examples/database/get-collection.md deleted file mode 100644 index 0ca917a3c3..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/get-collection.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.getCollection('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/get-document.md b/docs/examples/0.15.x/server-deno/examples/database/get-document.md deleted file mode 100644 index 59ec5e4141..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/get-document.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/get-index.md b/docs/examples/0.15.x/server-deno/examples/database/get-index.md deleted file mode 100644 index af51b343fe..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/get-index.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.getIndex('[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/list-attributes.md b/docs/examples/0.15.x/server-deno/examples/database/list-attributes.md deleted file mode 100644 index 65ad1b197e..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/list-attributes.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.listAttributes('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/list-collections.md b/docs/examples/0.15.x/server-deno/examples/database/list-collections.md deleted file mode 100644 index 0bb6bf1679..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/list-collections.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.listCollections(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/list-documents.md b/docs/examples/0.15.x/server-deno/examples/database/list-documents.md deleted file mode 100644 index ead202aaa9..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/list-documents.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.listDocuments('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/list-indexes.md b/docs/examples/0.15.x/server-deno/examples/database/list-indexes.md deleted file mode 100644 index aff6da5698..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/list-indexes.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.listIndexes('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/update-collection.md b/docs/examples/0.15.x/server-deno/examples/database/update-collection.md deleted file mode 100644 index c105fe1204..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/update-collection.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.updateCollection('[COLLECTION_ID]', '[NAME]', 'document'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/database/update-document.md b/docs/examples/0.15.x/server-deno/examples/database/update-document.md deleted file mode 100644 index de19da7f7d..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/database/update-document.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/builds.md b/docs/examples/0.15.x/server-deno/examples/functions/builds.md deleted file mode 100644 index c8f0a30501..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/builds.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.builds('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/create-deployment.md b/docs/examples/0.15.x/server-deno/examples/functions/create-deployment.md deleted file mode 100644 index 847a82db8c..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/create-deployment.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', 'file.png', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/create-execution.md b/docs/examples/0.15.x/server-deno/examples/functions/create-execution.md deleted file mode 100644 index 0d52be69b6..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/create-execution.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.createExecution('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/create-tag.md b/docs/examples/0.15.x/server-deno/examples/functions/create-tag.md deleted file mode 100644 index 2a486976a5..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/create-tag.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.createTag('[FUNCTION_ID]', '[COMMAND]', new File([fileBlob], 'file.png')); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/create.md b/docs/examples/0.15.x/server-deno/examples/functions/create.md deleted file mode 100644 index ac301b2391..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/create.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/0.15.x/server-deno/examples/functions/delete-deployment.md deleted file mode 100644 index dbab698368..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/delete-deployment.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.deleteDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/delete-tag.md b/docs/examples/0.15.x/server-deno/examples/functions/delete-tag.md deleted file mode 100644 index 5961a10295..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/delete-tag.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.deleteTag('[FUNCTION_ID]', '[TAG_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/delete.md b/docs/examples/0.15.x/server-deno/examples/functions/delete.md deleted file mode 100644 index f2e7947b63..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/delete.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.delete('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/get-build.md b/docs/examples/0.15.x/server-deno/examples/functions/get-build.md deleted file mode 100644 index 06acbec107..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/get-build.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.getBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/get-deployment.md b/docs/examples/0.15.x/server-deno/examples/functions/get-deployment.md deleted file mode 100644 index 146503bf55..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/get-deployment.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.getDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/get-execution.md b/docs/examples/0.15.x/server-deno/examples/functions/get-execution.md deleted file mode 100644 index 6fe7289eb9..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/get-execution.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/get-tag.md b/docs/examples/0.15.x/server-deno/examples/functions/get-tag.md deleted file mode 100644 index dfaaf13bdf..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/get-tag.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.getTag('[FUNCTION_ID]', '[TAG_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/get.md b/docs/examples/0.15.x/server-deno/examples/functions/get.md deleted file mode 100644 index b6972fc91d..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.get('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/list-deployments.md b/docs/examples/0.15.x/server-deno/examples/functions/list-deployments.md deleted file mode 100644 index 82ea21c024..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/list-deployments.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.listDeployments('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/list-executions.md b/docs/examples/0.15.x/server-deno/examples/functions/list-executions.md deleted file mode 100644 index 347f4b7fb1..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/list-executions.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.listExecutions('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/0.15.x/server-deno/examples/functions/list-runtimes.md deleted file mode 100644 index 7ae999312a..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/list-runtimes.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.listRuntimes(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/list-tags.md b/docs/examples/0.15.x/server-deno/examples/functions/list-tags.md deleted file mode 100644 index dd1485e767..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/list-tags.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.listTags('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/list.md b/docs/examples/0.15.x/server-deno/examples/functions/list.md deleted file mode 100644 index 89d2a49a43..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/list.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/retry-build.md b/docs/examples/0.15.x/server-deno/examples/functions/retry-build.md deleted file mode 100644 index 1130fade30..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/retry-build.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.retryBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/update-deployment.md b/docs/examples/0.15.x/server-deno/examples/functions/update-deployment.md deleted file mode 100644 index f448107a36..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/update-deployment.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.updateDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/update-tag.md b/docs/examples/0.15.x/server-deno/examples/functions/update-tag.md deleted file mode 100644 index 4674767a83..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/update-tag.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.updateTag('[FUNCTION_ID]', '[TAG]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/functions/update.md b/docs/examples/0.15.x/server-deno/examples/functions/update.md deleted file mode 100644 index 9177529061..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/functions/update.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = functions.update('[FUNCTION_ID]', '[NAME]', []); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/health/get-antivirus.md b/docs/examples/0.15.x/server-deno/examples/health/get-antivirus.md deleted file mode 100644 index 027b145d8f..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/health/get-antivirus.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = health.getAntivirus(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/health/get-cache.md b/docs/examples/0.15.x/server-deno/examples/health/get-cache.md deleted file mode 100644 index f3e17bda8e..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/health/get-cache.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = health.getCache(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/health/get-d-b.md b/docs/examples/0.15.x/server-deno/examples/health/get-d-b.md deleted file mode 100644 index f6ba94a496..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/health/get-d-b.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = health.getDB(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/0.15.x/server-deno/examples/health/get-queue-certificates.md deleted file mode 100644 index 9d2e325630..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = health.getQueueCertificates(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/0.15.x/server-deno/examples/health/get-queue-functions.md deleted file mode 100644 index c31869c55f..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/health/get-queue-functions.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = health.getQueueFunctions(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/0.15.x/server-deno/examples/health/get-queue-logs.md deleted file mode 100644 index bb40c7a559..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/health/get-queue-logs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = health.getQueueLogs(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/health/get-queue-usage.md b/docs/examples/0.15.x/server-deno/examples/health/get-queue-usage.md deleted file mode 100644 index 0a0a001ceb..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/health/get-queue-usage.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = health.getQueueUsage(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/0.15.x/server-deno/examples/health/get-queue-webhooks.md deleted file mode 100644 index ddd2735f49..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = health.getQueueWebhooks(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/health/get-storage-local.md b/docs/examples/0.15.x/server-deno/examples/health/get-storage-local.md deleted file mode 100644 index 76df5561d7..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/health/get-storage-local.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = health.getStorageLocal(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/health/get-time.md b/docs/examples/0.15.x/server-deno/examples/health/get-time.md deleted file mode 100644 index 17de3193cf..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/health/get-time.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = health.getTime(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/health/get.md b/docs/examples/0.15.x/server-deno/examples/health/get.md deleted file mode 100644 index ac94e75627..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/health/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = health.get(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/locale/get-continents.md b/docs/examples/0.15.x/server-deno/examples/locale/get-continents.md deleted file mode 100644 index 44c18b54f4..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/locale/get-continents.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = locale.getContinents(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/locale/get-countries-e-u.md b/docs/examples/0.15.x/server-deno/examples/locale/get-countries-e-u.md deleted file mode 100644 index f14e4353ff..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = locale.getCountriesEU(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/locale/get-countries-phones.md b/docs/examples/0.15.x/server-deno/examples/locale/get-countries-phones.md deleted file mode 100644 index b23eff3dac..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = locale.getCountriesPhones(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/locale/get-countries.md b/docs/examples/0.15.x/server-deno/examples/locale/get-countries.md deleted file mode 100644 index 2f3facd7e8..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/locale/get-countries.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = locale.getCountries(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/locale/get-currencies.md b/docs/examples/0.15.x/server-deno/examples/locale/get-currencies.md deleted file mode 100644 index 34d4e233ee..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/locale/get-currencies.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = locale.getCurrencies(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/locale/get-languages.md b/docs/examples/0.15.x/server-deno/examples/locale/get-languages.md deleted file mode 100644 index 3fd5d8b8c2..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/locale/get-languages.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = locale.getLanguages(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/locale/get.md b/docs/examples/0.15.x/server-deno/examples/locale/get.md deleted file mode 100644 index 30ca9a22c7..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/locale/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = locale.get(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/create-bucket.md b/docs/examples/0.15.x/server-deno/examples/storage/create-bucket.md deleted file mode 100644 index 49784e866a..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/create-bucket.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.createBucket('[BUCKET_ID]', '[NAME]', 'file'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/create-file.md b/docs/examples/0.15.x/server-deno/examples/storage/create-file.md deleted file mode 100644 index d49c4e2079..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/create-file.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', 'file.png'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/0.15.x/server-deno/examples/storage/delete-bucket.md deleted file mode 100644 index 366c4e8973..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/delete-bucket.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.deleteBucket('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/delete-file.md b/docs/examples/0.15.x/server-deno/examples/storage/delete-file.md deleted file mode 100644 index 579920d9d0..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/delete-file.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.deleteFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/get-bucket.md b/docs/examples/0.15.x/server-deno/examples/storage/get-bucket.md deleted file mode 100644 index c45443866f..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/get-bucket.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.getBucket('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/get-file-download.md b/docs/examples/0.15.x/server-deno/examples/storage/get-file-download.md deleted file mode 100644 index 780dac4b49..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/get-file-download.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/0.15.x/server-deno/examples/storage/get-file-preview.md deleted file mode 100644 index cc81db1b0f..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/get-file-preview.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.getFilePreview('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/get-file-view.md b/docs/examples/0.15.x/server-deno/examples/storage/get-file-view.md deleted file mode 100644 index 9dba58ad4f..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/get-file-view.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.getFileView('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/get-file.md b/docs/examples/0.15.x/server-deno/examples/storage/get-file.md deleted file mode 100644 index 5494fca02c..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/get-file.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.getFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/list-buckets.md b/docs/examples/0.15.x/server-deno/examples/storage/list-buckets.md deleted file mode 100644 index 51d9a3b9e2..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/list-buckets.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.listBuckets(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/list-files.md b/docs/examples/0.15.x/server-deno/examples/storage/list-files.md deleted file mode 100644 index 110fba5a0c..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/list-files.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.listFiles('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/update-bucket.md b/docs/examples/0.15.x/server-deno/examples/storage/update-bucket.md deleted file mode 100644 index 7040960ee5..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/update-bucket.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.updateBucket('[BUCKET_ID]', '[NAME]', 'file'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/storage/update-file.md b/docs/examples/0.15.x/server-deno/examples/storage/update-file.md deleted file mode 100644 index e29feff777..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/storage/update-file.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = storage.updateFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/teams/create-membership.md b/docs/examples/0.15.x/server-deno/examples/teams/create-membership.md deleted file mode 100644 index b85e811d65..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/teams/create-membership.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/teams/create.md b/docs/examples/0.15.x/server-deno/examples/teams/create.md deleted file mode 100644 index 728e649886..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/teams/create.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = teams.create('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/teams/delete-membership.md b/docs/examples/0.15.x/server-deno/examples/teams/delete-membership.md deleted file mode 100644 index 94e60ae03a..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/teams/delete-membership.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/teams/delete.md b/docs/examples/0.15.x/server-deno/examples/teams/delete.md deleted file mode 100644 index 4b1e0bddfc..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/teams/delete.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = teams.delete('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/teams/get-membership.md b/docs/examples/0.15.x/server-deno/examples/teams/get-membership.md deleted file mode 100644 index db60e1976f..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/teams/get-membership.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = teams.getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/teams/get-memberships.md b/docs/examples/0.15.x/server-deno/examples/teams/get-memberships.md deleted file mode 100644 index 467101c956..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/teams/get-memberships.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = teams.getMemberships('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/teams/get.md b/docs/examples/0.15.x/server-deno/examples/teams/get.md deleted file mode 100644 index 435391a63a..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/teams/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = teams.get('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/teams/list.md b/docs/examples/0.15.x/server-deno/examples/teams/list.md deleted file mode 100644 index 6d00f6df54..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/teams/list.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = teams.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/teams/update-membership-roles.md b/docs/examples/0.15.x/server-deno/examples/teams/update-membership-roles.md deleted file mode 100644 index 3337aa0a3a..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/0.15.x/server-deno/examples/teams/update-membership-status.md deleted file mode 100644 index 784f1a0349..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/teams/update-membership-status.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/teams/update.md b/docs/examples/0.15.x/server-deno/examples/teams/update.md deleted file mode 100644 index 9d73002f5c..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/teams/update.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = teams.update('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/create-argon2user.md b/docs/examples/0.15.x/server-deno/examples/users/create-argon2user.md deleted file mode 100644 index e52737a013..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/create-argon2user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.createArgon2User('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/0.15.x/server-deno/examples/users/create-bcrypt-user.md deleted file mode 100644 index 52a7f2c219..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.createBcryptUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/0.15.x/server-deno/examples/users/create-m-d5user.md deleted file mode 100644 index 8d553f788a..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/create-m-d5user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.createMD5User('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/0.15.x/server-deno/examples/users/create-p-h-pass-user.md deleted file mode 100644 index daf38f70e4..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.createPHPassUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/create-s-crypt-modified-user.md b/docs/examples/0.15.x/server-deno/examples/users/create-s-crypt-modified-user.md deleted file mode 100644 index 72173062a5..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/create-s-crypt-modified-user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.createSCryptModifiedUser('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', '[PASSWORD_SALT_SEPARATOR]', '[PASSWORD_SIGNER_KEY]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/create-s-crypt-user.md b/docs/examples/0.15.x/server-deno/examples/users/create-s-crypt-user.md deleted file mode 100644 index 52ef8e5b39..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/create-s-crypt-user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.createSCryptUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/0.15.x/server-deno/examples/users/create-s-h-a-user.md deleted file mode 100644 index 7489e45838..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.createSHAUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/create.md b/docs/examples/0.15.x/server-deno/examples/users/create.md deleted file mode 100644 index 3682781049..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/create.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.create('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/delete-session.md b/docs/examples/0.15.x/server-deno/examples/users/delete-session.md deleted file mode 100644 index e04024e5a2..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/delete-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.deleteSession('[USER_ID]', '[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/delete-sessions.md b/docs/examples/0.15.x/server-deno/examples/users/delete-sessions.md deleted file mode 100644 index 89dec44e39..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/delete-sessions.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.deleteSessions('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/delete.md b/docs/examples/0.15.x/server-deno/examples/users/delete.md deleted file mode 100644 index 9de2296c4c..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/delete.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.delete('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/get-logs.md b/docs/examples/0.15.x/server-deno/examples/users/get-logs.md deleted file mode 100644 index 5770e84525..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/get-logs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.getLogs('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/get-memberships.md b/docs/examples/0.15.x/server-deno/examples/users/get-memberships.md deleted file mode 100644 index cc3c1e109d..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/get-memberships.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.getMemberships('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/get-prefs.md b/docs/examples/0.15.x/server-deno/examples/users/get-prefs.md deleted file mode 100644 index 033c56f3db..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/get-prefs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.getPrefs('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/get-sessions.md b/docs/examples/0.15.x/server-deno/examples/users/get-sessions.md deleted file mode 100644 index 15f0b53c5c..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/get-sessions.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.getSessions('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/get.md b/docs/examples/0.15.x/server-deno/examples/users/get.md deleted file mode 100644 index acee263e2f..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.get('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/list.md b/docs/examples/0.15.x/server-deno/examples/users/list.md deleted file mode 100644 index c986039946..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/list.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/update-email.md b/docs/examples/0.15.x/server-deno/examples/users/update-email.md deleted file mode 100644 index 1000604764..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/update-email.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.updateEmail('[USER_ID]', 'email@example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/update-name.md b/docs/examples/0.15.x/server-deno/examples/users/update-name.md deleted file mode 100644 index 5434047853..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/update-name.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.updateName('[USER_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/update-password.md b/docs/examples/0.15.x/server-deno/examples/users/update-password.md deleted file mode 100644 index ac11596a08..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/update-password.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.updatePassword('[USER_ID]', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/update-prefs.md b/docs/examples/0.15.x/server-deno/examples/users/update-prefs.md deleted file mode 100644 index 4e88ed567a..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/update-prefs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.updatePrefs('[USER_ID]', {}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/update-status.md b/docs/examples/0.15.x/server-deno/examples/users/update-status.md deleted file mode 100644 index ec52d3715c..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/update-status.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.updateStatus('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-deno/examples/users/update-verification.md b/docs/examples/0.15.x/server-deno/examples/users/update-verification.md deleted file mode 100644 index 4859b2c7eb..0000000000 --- a/docs/examples/0.15.x/server-deno/examples/users/update-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - - -let promise = users.updateVerification('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/create-recovery.md b/docs/examples/0.15.x/server-kotlin/java/account/create-recovery.md deleted file mode 100644 index 83fbe91a95..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/create-recovery.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.createRecovery( - email = "email@example.com", - url = "https://example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/create-verification.md b/docs/examples/0.15.x/server-kotlin/java/account/create-verification.md deleted file mode 100644 index 2ca770e2e1..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/create-verification.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.createVerification( - url = "https://example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/delete-session.md b/docs/examples/0.15.x/server-kotlin/java/account/delete-session.md deleted file mode 100644 index bb925a77e3..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/delete-session.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.deleteSession( - sessionId = "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/0.15.x/server-kotlin/java/account/delete-sessions.md deleted file mode 100644 index 4cda782b99..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/delete-sessions.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.deleteSessions(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/delete.md b/docs/examples/0.15.x/server-kotlin/java/account/delete.md deleted file mode 100644 index bec268b8e0..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/delete.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.delete(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/get-logs.md b/docs/examples/0.15.x/server-kotlin/java/account/get-logs.md deleted file mode 100644 index 99bab4a886..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/get-logs.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.getLogs( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/get-prefs.md b/docs/examples/0.15.x/server-kotlin/java/account/get-prefs.md deleted file mode 100644 index 501e2d08c7..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/get-prefs.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.getPrefs(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/get-session.md b/docs/examples/0.15.x/server-kotlin/java/account/get-session.md deleted file mode 100644 index 6f3e9e1a82..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/get-session.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.getSession( - sessionId = "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/get-sessions.md b/docs/examples/0.15.x/server-kotlin/java/account/get-sessions.md deleted file mode 100644 index 1f42599185..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/get-sessions.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.getSessions(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/get.md b/docs/examples/0.15.x/server-kotlin/java/account/get.md deleted file mode 100644 index 2429a5d5d9..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/get.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.get(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/update-email.md b/docs/examples/0.15.x/server-kotlin/java/account/update-email.md deleted file mode 100644 index 187fa22e2d..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/update-email.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateEmail( - email = "email@example.com", - password = "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/update-name.md b/docs/examples/0.15.x/server-kotlin/java/account/update-name.md deleted file mode 100644 index 6f15d10e41..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/update-name.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateName( - name = "[NAME]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/update-o-auth2tokens.md b/docs/examples/0.15.x/server-kotlin/java/account/update-o-auth2tokens.md deleted file mode 100644 index ec04c1925f..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/update-o-auth2tokens.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateOAuth2Tokens( - sessionId = "[SESSION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/update-password.md b/docs/examples/0.15.x/server-kotlin/java/account/update-password.md deleted file mode 100644 index 5058503b4c..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/update-password.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updatePassword( - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/update-prefs.md b/docs/examples/0.15.x/server-kotlin/java/account/update-prefs.md deleted file mode 100644 index ca085e904c..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/update-prefs.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updatePrefs( - prefs = mapOf( "a" to "b" ) - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/update-recovery.md b/docs/examples/0.15.x/server-kotlin/java/account/update-recovery.md deleted file mode 100644 index d2b79d3dc5..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/update-recovery.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateRecovery( - userId = "[USER_ID]", - secret = "[SECRET]", - password = "password", - passwordAgain = "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/update-session.md b/docs/examples/0.15.x/server-kotlin/java/account/update-session.md deleted file mode 100644 index 4e41fbb4e1..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/update-session.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateSession( - sessionId = "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/update-status.md b/docs/examples/0.15.x/server-kotlin/java/account/update-status.md deleted file mode 100644 index 6a8e86649f..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/update-status.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateStatus(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/account/update-verification.md b/docs/examples/0.15.x/server-kotlin/java/account/update-verification.md deleted file mode 100644 index 0c0eb6c962..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/account/update-verification.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateVerification( - userId = "[USER_ID]", - secret = "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/0.15.x/server-kotlin/java/avatars/get-browser.md deleted file mode 100644 index 3042e77002..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/avatars/get-browser.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getBrowser( - code = "aa", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/0.15.x/server-kotlin/java/avatars/get-credit-card.md deleted file mode 100644 index 956f6b76f3..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/avatars/get-credit-card.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getCreditCard( - code = "amex", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/0.15.x/server-kotlin/java/avatars/get-favicon.md deleted file mode 100644 index 35b64fcc0b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/avatars/get-favicon.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getFavicon( - url = "https://example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/0.15.x/server-kotlin/java/avatars/get-flag.md deleted file mode 100644 index ccc90df1e6..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/avatars/get-flag.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getFlag( - code = "af", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/avatars/get-image.md b/docs/examples/0.15.x/server-kotlin/java/avatars/get-image.md deleted file mode 100644 index 357f6bf29c..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/avatars/get-image.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getImage( - url = "https://example.com", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/0.15.x/server-kotlin/java/avatars/get-initials.md deleted file mode 100644 index c6ef8ce8e7..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/avatars/get-initials.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getInitials( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/0.15.x/server-kotlin/java/avatars/get-q-r.md deleted file mode 100644 index 07031b38ce..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/avatars/get-q-r.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getQR( - text = "[TEXT]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/create-boolean-attribute.md b/docs/examples/0.15.x/server-kotlin/java/database/create-boolean-attribute.md deleted file mode 100644 index 1ab665e341..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/create-boolean-attribute.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.createBooleanAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/create-collection.md b/docs/examples/0.15.x/server-kotlin/java/database/create-collection.md deleted file mode 100644 index c028333c88..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/create-collection.md +++ /dev/null @@ -1,40 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.createCollection( - collectionId = "[COLLECTION_ID]", - name = "[NAME]", - permission = "document", - read = ["role:all"], - write = ["role:all"] - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/create-document.md b/docs/examples/0.15.x/server-kotlin/java/database/create-document.md deleted file mode 100644 index 45d80217d1..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/create-document.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.createDocument( - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]", - data = mapOf( "a" to "b" ), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/create-email-attribute.md b/docs/examples/0.15.x/server-kotlin/java/database/create-email-attribute.md deleted file mode 100644 index 82d5b3f891..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/create-email-attribute.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.createEmailAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/create-enum-attribute.md b/docs/examples/0.15.x/server-kotlin/java/database/create-enum-attribute.md deleted file mode 100644 index 37c1a760b0..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/create-enum-attribute.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.createEnumAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - elements = listOf(), - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/create-float-attribute.md b/docs/examples/0.15.x/server-kotlin/java/database/create-float-attribute.md deleted file mode 100644 index 57014cfb1c..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/create-float-attribute.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.createFloatAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/create-index.md b/docs/examples/0.15.x/server-kotlin/java/database/create-index.md deleted file mode 100644 index fd1cbfe992..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/create-index.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.createIndex( - collectionId = "[COLLECTION_ID]", - key = "", - type = "key", - attributes = listOf(), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/create-integer-attribute.md b/docs/examples/0.15.x/server-kotlin/java/database/create-integer-attribute.md deleted file mode 100644 index b3aef2296b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/create-integer-attribute.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.createIntegerAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/create-ip-attribute.md b/docs/examples/0.15.x/server-kotlin/java/database/create-ip-attribute.md deleted file mode 100644 index 6cf941f05a..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/create-ip-attribute.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.createIpAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/create-string-attribute.md b/docs/examples/0.15.x/server-kotlin/java/database/create-string-attribute.md deleted file mode 100644 index 05492e9f76..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/create-string-attribute.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.createStringAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - size = 1, - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/create-url-attribute.md b/docs/examples/0.15.x/server-kotlin/java/database/create-url-attribute.md deleted file mode 100644 index cb94279946..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/create-url-attribute.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.createUrlAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/delete-attribute.md b/docs/examples/0.15.x/server-kotlin/java/database/delete-attribute.md deleted file mode 100644 index 46689fc559..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/delete-attribute.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.deleteAttribute( - collectionId = "[COLLECTION_ID]", - key = "" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/delete-collection.md b/docs/examples/0.15.x/server-kotlin/java/database/delete-collection.md deleted file mode 100644 index ea666ca565..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/delete-collection.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.deleteCollection( - collectionId = "[COLLECTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/delete-document.md b/docs/examples/0.15.x/server-kotlin/java/database/delete-document.md deleted file mode 100644 index 9bc26e85f0..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/delete-document.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.deleteDocument( - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/delete-index.md b/docs/examples/0.15.x/server-kotlin/java/database/delete-index.md deleted file mode 100644 index 1845609def..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/delete-index.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.deleteIndex( - collectionId = "[COLLECTION_ID]", - key = "" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/get-attribute.md b/docs/examples/0.15.x/server-kotlin/java/database/get-attribute.md deleted file mode 100644 index 699e933601..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/get-attribute.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.getAttribute( - collectionId = "[COLLECTION_ID]", - key = "" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/get-collection.md b/docs/examples/0.15.x/server-kotlin/java/database/get-collection.md deleted file mode 100644 index 1d6e96e45d..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/get-collection.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.getCollection( - collectionId = "[COLLECTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/get-document.md b/docs/examples/0.15.x/server-kotlin/java/database/get-document.md deleted file mode 100644 index 4ed6fe7ff9..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/get-document.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.getDocument( - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/get-index.md b/docs/examples/0.15.x/server-kotlin/java/database/get-index.md deleted file mode 100644 index 5399ec431b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/get-index.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.getIndex( - collectionId = "[COLLECTION_ID]", - key = "" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/list-attributes.md b/docs/examples/0.15.x/server-kotlin/java/database/list-attributes.md deleted file mode 100644 index 98a6c21732..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/list-attributes.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.listAttributes( - collectionId = "[COLLECTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/list-collections.md b/docs/examples/0.15.x/server-kotlin/java/database/list-collections.md deleted file mode 100644 index 9fbda9f9c6..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/list-collections.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.listCollections( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/list-documents.md b/docs/examples/0.15.x/server-kotlin/java/database/list-documents.md deleted file mode 100644 index 05e890783a..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/list-documents.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.listDocuments( - collectionId = "[COLLECTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/list-indexes.md b/docs/examples/0.15.x/server-kotlin/java/database/list-indexes.md deleted file mode 100644 index 394b661630..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/list-indexes.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.listIndexes( - collectionId = "[COLLECTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/update-collection.md b/docs/examples/0.15.x/server-kotlin/java/database/update-collection.md deleted file mode 100644 index f6319e0603..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/update-collection.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.updateCollection( - collectionId = "[COLLECTION_ID]", - name = "[NAME]", - permission = "document", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/database/update-document.md b/docs/examples/0.15.x/server-kotlin/java/database/update-document.md deleted file mode 100644 index 9c06624d4b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/database/update-document.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Database database = new Database(client); - database.updateDocument( - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]", - data = mapOf( "a" to "b" ), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/builds.md b/docs/examples/0.15.x/server-kotlin/java/functions/builds.md deleted file mode 100644 index d853bd941b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/builds.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.builds( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/0.15.x/server-kotlin/java/functions/create-deployment.md deleted file mode 100644 index 1ba7bd77cd..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/create-deployment.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.createDeployment( - functionId = "[FUNCTION_ID]", - entrypoint = "[ENTRYPOINT]", - code = File("file.png"), - activate = false - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/create-execution.md b/docs/examples/0.15.x/server-kotlin/java/functions/create-execution.md deleted file mode 100644 index eb13aed5c3..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/create-execution.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.createExecution( - functionId = "[FUNCTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/create-tag.md b/docs/examples/0.15.x/server-kotlin/java/functions/create-tag.md deleted file mode 100644 index 2ab53ae359..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/create-tag.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.createTag( - functionId = "[FUNCTION_ID]", - command = "[COMMAND]", - code = File("./path-to-files/image.jpg") - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/create.md b/docs/examples/0.15.x/server-kotlin/java/functions/create.md deleted file mode 100644 index b13345c668..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/create.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.create( - functionId = "[FUNCTION_ID]", - name = "[NAME]", - execute = listOf(), - runtime = "node-14.5", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/0.15.x/server-kotlin/java/functions/delete-deployment.md deleted file mode 100644 index 58fbc7cfee..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/delete-deployment.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.deleteDeployment( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/delete-tag.md b/docs/examples/0.15.x/server-kotlin/java/functions/delete-tag.md deleted file mode 100644 index 35cd36fbdc..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/delete-tag.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.deleteTag( - functionId = "[FUNCTION_ID]", - tagId = "[TAG_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/delete.md b/docs/examples/0.15.x/server-kotlin/java/functions/delete.md deleted file mode 100644 index a51709b874..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/delete.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.delete( - functionId = "[FUNCTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/get-build.md b/docs/examples/0.15.x/server-kotlin/java/functions/get-build.md deleted file mode 100644 index 701d972349..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/get-build.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.getBuild( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]", - buildId = "[BUILD_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/0.15.x/server-kotlin/java/functions/get-deployment.md deleted file mode 100644 index 276e711bba..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/get-deployment.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.getDeployment( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/get-execution.md b/docs/examples/0.15.x/server-kotlin/java/functions/get-execution.md deleted file mode 100644 index 4161b28eaf..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/get-execution.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.getExecution( - functionId = "[FUNCTION_ID]", - executionId = "[EXECUTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/get-tag.md b/docs/examples/0.15.x/server-kotlin/java/functions/get-tag.md deleted file mode 100644 index 4e805f8386..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/get-tag.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.getTag( - functionId = "[FUNCTION_ID]", - tagId = "[TAG_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/get.md b/docs/examples/0.15.x/server-kotlin/java/functions/get.md deleted file mode 100644 index 8e1cd5ef29..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/get.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.get( - functionId = "[FUNCTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/0.15.x/server-kotlin/java/functions/list-deployments.md deleted file mode 100644 index 920684554c..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/list-deployments.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.listDeployments( - functionId = "[FUNCTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/list-executions.md b/docs/examples/0.15.x/server-kotlin/java/functions/list-executions.md deleted file mode 100644 index 915bf64d4b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/list-executions.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.listExecutions( - functionId = "[FUNCTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/0.15.x/server-kotlin/java/functions/list-runtimes.md deleted file mode 100644 index e70bd27f76..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/list-runtimes.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.listRuntimes(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/list-tags.md b/docs/examples/0.15.x/server-kotlin/java/functions/list-tags.md deleted file mode 100644 index 4d67eb99dd..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/list-tags.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.listTags( - functionId = "[FUNCTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/list.md b/docs/examples/0.15.x/server-kotlin/java/functions/list.md deleted file mode 100644 index e365f30f1f..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/list.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.list( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/retry-build.md b/docs/examples/0.15.x/server-kotlin/java/functions/retry-build.md deleted file mode 100644 index e098597e63..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/retry-build.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.retryBuild( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]", - buildId = "[BUILD_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/0.15.x/server-kotlin/java/functions/update-deployment.md deleted file mode 100644 index e13f2e2471..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/update-deployment.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.updateDeployment( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/update-tag.md b/docs/examples/0.15.x/server-kotlin/java/functions/update-tag.md deleted file mode 100644 index 572e514ec0..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/update-tag.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.updateTag( - functionId = "[FUNCTION_ID]", - tag = "[TAG]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/update.md b/docs/examples/0.15.x/server-kotlin/java/functions/update.md deleted file mode 100644 index 80d95c2f4b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/functions/update.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.update( - functionId = "[FUNCTION_ID]", - name = "[NAME]", - execute = listOf(), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/0.15.x/server-kotlin/java/health/get-antivirus.md deleted file mode 100644 index 3a40f730a2..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/health/get-antivirus.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getAntivirus(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/health/get-cache.md b/docs/examples/0.15.x/server-kotlin/java/health/get-cache.md deleted file mode 100644 index e7300a34f4..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/health/get-cache.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getCache(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/health/get-d-b.md b/docs/examples/0.15.x/server-kotlin/java/health/get-d-b.md deleted file mode 100644 index 9644806bd2..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/health/get-d-b.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getDB(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/0.15.x/server-kotlin/java/health/get-queue-certificates.md deleted file mode 100644 index 084576b65a..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/health/get-queue-certificates.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getQueueCertificates(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/0.15.x/server-kotlin/java/health/get-queue-functions.md deleted file mode 100644 index 9809a03d2f..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/health/get-queue-functions.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getQueueFunctions(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/0.15.x/server-kotlin/java/health/get-queue-logs.md deleted file mode 100644 index 4a08fa9321..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/health/get-queue-logs.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getQueueLogs(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/health/get-queue-usage.md b/docs/examples/0.15.x/server-kotlin/java/health/get-queue-usage.md deleted file mode 100644 index e7fd65f170..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/health/get-queue-usage.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getQueueUsage(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/0.15.x/server-kotlin/java/health/get-queue-webhooks.md deleted file mode 100644 index d8bc27a2bf..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/health/get-queue-webhooks.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getQueueWebhooks(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/0.15.x/server-kotlin/java/health/get-storage-local.md deleted file mode 100644 index 079eca49e1..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/health/get-storage-local.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getStorageLocal(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/health/get-time.md b/docs/examples/0.15.x/server-kotlin/java/health/get-time.md deleted file mode 100644 index a8ca3b91de..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/health/get-time.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getTime(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/health/get.md b/docs/examples/0.15.x/server-kotlin/java/health/get.md deleted file mode 100644 index 30adbbbf60..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/health/get.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.get(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/locale/get-continents.md b/docs/examples/0.15.x/server-kotlin/java/locale/get-continents.md deleted file mode 100644 index 836eadac9a..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/locale/get-continents.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.getContinents(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/locale/get-countries-e-u.md b/docs/examples/0.15.x/server-kotlin/java/locale/get-countries-e-u.md deleted file mode 100644 index 3bb79f9482..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/locale/get-countries-e-u.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.getCountriesEU(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/locale/get-countries-phones.md b/docs/examples/0.15.x/server-kotlin/java/locale/get-countries-phones.md deleted file mode 100644 index b1596d2ccb..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/locale/get-countries-phones.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.getCountriesPhones(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/locale/get-countries.md b/docs/examples/0.15.x/server-kotlin/java/locale/get-countries.md deleted file mode 100644 index 95d1fef52f..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/locale/get-countries.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.getCountries(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/locale/get-currencies.md b/docs/examples/0.15.x/server-kotlin/java/locale/get-currencies.md deleted file mode 100644 index c7495f485a..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/locale/get-currencies.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.getCurrencies(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/locale/get-languages.md b/docs/examples/0.15.x/server-kotlin/java/locale/get-languages.md deleted file mode 100644 index f59054e699..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/locale/get-languages.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.getLanguages(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/locale/get.md b/docs/examples/0.15.x/server-kotlin/java/locale/get.md deleted file mode 100644 index bf2f34fb02..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/locale/get.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.get(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/0.15.x/server-kotlin/java/storage/create-bucket.md deleted file mode 100644 index 54f06350c7..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/create-bucket.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.createBucket( - bucketId = "[BUCKET_ID]", - name = "[NAME]", - permission = "file", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/create-file.md b/docs/examples/0.15.x/server-kotlin/java/storage/create-file.md deleted file mode 100644 index 0debf03fba..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/create-file.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.createFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - file = File("file.png"), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/0.15.x/server-kotlin/java/storage/delete-bucket.md deleted file mode 100644 index 5d00b7bc6d..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/delete-bucket.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.deleteBucket( - bucketId = "[BUCKET_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/delete-file.md b/docs/examples/0.15.x/server-kotlin/java/storage/delete-file.md deleted file mode 100644 index 3d41866c53..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/delete-file.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.deleteFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/0.15.x/server-kotlin/java/storage/get-bucket.md deleted file mode 100644 index c8b92bda98..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/get-bucket.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.getBucket( - bucketId = "[BUCKET_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/0.15.x/server-kotlin/java/storage/get-file-download.md deleted file mode 100644 index b116d5bb7b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/get-file-download.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.getFileDownload( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/0.15.x/server-kotlin/java/storage/get-file-preview.md deleted file mode 100644 index 32284dc7e3..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/get-file-preview.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.getFilePreview( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/0.15.x/server-kotlin/java/storage/get-file-view.md deleted file mode 100644 index 0332da5e89..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/get-file-view.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.getFileView( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/get-file.md b/docs/examples/0.15.x/server-kotlin/java/storage/get-file.md deleted file mode 100644 index 61e3d6c20c..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/get-file.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.getFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/0.15.x/server-kotlin/java/storage/list-buckets.md deleted file mode 100644 index ffce5eb986..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/list-buckets.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.listBuckets( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/list-files.md b/docs/examples/0.15.x/server-kotlin/java/storage/list-files.md deleted file mode 100644 index de33a00b46..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/list-files.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.listFiles( - bucketId = "[BUCKET_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/0.15.x/server-kotlin/java/storage/update-bucket.md deleted file mode 100644 index b8b27bda14..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/update-bucket.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.updateBucket( - bucketId = "[BUCKET_ID]", - name = "[NAME]", - permission = "file", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/update-file.md b/docs/examples/0.15.x/server-kotlin/java/storage/update-file.md deleted file mode 100644 index e1c2ed440c..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/storage/update-file.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.updateFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/teams/create-membership.md b/docs/examples/0.15.x/server-kotlin/java/teams/create-membership.md deleted file mode 100644 index 077ce3f058..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/teams/create-membership.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.createMembership( - teamId = "[TEAM_ID]", - email = "email@example.com", - roles = listOf(), - url = "https://example.com", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/teams/create.md b/docs/examples/0.15.x/server-kotlin/java/teams/create.md deleted file mode 100644 index 3cc1f9d19d..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/teams/create.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.create( - teamId = "[TEAM_ID]", - name = "[NAME]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/0.15.x/server-kotlin/java/teams/delete-membership.md deleted file mode 100644 index 7a57a32d9a..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/teams/delete-membership.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.deleteMembership( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/teams/delete.md b/docs/examples/0.15.x/server-kotlin/java/teams/delete.md deleted file mode 100644 index 7ace480161..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/teams/delete.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.delete( - teamId = "[TEAM_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/teams/get-membership.md b/docs/examples/0.15.x/server-kotlin/java/teams/get-membership.md deleted file mode 100644 index 5d4890693d..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/teams/get-membership.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.getMembership( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/teams/get-memberships.md b/docs/examples/0.15.x/server-kotlin/java/teams/get-memberships.md deleted file mode 100644 index af76419c43..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/teams/get-memberships.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.getMemberships( - teamId = "[TEAM_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/teams/get.md b/docs/examples/0.15.x/server-kotlin/java/teams/get.md deleted file mode 100644 index 23f52dc5c5..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/teams/get.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.get( - teamId = "[TEAM_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/teams/list.md b/docs/examples/0.15.x/server-kotlin/java/teams/list.md deleted file mode 100644 index 2a7bf89f6e..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/teams/list.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.list( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/teams/update-membership-roles.md b/docs/examples/0.15.x/server-kotlin/java/teams/update-membership-roles.md deleted file mode 100644 index 7e8d68283d..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/teams/update-membership-roles.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.updateMembershipRoles( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]", - roles = listOf() - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/0.15.x/server-kotlin/java/teams/update-membership-status.md deleted file mode 100644 index 0a528d4d81..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/teams/update-membership-status.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Teams teams = new Teams(client); - teams.updateMembershipStatus( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]", - userId = "[USER_ID]", - secret = "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/teams/update.md b/docs/examples/0.15.x/server-kotlin/java/teams/update.md deleted file mode 100644 index 5c05d6a65f..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/teams/update.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.update( - teamId = "[TEAM_ID]", - name = "[NAME]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/0.15.x/server-kotlin/java/users/create-argon2user.md deleted file mode 100644 index 04a93bb94b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/create-argon2user.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createArgon2User( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/0.15.x/server-kotlin/java/users/create-bcrypt-user.md deleted file mode 100644 index 026b4593a2..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/create-bcrypt-user.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createBcryptUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/0.15.x/server-kotlin/java/users/create-m-d5user.md deleted file mode 100644 index 06b0ee0a38..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/create-m-d5user.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createMD5User( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/0.15.x/server-kotlin/java/users/create-p-h-pass-user.md deleted file mode 100644 index 5dcc377297..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/create-p-h-pass-user.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createPHPassUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/create-s-crypt-modified-user.md b/docs/examples/0.15.x/server-kotlin/java/users/create-s-crypt-modified-user.md deleted file mode 100644 index 93b39d0908..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/create-s-crypt-modified-user.md +++ /dev/null @@ -1,41 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createSCryptModifiedUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - passwordSalt = "[PASSWORD_SALT]", - passwordSaltSeparator = "[PASSWORD_SALT_SEPARATOR]", - passwordSignerKey = "[PASSWORD_SIGNER_KEY]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/create-s-crypt-user.md b/docs/examples/0.15.x/server-kotlin/java/users/create-s-crypt-user.md deleted file mode 100644 index eafdea8a83..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/create-s-crypt-user.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createSCryptUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/0.15.x/server-kotlin/java/users/create-s-h-a-user.md deleted file mode 100644 index 2bb0c18c31..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/create-s-h-a-user.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createSHAUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/create.md b/docs/examples/0.15.x/server-kotlin/java/users/create.md deleted file mode 100644 index d9dea45ab9..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/create.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.create( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/delete-session.md b/docs/examples/0.15.x/server-kotlin/java/users/delete-session.md deleted file mode 100644 index 7295506bc2..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/delete-session.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.deleteSession( - userId = "[USER_ID]", - sessionId = "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/0.15.x/server-kotlin/java/users/delete-sessions.md deleted file mode 100644 index 6fb4028c37..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/delete-sessions.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.deleteSessions( - userId = "[USER_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/delete.md b/docs/examples/0.15.x/server-kotlin/java/users/delete.md deleted file mode 100644 index f004170a1e..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/delete.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.delete( - userId = "[USER_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/get-logs.md b/docs/examples/0.15.x/server-kotlin/java/users/get-logs.md deleted file mode 100644 index 226f70a206..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/get-logs.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.getLogs( - userId = "[USER_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/get-memberships.md b/docs/examples/0.15.x/server-kotlin/java/users/get-memberships.md deleted file mode 100644 index d87891b69c..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/get-memberships.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.getMemberships( - userId = "[USER_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/get-prefs.md b/docs/examples/0.15.x/server-kotlin/java/users/get-prefs.md deleted file mode 100644 index d45fbf4682..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/get-prefs.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.getPrefs( - userId = "[USER_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/get-sessions.md b/docs/examples/0.15.x/server-kotlin/java/users/get-sessions.md deleted file mode 100644 index cf2e06a858..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/get-sessions.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.getSessions( - userId = "[USER_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/get.md b/docs/examples/0.15.x/server-kotlin/java/users/get.md deleted file mode 100644 index 98b3df0680..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/get.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.get( - userId = "[USER_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/list.md b/docs/examples/0.15.x/server-kotlin/java/users/list.md deleted file mode 100644 index f0c4710b65..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/list.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.list( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/update-email.md b/docs/examples/0.15.x/server-kotlin/java/users/update-email.md deleted file mode 100644 index c023caa014..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/update-email.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updateEmail( - userId = "[USER_ID]", - email = "email@example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/update-name.md b/docs/examples/0.15.x/server-kotlin/java/users/update-name.md deleted file mode 100644 index cf760ae78a..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/update-name.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updateName( - userId = "[USER_ID]", - name = "[NAME]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/update-password.md b/docs/examples/0.15.x/server-kotlin/java/users/update-password.md deleted file mode 100644 index a8fc3f3c50..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/update-password.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updatePassword( - userId = "[USER_ID]", - password = "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/update-prefs.md b/docs/examples/0.15.x/server-kotlin/java/users/update-prefs.md deleted file mode 100644 index 393366cf10..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/update-prefs.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updatePrefs( - userId = "[USER_ID]", - prefs = mapOf( "a" to "b" ) - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/update-status.md b/docs/examples/0.15.x/server-kotlin/java/users/update-status.md deleted file mode 100644 index e847dcedc3..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/update-status.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updateStatus( - userId = "[USER_ID]", - status = false - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/java/users/update-verification.md b/docs/examples/0.15.x/server-kotlin/java/users/update-verification.md deleted file mode 100644 index cf62364845..0000000000 --- a/docs/examples/0.15.x/server-kotlin/java/users/update-verification.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updateVerification( - userId = "[USER_ID]", - emailVerification = false - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/create-recovery.md deleted file mode 100644 index e43eaf8698..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/create-recovery.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.createRecovery( - email = "email@example.com", - url = "https://example.com" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/create-verification.md deleted file mode 100644 index 41f34631b6..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/create-verification.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.createVerification( - url = "https://example.com" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/delete-session.md deleted file mode 100644 index 11b91b05eb..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/delete-session.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.deleteSession( - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/delete-sessions.md deleted file mode 100644 index 5ff7c5ce75..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/delete-sessions.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.deleteSessions() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/delete.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/delete.md deleted file mode 100644 index a9177b5a29..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/delete.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.delete() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/get-logs.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/get-logs.md deleted file mode 100644 index 8b722a2d85..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/get-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.getLogs( - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/get-prefs.md deleted file mode 100644 index 8d836f1a83..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/get-prefs.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.getPrefs() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/get-session.md deleted file mode 100644 index 3a3ae1fbb3..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/get-session.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.getSession( - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/get-sessions.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/get-sessions.md deleted file mode 100644 index 21b26a6c08..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/get-sessions.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.getSessions() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/get.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/get.md deleted file mode 100644 index 4195939136..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/get.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.get() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/update-email.md deleted file mode 100644 index b58849393d..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-email.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateEmail( - email = "email@example.com", - password = "password" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/update-name.md deleted file mode 100644 index c54140f26d..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-name.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateName( - name = "[NAME]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-o-auth2tokens.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/update-o-auth2tokens.md deleted file mode 100644 index 579cc072d1..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-o-auth2tokens.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateOAuth2Tokens( - sessionId = "[SESSION_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/update-password.md deleted file mode 100644 index 3953718593..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-password.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updatePassword( - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/update-prefs.md deleted file mode 100644 index 39696911d8..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-prefs.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updatePrefs( - prefs = mapOf( "a" to "b" ) - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/update-recovery.md deleted file mode 100644 index 8d2253a5fb..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-recovery.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateRecovery( - userId = "[USER_ID]", - secret = "[SECRET]", - password = "password", - passwordAgain = "password" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/update-session.md deleted file mode 100644 index 003d80e688..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-session.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateSession( - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/update-status.md deleted file mode 100644 index c64ce0c26f..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-status.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateStatus() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/0.15.x/server-kotlin/kotlin/account/update-verification.md deleted file mode 100644 index f904f6d2ce..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/account/update-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateVerification( - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-browser.md deleted file mode 100644 index d021a952e4..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-browser.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getBrowser( - code = "aa", - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-credit-card.md deleted file mode 100644 index 61592bc3d9..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getCreditCard( - code = "amex", - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-favicon.md deleted file mode 100644 index 3714ac210a..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-favicon.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getFavicon( - url = "https://example.com" - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-flag.md deleted file mode 100644 index 0efd3c9974..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-flag.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getFlag( - code = "af", - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-image.md deleted file mode 100644 index 0d3f855617..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-image.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getImage( - url = "https://example.com", - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-initials.md deleted file mode 100644 index de5a30c5c1..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-initials.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getInitials( - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-q-r.md deleted file mode 100644 index 008922575d..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/avatars/get-q-r.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getQR( - text = "[TEXT]", - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-boolean-attribute.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/create-boolean-attribute.md deleted file mode 100644 index 0d5cb9f9ef..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-boolean-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.createBooleanAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-collection.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/create-collection.md deleted file mode 100644 index 2c54cff28e..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-collection.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.createCollection( - collectionId = "[COLLECTION_ID]", - name = "[NAME]", - permission = "document", - read = ["role:all"], - write = ["role:all"] - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-document.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/create-document.md deleted file mode 100644 index 34e7718ac2..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-document.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.createDocument( - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]", - data = mapOf( "a" to "b" ), - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-email-attribute.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/create-email-attribute.md deleted file mode 100644 index 8b89e8e3ee..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-email-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.createEmailAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-enum-attribute.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/create-enum-attribute.md deleted file mode 100644 index ceef6b79d4..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-enum-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.createEnumAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - elements = listOf(), - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-float-attribute.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/create-float-attribute.md deleted file mode 100644 index 1304096185..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-float-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.createFloatAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-index.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/create-index.md deleted file mode 100644 index 53432cef33..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-index.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.createIndex( - collectionId = "[COLLECTION_ID]", - key = "", - type = "key", - attributes = listOf(), - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-integer-attribute.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/create-integer-attribute.md deleted file mode 100644 index 2f00c8d858..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-integer-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.createIntegerAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-ip-attribute.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/create-ip-attribute.md deleted file mode 100644 index c0d49b0a94..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-ip-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.createIpAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-string-attribute.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/create-string-attribute.md deleted file mode 100644 index da95ee02f6..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-string-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.createStringAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - size = 1, - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-url-attribute.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/create-url-attribute.md deleted file mode 100644 index 3f151b6690..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/create-url-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.createUrlAttribute( - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/delete-attribute.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/delete-attribute.md deleted file mode 100644 index a2d1746d78..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/delete-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.deleteAttribute( - collectionId = "[COLLECTION_ID]", - key = "" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/delete-collection.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/delete-collection.md deleted file mode 100644 index a535003ce8..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/delete-collection.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.deleteCollection( - collectionId = "[COLLECTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/delete-document.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/delete-document.md deleted file mode 100644 index 16f652b822..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/delete-document.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.deleteDocument( - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/delete-index.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/delete-index.md deleted file mode 100644 index e73ce5ea46..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.deleteIndex( - collectionId = "[COLLECTION_ID]", - key = "" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/get-attribute.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/get-attribute.md deleted file mode 100644 index 43a9a8f793..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/get-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.getAttribute( - collectionId = "[COLLECTION_ID]", - key = "" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/get-collection.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/get-collection.md deleted file mode 100644 index df4b735c66..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/get-collection.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.getCollection( - collectionId = "[COLLECTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/get-document.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/get-document.md deleted file mode 100644 index e4fd93ca6e..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/get-document.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.getDocument( - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/get-index.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/get-index.md deleted file mode 100644 index 225cc26d67..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.getIndex( - collectionId = "[COLLECTION_ID]", - key = "" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/list-attributes.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/list-attributes.md deleted file mode 100644 index 7e93658a72..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/list-attributes.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.listAttributes( - collectionId = "[COLLECTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/list-collections.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/list-collections.md deleted file mode 100644 index 731fac6a31..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/list-collections.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.listCollections( - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/list-documents.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/list-documents.md deleted file mode 100644 index 45719af073..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/list-documents.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.listDocuments( - collectionId = "[COLLECTION_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/list-indexes.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/list-indexes.md deleted file mode 100644 index df971f9957..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/list-indexes.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.listIndexes( - collectionId = "[COLLECTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/update-collection.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/update-collection.md deleted file mode 100644 index 35a8f52866..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/update-collection.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.updateCollection( - collectionId = "[COLLECTION_ID]", - name = "[NAME]", - permission = "document", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/database/update-document.md b/docs/examples/0.15.x/server-kotlin/kotlin/database/update-document.md deleted file mode 100644 index 921a3a4b5f..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/database/update-document.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Database - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val database = Database(client) - val response = database.updateDocument( - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]", - data = mapOf( "a" to "b" ), - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/builds.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/builds.md deleted file mode 100644 index 5f87b717da..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/builds.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.builds( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-deployment.md deleted file mode 100644 index efd3503705..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-deployment.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.createDeployment( - functionId = "[FUNCTION_ID]", - entrypoint = "[ENTRYPOINT]", - code = File("file.png"), - activate = false - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-execution.md deleted file mode 100644 index eeda8daf3e..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-execution.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.createExecution( - functionId = "[FUNCTION_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-tag.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-tag.md deleted file mode 100644 index 5c880ad72b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-tag.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.createTag( - functionId = "[FUNCTION_ID]", - command = "[COMMAND]", - code = File("./path-to-files/image.jpg") - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/create.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/create.md deleted file mode 100644 index a0b9600b46..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/create.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.create( - functionId = "[FUNCTION_ID]", - name = "[NAME]", - execute = listOf(), - runtime = "node-14.5", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/delete-deployment.md deleted file mode 100644 index cc90059f85..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/delete-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.deleteDeployment( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/delete-tag.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/delete-tag.md deleted file mode 100644 index c5f13b1751..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/delete-tag.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.deleteTag( - functionId = "[FUNCTION_ID]", - tagId = "[TAG_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/delete.md deleted file mode 100644 index 40a7e9682f..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/delete.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.delete( - functionId = "[FUNCTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/get-build.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/get-build.md deleted file mode 100644 index b40462523d..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/get-build.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.getBuild( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]", - buildId = "[BUILD_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/get-deployment.md deleted file mode 100644 index fa6175271e..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/get-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.getDeployment( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/get-execution.md deleted file mode 100644 index d23e20766e..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/get-execution.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.getExecution( - functionId = "[FUNCTION_ID]", - executionId = "[EXECUTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/get-tag.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/get-tag.md deleted file mode 100644 index 3a366b4169..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/get-tag.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.getTag( - functionId = "[FUNCTION_ID]", - tagId = "[TAG_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/get.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/get.md deleted file mode 100644 index 76a45b6b26..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/get.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.get( - functionId = "[FUNCTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/list-deployments.md deleted file mode 100644 index be30acacef..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/list-deployments.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.listDeployments( - functionId = "[FUNCTION_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/list-executions.md deleted file mode 100644 index 2427a97644..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/list-executions.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.listExecutions( - functionId = "[FUNCTION_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/list-runtimes.md deleted file mode 100644 index 7236d74475..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/list-runtimes.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.listRuntimes() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/list-tags.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/list-tags.md deleted file mode 100644 index b84270f45f..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/list-tags.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.listTags( - functionId = "[FUNCTION_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/list.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/list.md deleted file mode 100644 index 1fb1f54a3c..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/list.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.list( - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/retry-build.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/retry-build.md deleted file mode 100644 index 6c883145f5..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/retry-build.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.retryBuild( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]", - buildId = "[BUILD_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/update-deployment.md deleted file mode 100644 index fd7a40b2ec..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/update-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.updateDeployment( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/update-tag.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/update-tag.md deleted file mode 100644 index 814a0fb959..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/update-tag.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.updateTag( - functionId = "[FUNCTION_ID]", - tag = "[TAG]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/update.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/update.md deleted file mode 100644 index e8b125fb77..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/update.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.update( - functionId = "[FUNCTION_ID]", - name = "[NAME]", - execute = listOf(), - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/0.15.x/server-kotlin/kotlin/health/get-antivirus.md deleted file mode 100644 index fe64ba8ee1..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-antivirus.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getAntivirus() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/0.15.x/server-kotlin/kotlin/health/get-cache.md deleted file mode 100644 index 91dda5e06e..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-cache.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getCache() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/0.15.x/server-kotlin/kotlin/health/get-d-b.md deleted file mode 100644 index 0a15ff78b4..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-d-b.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getDB() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-certificates.md deleted file mode 100644 index 4e51cc625e..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getQueueCertificates() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-functions.md deleted file mode 100644 index 2f49b8f013..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-functions.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getQueueFunctions() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-logs.md deleted file mode 100644 index 0a15075dd7..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-logs.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getQueueLogs() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-usage.md b/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-usage.md deleted file mode 100644 index 100a13c6f4..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-usage.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getQueueUsage() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-webhooks.md deleted file mode 100644 index 368a4d3cc6..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getQueueWebhooks() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/0.15.x/server-kotlin/kotlin/health/get-storage-local.md deleted file mode 100644 index 809c4a92b9..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-storage-local.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getStorageLocal() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/0.15.x/server-kotlin/kotlin/health/get-time.md deleted file mode 100644 index 9e2b5a9f89..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/health/get-time.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getTime() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/health/get.md b/docs/examples/0.15.x/server-kotlin/kotlin/health/get.md deleted file mode 100644 index 5904493e30..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/health/get.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.get() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-continents.md b/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-continents.md deleted file mode 100644 index 946779336b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-continents.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.getContinents() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-countries-e-u.md b/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-countries-e-u.md deleted file mode 100644 index 70f9a39f74..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-countries-e-u.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.getCountriesEU() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-countries-phones.md b/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-countries-phones.md deleted file mode 100644 index ce40ab33c8..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-countries-phones.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.getCountriesPhones() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-countries.md b/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-countries.md deleted file mode 100644 index 1f84f6637c..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-countries.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.getCountries() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-currencies.md b/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-currencies.md deleted file mode 100644 index 19bde5d386..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-currencies.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.getCurrencies() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-languages.md b/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-languages.md deleted file mode 100644 index a41831fe02..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get-languages.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.getLanguages() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get.md b/docs/examples/0.15.x/server-kotlin/kotlin/locale/get.md deleted file mode 100644 index d630031194..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/locale/get.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.get() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/create-bucket.md deleted file mode 100644 index f780e81c7f..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/create-bucket.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.createBucket( - bucketId = "[BUCKET_ID]", - name = "[NAME]", - permission = "file", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/create-file.md deleted file mode 100644 index 6b666d40a7..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/create-file.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.createFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - file = File("file.png"), - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/delete-bucket.md deleted file mode 100644 index 0700ffdb30..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/delete-bucket.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.deleteBucket( - bucketId = "[BUCKET_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/delete-file.md deleted file mode 100644 index 2749cc2135..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/delete-file.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.deleteFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-bucket.md deleted file mode 100644 index 6e421e94af..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-bucket.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.getBucket( - bucketId = "[BUCKET_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file-download.md deleted file mode 100644 index 5186982a7c..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file-download.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val result = storage.getFileDownload( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file-preview.md deleted file mode 100644 index d99e28ca94..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file-preview.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val result = storage.getFilePreview( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file-view.md deleted file mode 100644 index 433364a9c2..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file-view.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val result = storage.getFileView( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file.md deleted file mode 100644 index ea76d6f4ac..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/get-file.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.getFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/list-buckets.md deleted file mode 100644 index 36a0d83232..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/list-buckets.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.listBuckets( - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/list-files.md deleted file mode 100644 index d84bb4e8c6..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/list-files.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.listFiles( - bucketId = "[BUCKET_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/update-bucket.md deleted file mode 100644 index aeb14ffda4..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/update-bucket.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.updateBucket( - bucketId = "[BUCKET_ID]", - name = "[NAME]", - permission = "file", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/update-file.md deleted file mode 100644 index a628b54b25..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/update-file.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.updateFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/0.15.x/server-kotlin/kotlin/teams/create-membership.md deleted file mode 100644 index ebdd4f3034..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/teams/create-membership.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.createMembership( - teamId = "[TEAM_ID]", - email = "email@example.com", - roles = listOf(), - url = "https://example.com", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/teams/create.md b/docs/examples/0.15.x/server-kotlin/kotlin/teams/create.md deleted file mode 100644 index 4b5c5e00e8..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/teams/create.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.create( - teamId = "[TEAM_ID]", - name = "[NAME]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/0.15.x/server-kotlin/kotlin/teams/delete-membership.md deleted file mode 100644 index fd5cd7485e..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/teams/delete-membership.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.deleteMembership( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/0.15.x/server-kotlin/kotlin/teams/delete.md deleted file mode 100644 index 3806a5e7b8..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/teams/delete.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.delete( - teamId = "[TEAM_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/0.15.x/server-kotlin/kotlin/teams/get-membership.md deleted file mode 100644 index a0788b2489..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/teams/get-membership.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.getMembership( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/teams/get-memberships.md b/docs/examples/0.15.x/server-kotlin/kotlin/teams/get-memberships.md deleted file mode 100644 index 6dab7104fe..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/teams/get-memberships.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.getMemberships( - teamId = "[TEAM_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/teams/get.md b/docs/examples/0.15.x/server-kotlin/kotlin/teams/get.md deleted file mode 100644 index c8802a7133..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/teams/get.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.get( - teamId = "[TEAM_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/teams/list.md b/docs/examples/0.15.x/server-kotlin/kotlin/teams/list.md deleted file mode 100644 index 7aff26e811..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/teams/list.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.list( - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/teams/update-membership-roles.md b/docs/examples/0.15.x/server-kotlin/kotlin/teams/update-membership-roles.md deleted file mode 100644 index f76601adc4..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/teams/update-membership-roles.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.updateMembershipRoles( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]", - roles = listOf() - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/0.15.x/server-kotlin/kotlin/teams/update-membership-status.md deleted file mode 100644 index 56b7dc71c3..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/teams/update-membership-status.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val teams = Teams(client) - val response = teams.updateMembershipStatus( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]", - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/teams/update.md b/docs/examples/0.15.x/server-kotlin/kotlin/teams/update.md deleted file mode 100644 index a558a35216..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/teams/update.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.update( - teamId = "[TEAM_ID]", - name = "[NAME]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/create-argon2user.md deleted file mode 100644 index 13c9d289ce..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-argon2user.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createArgon2User( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/create-bcrypt-user.md deleted file mode 100644 index 061a7a8bac..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createBcryptUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/create-m-d5user.md deleted file mode 100644 index e660302c03..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-m-d5user.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createMD5User( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/create-p-h-pass-user.md deleted file mode 100644 index 3434533569..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createPHPassUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-s-crypt-modified-user.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/create-s-crypt-modified-user.md deleted file mode 100644 index 0e610d4a96..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-s-crypt-modified-user.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createSCryptModifiedUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - passwordSalt = "[PASSWORD_SALT]", - passwordSaltSeparator = "[PASSWORD_SALT_SEPARATOR]", - passwordSignerKey = "[PASSWORD_SIGNER_KEY]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-s-crypt-user.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/create-s-crypt-user.md deleted file mode 100644 index 460007cb3a..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-s-crypt-user.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createSCryptUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/create-s-h-a-user.md deleted file mode 100644 index f057c24860..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createSHAUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/create.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/create.md deleted file mode 100644 index 32996b9299..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/create.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.create( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/delete-session.md deleted file mode 100644 index b02b7eda74..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/delete-session.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.deleteSession( - userId = "[USER_ID]", - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/delete-sessions.md deleted file mode 100644 index 969f5f34b2..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/delete-sessions.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.deleteSessions( - userId = "[USER_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/delete.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/delete.md deleted file mode 100644 index 7d545cd5fc..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/delete.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.delete( - userId = "[USER_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/get-logs.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/get-logs.md deleted file mode 100644 index e6a26f160b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/get-logs.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.getLogs( - userId = "[USER_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/get-memberships.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/get-memberships.md deleted file mode 100644 index f56631b175..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/get-memberships.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.getMemberships( - userId = "[USER_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/get-prefs.md deleted file mode 100644 index 681bc0053a..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/get-prefs.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.getPrefs( - userId = "[USER_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/get-sessions.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/get-sessions.md deleted file mode 100644 index ba5a48eadd..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/get-sessions.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.getSessions( - userId = "[USER_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/get.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/get.md deleted file mode 100644 index 85cf8cd484..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/get.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.get( - userId = "[USER_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/list.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/list.md deleted file mode 100644 index 4c6f4a8f96..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/list.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.list( - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/update-email.md deleted file mode 100644 index eabab2f2af..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/update-email.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updateEmail( - userId = "[USER_ID]", - email = "email@example.com" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/update-name.md deleted file mode 100644 index f4ce93b30b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/update-name.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updateName( - userId = "[USER_ID]", - name = "[NAME]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/update-password.md deleted file mode 100644 index 6e6122e297..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/update-password.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updatePassword( - userId = "[USER_ID]", - password = "password" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/update-prefs.md deleted file mode 100644 index 27c669b141..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/update-prefs.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updatePrefs( - userId = "[USER_ID]", - prefs = mapOf( "a" to "b" ) - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/update-status.md deleted file mode 100644 index 927e76bee3..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/update-status.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updateStatus( - userId = "[USER_ID]", - status = false - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/users/update-verification.md b/docs/examples/0.15.x/server-kotlin/kotlin/users/update-verification.md deleted file mode 100644 index 0c46ccdf8b..0000000000 --- a/docs/examples/0.15.x/server-kotlin/kotlin/users/update-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updateVerification( - userId = "[USER_ID]", - emailVerification = false - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/0.15.x/server-nodejs/examples/account/create-recovery.md deleted file mode 100644 index 8d86e0fbab..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/create-recovery.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.createRecovery('email@example.com', 'https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/create-verification.md b/docs/examples/0.15.x/server-nodejs/examples/account/create-verification.md deleted file mode 100644 index 8ec31eb060..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/create-verification.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.createVerification('https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/delete-session.md b/docs/examples/0.15.x/server-nodejs/examples/account/delete-session.md deleted file mode 100644 index 4bcd2d2ce2..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/delete-session.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.deleteSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/0.15.x/server-nodejs/examples/account/delete-sessions.md deleted file mode 100644 index 3ccc6556b3..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/delete-sessions.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.deleteSessions(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/delete.md b/docs/examples/0.15.x/server-nodejs/examples/account/delete.md deleted file mode 100644 index 49f9ba03cb..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/delete.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.delete(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/get-logs.md b/docs/examples/0.15.x/server-nodejs/examples/account/get-logs.md deleted file mode 100644 index dd8e26a045..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/get-logs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.getLogs(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/0.15.x/server-nodejs/examples/account/get-prefs.md deleted file mode 100644 index a10879ddd5..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/get-prefs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.getPrefs(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/get-session.md b/docs/examples/0.15.x/server-nodejs/examples/account/get-session.md deleted file mode 100644 index c6dac22365..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/get-session.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.getSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/get-sessions.md b/docs/examples/0.15.x/server-nodejs/examples/account/get-sessions.md deleted file mode 100644 index b25b91cfe6..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/get-sessions.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.getSessions(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/get.md b/docs/examples/0.15.x/server-nodejs/examples/account/get.md deleted file mode 100644 index 862cfd3cd3..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.get(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/update-email.md b/docs/examples/0.15.x/server-nodejs/examples/account/update-email.md deleted file mode 100644 index 493bad30f5..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/update-email.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.updateEmail('email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/update-name.md b/docs/examples/0.15.x/server-nodejs/examples/account/update-name.md deleted file mode 100644 index ef4b47a3d8..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/update-name.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.updateName('[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/update-o-auth2tokens.md b/docs/examples/0.15.x/server-nodejs/examples/account/update-o-auth2tokens.md deleted file mode 100644 index ced8542ef1..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/update-o-auth2tokens.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.updateOAuth2Tokens('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/update-password.md b/docs/examples/0.15.x/server-nodejs/examples/account/update-password.md deleted file mode 100644 index 59db404cc1..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/update-password.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.updatePassword('password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/0.15.x/server-nodejs/examples/account/update-prefs.md deleted file mode 100644 index d9c518f1a2..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/update-prefs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.updatePrefs({}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/0.15.x/server-nodejs/examples/account/update-recovery.md deleted file mode 100644 index 796c88ad9c..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/update-recovery.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/update-session.md b/docs/examples/0.15.x/server-nodejs/examples/account/update-session.md deleted file mode 100644 index 8d19064d12..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/update-session.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.updateSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/update-status.md b/docs/examples/0.15.x/server-nodejs/examples/account/update-status.md deleted file mode 100644 index e4af6e9828..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/update-status.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.updateStatus(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/account/update-verification.md b/docs/examples/0.15.x/server-nodejs/examples/account/update-verification.md deleted file mode 100644 index 1e264ecdc7..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/account/update-verification.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = account.updateVerification('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/0.15.x/server-nodejs/examples/avatars/get-browser.md deleted file mode 100644 index 2a670ce08b..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-browser.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = avatars.getBrowser('aa'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/0.15.x/server-nodejs/examples/avatars/get-credit-card.md deleted file mode 100644 index afd38f5a97..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = avatars.getCreditCard('amex'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/0.15.x/server-nodejs/examples/avatars/get-favicon.md deleted file mode 100644 index bb347371d4..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-favicon.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = avatars.getFavicon('https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/0.15.x/server-nodejs/examples/avatars/get-flag.md deleted file mode 100644 index db677bc4f8..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-flag.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = avatars.getFlag('af'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/0.15.x/server-nodejs/examples/avatars/get-image.md deleted file mode 100644 index efa871ea63..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-image.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = avatars.getImage('https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/0.15.x/server-nodejs/examples/avatars/get-initials.md deleted file mode 100644 index d6175bff13..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-initials.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = avatars.getInitials(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/0.15.x/server-nodejs/examples/avatars/get-q-r.md deleted file mode 100644 index e79b3235af..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/avatars/get-q-r.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = avatars.getQR('[TEXT]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/create-boolean-attribute.md b/docs/examples/0.15.x/server-nodejs/examples/database/create-boolean-attribute.md deleted file mode 100644 index 1f6db6a604..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/create-boolean-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.createBooleanAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/create-collection.md b/docs/examples/0.15.x/server-nodejs/examples/database/create-collection.md deleted file mode 100644 index b39336e4f5..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/create-collection.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.createCollection('[COLLECTION_ID]', '[NAME]', 'document', ["role:all"], ["role:all"]); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/create-document.md b/docs/examples/0.15.x/server-nodejs/examples/database/create-document.md deleted file mode 100644 index 6ba0670838..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/create-document.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/create-email-attribute.md b/docs/examples/0.15.x/server-nodejs/examples/database/create-email-attribute.md deleted file mode 100644 index cf49202552..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/create-email-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.createEmailAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/create-enum-attribute.md b/docs/examples/0.15.x/server-nodejs/examples/database/create-enum-attribute.md deleted file mode 100644 index 64629ec6ce..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/create-enum-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.createEnumAttribute('[COLLECTION_ID]', '', [], false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/create-float-attribute.md b/docs/examples/0.15.x/server-nodejs/examples/database/create-float-attribute.md deleted file mode 100644 index ec362226aa..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/create-float-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.createFloatAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/create-index.md b/docs/examples/0.15.x/server-nodejs/examples/database/create-index.md deleted file mode 100644 index e23eca2292..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/create-index.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.createIndex('[COLLECTION_ID]', '', 'key', []); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/create-integer-attribute.md b/docs/examples/0.15.x/server-nodejs/examples/database/create-integer-attribute.md deleted file mode 100644 index b05d0b35c5..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/create-integer-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.createIntegerAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/create-ip-attribute.md b/docs/examples/0.15.x/server-nodejs/examples/database/create-ip-attribute.md deleted file mode 100644 index 6048a2acbe..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/create-ip-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.createIpAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/create-string-attribute.md b/docs/examples/0.15.x/server-nodejs/examples/database/create-string-attribute.md deleted file mode 100644 index ad176de552..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/create-string-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.createStringAttribute('[COLLECTION_ID]', '', 1, false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/create-url-attribute.md b/docs/examples/0.15.x/server-nodejs/examples/database/create-url-attribute.md deleted file mode 100644 index 6461cb2c31..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/create-url-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.createUrlAttribute('[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/delete-attribute.md b/docs/examples/0.15.x/server-nodejs/examples/database/delete-attribute.md deleted file mode 100644 index 8704ff6d73..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/delete-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.deleteAttribute('[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/delete-collection.md b/docs/examples/0.15.x/server-nodejs/examples/database/delete-collection.md deleted file mode 100644 index 503da98a73..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/delete-collection.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.deleteCollection('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/delete-document.md b/docs/examples/0.15.x/server-nodejs/examples/database/delete-document.md deleted file mode 100644 index f14c985e83..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/delete-document.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/delete-index.md b/docs/examples/0.15.x/server-nodejs/examples/database/delete-index.md deleted file mode 100644 index 8e61399e3e..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/delete-index.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.deleteIndex('[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/get-attribute.md b/docs/examples/0.15.x/server-nodejs/examples/database/get-attribute.md deleted file mode 100644 index 60c08084ab..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/get-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.getAttribute('[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/get-collection.md b/docs/examples/0.15.x/server-nodejs/examples/database/get-collection.md deleted file mode 100644 index a14ce0d49a..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/get-collection.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.getCollection('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/get-document.md b/docs/examples/0.15.x/server-nodejs/examples/database/get-document.md deleted file mode 100644 index 55cce32b9b..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/get-document.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/get-index.md b/docs/examples/0.15.x/server-nodejs/examples/database/get-index.md deleted file mode 100644 index 799eef88f7..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/get-index.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.getIndex('[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/list-attributes.md b/docs/examples/0.15.x/server-nodejs/examples/database/list-attributes.md deleted file mode 100644 index 23475ea654..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/list-attributes.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.listAttributes('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/list-collections.md b/docs/examples/0.15.x/server-nodejs/examples/database/list-collections.md deleted file mode 100644 index bacfdb062c..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/list-collections.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.listCollections(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/list-documents.md b/docs/examples/0.15.x/server-nodejs/examples/database/list-documents.md deleted file mode 100644 index ad02d05e2a..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/list-documents.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.listDocuments('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/list-indexes.md b/docs/examples/0.15.x/server-nodejs/examples/database/list-indexes.md deleted file mode 100644 index 85b2d1f227..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/list-indexes.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.listIndexes('[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/update-collection.md b/docs/examples/0.15.x/server-nodejs/examples/database/update-collection.md deleted file mode 100644 index bed47c3613..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/update-collection.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.updateCollection('[COLLECTION_ID]', '[NAME]', 'document'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/database/update-document.md b/docs/examples/0.15.x/server-nodejs/examples/database/update-document.md deleted file mode 100644 index 40e9488a6b..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/database/update-document.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let database = new sdk.Database(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/builds.md b/docs/examples/0.15.x/server-nodejs/examples/functions/builds.md deleted file mode 100644 index 2530b5af37..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/builds.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.builds('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/0.15.x/server-nodejs/examples/functions/create-deployment.md deleted file mode 100644 index 00717651f9..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/create-deployment.md +++ /dev/null @@ -1,21 +0,0 @@ -const sdk = require('node-appwrite'); -const fs = require('fs'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', 'file.png', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/0.15.x/server-nodejs/examples/functions/create-execution.md deleted file mode 100644 index 895b70cd1b..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/create-execution.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.createExecution('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/create-tag.md b/docs/examples/0.15.x/server-nodejs/examples/functions/create-tag.md deleted file mode 100644 index 68eefe0d99..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/create-tag.md +++ /dev/null @@ -1,21 +0,0 @@ -const sdk = require('node-appwrite'); -const fs = require('fs'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.createTag('[FUNCTION_ID]', '[COMMAND]', fs.createReadStream(__dirname + '/file.png')); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/create.md b/docs/examples/0.15.x/server-nodejs/examples/functions/create.md deleted file mode 100644 index d1df9635f6..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/create.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/0.15.x/server-nodejs/examples/functions/delete-deployment.md deleted file mode 100644 index cab6ffde0b..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/delete-deployment.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.deleteDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/delete-tag.md b/docs/examples/0.15.x/server-nodejs/examples/functions/delete-tag.md deleted file mode 100644 index 938bb5cc19..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/delete-tag.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.deleteTag('[FUNCTION_ID]', '[TAG_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/delete.md b/docs/examples/0.15.x/server-nodejs/examples/functions/delete.md deleted file mode 100644 index 6f079cb7f7..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/delete.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.delete('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/get-build.md b/docs/examples/0.15.x/server-nodejs/examples/functions/get-build.md deleted file mode 100644 index 1f671add75..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/get-build.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.getBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/0.15.x/server-nodejs/examples/functions/get-deployment.md deleted file mode 100644 index dad6cf9aa7..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/get-deployment.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.getDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/0.15.x/server-nodejs/examples/functions/get-execution.md deleted file mode 100644 index 1e2f5ea88a..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/get-execution.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/get-tag.md b/docs/examples/0.15.x/server-nodejs/examples/functions/get-tag.md deleted file mode 100644 index a016699a11..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/get-tag.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.getTag('[FUNCTION_ID]', '[TAG_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/get.md b/docs/examples/0.15.x/server-nodejs/examples/functions/get.md deleted file mode 100644 index 620deec88c..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.get('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/0.15.x/server-nodejs/examples/functions/list-deployments.md deleted file mode 100644 index b2bc8853c2..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/list-deployments.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.listDeployments('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/0.15.x/server-nodejs/examples/functions/list-executions.md deleted file mode 100644 index 40c44b12e5..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/list-executions.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.listExecutions('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/0.15.x/server-nodejs/examples/functions/list-runtimes.md deleted file mode 100644 index e2aa34abfe..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/list-runtimes.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.listRuntimes(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/list-tags.md b/docs/examples/0.15.x/server-nodejs/examples/functions/list-tags.md deleted file mode 100644 index c9c043a8b4..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/list-tags.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.listTags('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/list.md b/docs/examples/0.15.x/server-nodejs/examples/functions/list.md deleted file mode 100644 index 9ecd37237d..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/list.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/retry-build.md b/docs/examples/0.15.x/server-nodejs/examples/functions/retry-build.md deleted file mode 100644 index aa1daccc86..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/retry-build.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.retryBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/0.15.x/server-nodejs/examples/functions/update-deployment.md deleted file mode 100644 index 67ba6f94f9..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/update-deployment.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.updateDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/update-tag.md b/docs/examples/0.15.x/server-nodejs/examples/functions/update-tag.md deleted file mode 100644 index 0ea180e1d9..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/update-tag.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.updateTag('[FUNCTION_ID]', '[TAG]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/update.md b/docs/examples/0.15.x/server-nodejs/examples/functions/update.md deleted file mode 100644 index 83e25b9cdc..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/update.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = functions.update('[FUNCTION_ID]', '[NAME]', []); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/0.15.x/server-nodejs/examples/health/get-antivirus.md deleted file mode 100644 index 2df53eb37f..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/health/get-antivirus.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = health.getAntivirus(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/health/get-cache.md b/docs/examples/0.15.x/server-nodejs/examples/health/get-cache.md deleted file mode 100644 index d19cc8abd5..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/health/get-cache.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = health.getCache(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/0.15.x/server-nodejs/examples/health/get-d-b.md deleted file mode 100644 index 08505367d4..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/health/get-d-b.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = health.getDB(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-certificates.md deleted file mode 100644 index 2eb69e0126..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = health.getQueueCertificates(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-functions.md deleted file mode 100644 index 9470e11646..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-functions.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = health.getQueueFunctions(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-logs.md deleted file mode 100644 index 10f1cb24e3..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-logs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = health.getQueueLogs(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-usage.md b/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-usage.md deleted file mode 100644 index 6286c741ee..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-usage.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = health.getQueueUsage(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-webhooks.md deleted file mode 100644 index 3a788eb895..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = health.getQueueWebhooks(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/0.15.x/server-nodejs/examples/health/get-storage-local.md deleted file mode 100644 index 84b8fb47a6..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/health/get-storage-local.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = health.getStorageLocal(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/health/get-time.md b/docs/examples/0.15.x/server-nodejs/examples/health/get-time.md deleted file mode 100644 index 563bf2fb52..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/health/get-time.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = health.getTime(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/health/get.md b/docs/examples/0.15.x/server-nodejs/examples/health/get.md deleted file mode 100644 index 20c3d40801..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/health/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = health.get(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/locale/get-continents.md b/docs/examples/0.15.x/server-nodejs/examples/locale/get-continents.md deleted file mode 100644 index 323237b4ab..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/locale/get-continents.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = locale.getContinents(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/locale/get-countries-e-u.md b/docs/examples/0.15.x/server-nodejs/examples/locale/get-countries-e-u.md deleted file mode 100644 index fc9170dba4..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = locale.getCountriesEU(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/locale/get-countries-phones.md b/docs/examples/0.15.x/server-nodejs/examples/locale/get-countries-phones.md deleted file mode 100644 index 42be901677..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = locale.getCountriesPhones(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/locale/get-countries.md b/docs/examples/0.15.x/server-nodejs/examples/locale/get-countries.md deleted file mode 100644 index 437c9bb502..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/locale/get-countries.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = locale.getCountries(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/locale/get-currencies.md b/docs/examples/0.15.x/server-nodejs/examples/locale/get-currencies.md deleted file mode 100644 index 1b7d605760..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/locale/get-currencies.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = locale.getCurrencies(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/locale/get-languages.md b/docs/examples/0.15.x/server-nodejs/examples/locale/get-languages.md deleted file mode 100644 index b6f45311b3..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/locale/get-languages.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = locale.getLanguages(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/locale/get.md b/docs/examples/0.15.x/server-nodejs/examples/locale/get.md deleted file mode 100644 index 2f2eb95d90..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/locale/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = locale.get(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/0.15.x/server-nodejs/examples/storage/create-bucket.md deleted file mode 100644 index c55f512606..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/create-bucket.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.createBucket('[BUCKET_ID]', '[NAME]', 'file'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/create-file.md b/docs/examples/0.15.x/server-nodejs/examples/storage/create-file.md deleted file mode 100644 index 185a9147c4..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/create-file.md +++ /dev/null @@ -1,21 +0,0 @@ -const sdk = require('node-appwrite'); -const fs = require('fs'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', 'file.png'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/0.15.x/server-nodejs/examples/storage/delete-bucket.md deleted file mode 100644 index f11a5a54a6..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/delete-bucket.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.deleteBucket('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/0.15.x/server-nodejs/examples/storage/delete-file.md deleted file mode 100644 index 88797c0695..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/delete-file.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.deleteFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/0.15.x/server-nodejs/examples/storage/get-bucket.md deleted file mode 100644 index 3afe5b49cd..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/get-bucket.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.getBucket('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/0.15.x/server-nodejs/examples/storage/get-file-download.md deleted file mode 100644 index 6e902150ac..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/get-file-download.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/0.15.x/server-nodejs/examples/storage/get-file-preview.md deleted file mode 100644 index 81007a2e44..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/get-file-preview.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.getFilePreview('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/0.15.x/server-nodejs/examples/storage/get-file-view.md deleted file mode 100644 index 91e5318d14..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/get-file-view.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.getFileView('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/get-file.md b/docs/examples/0.15.x/server-nodejs/examples/storage/get-file.md deleted file mode 100644 index de5efacb14..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/get-file.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.getFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/0.15.x/server-nodejs/examples/storage/list-buckets.md deleted file mode 100644 index 21edaeb226..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/list-buckets.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.listBuckets(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/list-files.md b/docs/examples/0.15.x/server-nodejs/examples/storage/list-files.md deleted file mode 100644 index 8ceada8d0f..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/list-files.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.listFiles('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/0.15.x/server-nodejs/examples/storage/update-bucket.md deleted file mode 100644 index 804ae0dd0a..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/update-bucket.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.updateBucket('[BUCKET_ID]', '[NAME]', 'file'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/update-file.md b/docs/examples/0.15.x/server-nodejs/examples/storage/update-file.md deleted file mode 100644 index 9fa83780c9..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/update-file.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = storage.updateFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/0.15.x/server-nodejs/examples/teams/create-membership.md deleted file mode 100644 index cd17042e58..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/teams/create-membership.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/teams/create.md b/docs/examples/0.15.x/server-nodejs/examples/teams/create.md deleted file mode 100644 index 2c2739bb1e..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/teams/create.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = teams.create('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/0.15.x/server-nodejs/examples/teams/delete-membership.md deleted file mode 100644 index 82df7161f8..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/teams/delete-membership.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/teams/delete.md b/docs/examples/0.15.x/server-nodejs/examples/teams/delete.md deleted file mode 100644 index e833fdfb9b..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/teams/delete.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = teams.delete('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/0.15.x/server-nodejs/examples/teams/get-membership.md deleted file mode 100644 index 920b6de0fd..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/teams/get-membership.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = teams.getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/teams/get-memberships.md b/docs/examples/0.15.x/server-nodejs/examples/teams/get-memberships.md deleted file mode 100644 index 75cdf38e5c..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/teams/get-memberships.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = teams.getMemberships('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/teams/get.md b/docs/examples/0.15.x/server-nodejs/examples/teams/get.md deleted file mode 100644 index a51322df27..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/teams/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = teams.get('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/teams/list.md b/docs/examples/0.15.x/server-nodejs/examples/teams/list.md deleted file mode 100644 index 259bbd22b2..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/teams/list.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = teams.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/teams/update-membership-roles.md b/docs/examples/0.15.x/server-nodejs/examples/teams/update-membership-roles.md deleted file mode 100644 index dc78af59f8..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/0.15.x/server-nodejs/examples/teams/update-membership-status.md deleted file mode 100644 index 13f8578037..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/teams/update-membership-status.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -let promise = teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/teams/update.md b/docs/examples/0.15.x/server-nodejs/examples/teams/update.md deleted file mode 100644 index 2118e8a90f..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/teams/update.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = teams.update('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/0.15.x/server-nodejs/examples/users/create-argon2user.md deleted file mode 100644 index 93669bf4f9..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/create-argon2user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.createArgon2User('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/0.15.x/server-nodejs/examples/users/create-bcrypt-user.md deleted file mode 100644 index 93c35d9d0b..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.createBcryptUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/0.15.x/server-nodejs/examples/users/create-m-d5user.md deleted file mode 100644 index dfb6f35690..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/create-m-d5user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.createMD5User('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/0.15.x/server-nodejs/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 519299ff84..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.createPHPassUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/create-s-crypt-modified-user.md b/docs/examples/0.15.x/server-nodejs/examples/users/create-s-crypt-modified-user.md deleted file mode 100644 index c7145bcefd..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/create-s-crypt-modified-user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.createSCryptModifiedUser('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', '[PASSWORD_SALT_SEPARATOR]', '[PASSWORD_SIGNER_KEY]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/create-s-crypt-user.md b/docs/examples/0.15.x/server-nodejs/examples/users/create-s-crypt-user.md deleted file mode 100644 index d5f9786814..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/create-s-crypt-user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.createSCryptUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/0.15.x/server-nodejs/examples/users/create-s-h-a-user.md deleted file mode 100644 index 266909fb75..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.createSHAUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/create.md b/docs/examples/0.15.x/server-nodejs/examples/users/create.md deleted file mode 100644 index a4a2febca9..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/create.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.create('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/delete-session.md b/docs/examples/0.15.x/server-nodejs/examples/users/delete-session.md deleted file mode 100644 index 22308d4fa6..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/delete-session.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.deleteSession('[USER_ID]', '[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/0.15.x/server-nodejs/examples/users/delete-sessions.md deleted file mode 100644 index 75f8f96bda..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/delete-sessions.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.deleteSessions('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/delete.md b/docs/examples/0.15.x/server-nodejs/examples/users/delete.md deleted file mode 100644 index 3d834c33e3..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/delete.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.delete('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/get-logs.md b/docs/examples/0.15.x/server-nodejs/examples/users/get-logs.md deleted file mode 100644 index 1287b5ef5f..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/get-logs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.getLogs('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/get-memberships.md b/docs/examples/0.15.x/server-nodejs/examples/users/get-memberships.md deleted file mode 100644 index 116ae92cac..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/get-memberships.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.getMemberships('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/0.15.x/server-nodejs/examples/users/get-prefs.md deleted file mode 100644 index 088e6b0811..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/get-prefs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.getPrefs('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/get-sessions.md b/docs/examples/0.15.x/server-nodejs/examples/users/get-sessions.md deleted file mode 100644 index f5ad029ebe..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/get-sessions.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.getSessions('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/get.md b/docs/examples/0.15.x/server-nodejs/examples/users/get.md deleted file mode 100644 index 5b91577284..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.get('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/list.md b/docs/examples/0.15.x/server-nodejs/examples/users/list.md deleted file mode 100644 index 0bc83b06bf..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/list.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/update-email.md b/docs/examples/0.15.x/server-nodejs/examples/users/update-email.md deleted file mode 100644 index 7e9477656b..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/update-email.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.updateEmail('[USER_ID]', 'email@example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/update-name.md b/docs/examples/0.15.x/server-nodejs/examples/users/update-name.md deleted file mode 100644 index 31366a7652..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/update-name.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.updateName('[USER_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/update-password.md b/docs/examples/0.15.x/server-nodejs/examples/users/update-password.md deleted file mode 100644 index afee0b3732..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/update-password.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.updatePassword('[USER_ID]', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/0.15.x/server-nodejs/examples/users/update-prefs.md deleted file mode 100644 index 7d1011d6be..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/update-prefs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.updatePrefs('[USER_ID]', {}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/update-status.md b/docs/examples/0.15.x/server-nodejs/examples/users/update-status.md deleted file mode 100644 index 02aa2d33ae..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/update-status.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.updateStatus('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/users/update-verification.md b/docs/examples/0.15.x/server-nodejs/examples/users/update-verification.md deleted file mode 100644 index c8185bf5cc..0000000000 --- a/docs/examples/0.15.x/server-nodejs/examples/users/update-verification.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -let client = new sdk.Client(); - -let users = new sdk.Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -let promise = users.updateVerification('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/create-recovery.md b/docs/examples/0.15.x/server-php/examples/account/create-recovery.md deleted file mode 100644 index 65823e5104..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/create-recovery.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->createRecovery('email@example.com', 'https://example.com'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/create-verification.md b/docs/examples/0.15.x/server-php/examples/account/create-verification.md deleted file mode 100644 index b22d6199a7..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/create-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->createVerification('https://example.com'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/delete-session.md b/docs/examples/0.15.x/server-php/examples/account/delete-session.md deleted file mode 100644 index ac04559ca5..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/delete-session.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->deleteSession('[SESSION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/delete-sessions.md b/docs/examples/0.15.x/server-php/examples/account/delete-sessions.md deleted file mode 100644 index 3aa67f79ce..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/delete-sessions.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->deleteSessions(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/delete.md b/docs/examples/0.15.x/server-php/examples/account/delete.md deleted file mode 100644 index 1ce53d624c..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/delete.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->delete(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/get-logs.md b/docs/examples/0.15.x/server-php/examples/account/get-logs.md deleted file mode 100644 index 2fffafcc2d..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/get-logs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->getLogs(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/get-prefs.md b/docs/examples/0.15.x/server-php/examples/account/get-prefs.md deleted file mode 100644 index efa296194f..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/get-prefs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->getPrefs(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/get-session.md b/docs/examples/0.15.x/server-php/examples/account/get-session.md deleted file mode 100644 index 549f9bed7f..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/get-session.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->getSession('[SESSION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/get-sessions.md b/docs/examples/0.15.x/server-php/examples/account/get-sessions.md deleted file mode 100644 index 2855ff4d82..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/get-sessions.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->getSessions(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/get.md b/docs/examples/0.15.x/server-php/examples/account/get.md deleted file mode 100644 index 3fa0ef275e..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->get(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/update-email.md b/docs/examples/0.15.x/server-php/examples/account/update-email.md deleted file mode 100644 index 72714991d7..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/update-email.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateEmail('email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/update-name.md b/docs/examples/0.15.x/server-php/examples/account/update-name.md deleted file mode 100644 index c7bb1b14ea..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/update-name.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateName('[NAME]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/update-o-auth2tokens.md b/docs/examples/0.15.x/server-php/examples/account/update-o-auth2tokens.md deleted file mode 100644 index 6afdfdaf74..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/update-o-auth2tokens.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateOAuth2Tokens('[SESSION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/update-password.md b/docs/examples/0.15.x/server-php/examples/account/update-password.md deleted file mode 100644 index e82279859a..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/update-password.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updatePassword('password'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/update-prefs.md b/docs/examples/0.15.x/server-php/examples/account/update-prefs.md deleted file mode 100644 index e1395d9d67..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/update-prefs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updatePrefs([]); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/update-recovery.md b/docs/examples/0.15.x/server-php/examples/account/update-recovery.md deleted file mode 100644 index 5379d76d6d..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/update-recovery.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/update-session.md b/docs/examples/0.15.x/server-php/examples/account/update-session.md deleted file mode 100644 index 222976c74f..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/update-session.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateSession('[SESSION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/update-status.md b/docs/examples/0.15.x/server-php/examples/account/update-status.md deleted file mode 100644 index f19d218ec8..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/update-status.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateStatus(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/account/update-verification.md b/docs/examples/0.15.x/server-php/examples/account/update-verification.md deleted file mode 100644 index ef21c1ec4d..0000000000 --- a/docs/examples/0.15.x/server-php/examples/account/update-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateVerification('[USER_ID]', '[SECRET]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/avatars/get-browser.md b/docs/examples/0.15.x/server-php/examples/avatars/get-browser.md deleted file mode 100644 index 795d79157e..0000000000 --- a/docs/examples/0.15.x/server-php/examples/avatars/get-browser.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getBrowser('aa'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/0.15.x/server-php/examples/avatars/get-credit-card.md deleted file mode 100644 index 33879d0179..0000000000 --- a/docs/examples/0.15.x/server-php/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getCreditCard('amex'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/avatars/get-favicon.md b/docs/examples/0.15.x/server-php/examples/avatars/get-favicon.md deleted file mode 100644 index dee19dbf04..0000000000 --- a/docs/examples/0.15.x/server-php/examples/avatars/get-favicon.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getFavicon('https://example.com'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/avatars/get-flag.md b/docs/examples/0.15.x/server-php/examples/avatars/get-flag.md deleted file mode 100644 index d70d7e43ec..0000000000 --- a/docs/examples/0.15.x/server-php/examples/avatars/get-flag.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getFlag('af'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/avatars/get-image.md b/docs/examples/0.15.x/server-php/examples/avatars/get-image.md deleted file mode 100644 index a46b9fbe37..0000000000 --- a/docs/examples/0.15.x/server-php/examples/avatars/get-image.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getImage('https://example.com'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/avatars/get-initials.md b/docs/examples/0.15.x/server-php/examples/avatars/get-initials.md deleted file mode 100644 index f5e549ace6..0000000000 --- a/docs/examples/0.15.x/server-php/examples/avatars/get-initials.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getInitials(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/avatars/get-q-r.md b/docs/examples/0.15.x/server-php/examples/avatars/get-q-r.md deleted file mode 100644 index 95b5a6d7b3..0000000000 --- a/docs/examples/0.15.x/server-php/examples/avatars/get-q-r.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getQR('[TEXT]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/create-boolean-attribute.md b/docs/examples/0.15.x/server-php/examples/database/create-boolean-attribute.md deleted file mode 100644 index dcbb8e2ccb..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/create-boolean-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->createBooleanAttribute('[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/create-collection.md b/docs/examples/0.15.x/server-php/examples/database/create-collection.md deleted file mode 100644 index 66ee4f1264..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/create-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->createCollection('[COLLECTION_ID]', '[NAME]', 'document', ["role:all"], ["role:all"]); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/create-document.md b/docs/examples/0.15.x/server-php/examples/database/create-document.md deleted file mode 100644 index e3c15abc65..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/create-document.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', []); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/create-email-attribute.md b/docs/examples/0.15.x/server-php/examples/database/create-email-attribute.md deleted file mode 100644 index cc7c82290f..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/create-email-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->createEmailAttribute('[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/create-enum-attribute.md b/docs/examples/0.15.x/server-php/examples/database/create-enum-attribute.md deleted file mode 100644 index 92f3294a10..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/create-enum-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->createEnumAttribute('[COLLECTION_ID]', '', [], false); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/create-float-attribute.md b/docs/examples/0.15.x/server-php/examples/database/create-float-attribute.md deleted file mode 100644 index 0d9e9656dd..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/create-float-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->createFloatAttribute('[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/create-index.md b/docs/examples/0.15.x/server-php/examples/database/create-index.md deleted file mode 100644 index 2ca255242c..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/create-index.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->createIndex('[COLLECTION_ID]', '', 'key', []); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/create-integer-attribute.md b/docs/examples/0.15.x/server-php/examples/database/create-integer-attribute.md deleted file mode 100644 index 9c64c4d7e3..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/create-integer-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->createIntegerAttribute('[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/create-ip-attribute.md b/docs/examples/0.15.x/server-php/examples/database/create-ip-attribute.md deleted file mode 100644 index aee0526df8..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/create-ip-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->createIpAttribute('[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/create-string-attribute.md b/docs/examples/0.15.x/server-php/examples/database/create-string-attribute.md deleted file mode 100644 index e6f8b1252a..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/create-string-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->createStringAttribute('[COLLECTION_ID]', '', 1, false); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/create-url-attribute.md b/docs/examples/0.15.x/server-php/examples/database/create-url-attribute.md deleted file mode 100644 index fe8ed393e2..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/create-url-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->createUrlAttribute('[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/delete-attribute.md b/docs/examples/0.15.x/server-php/examples/database/delete-attribute.md deleted file mode 100644 index 036dc7304a..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/delete-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->deleteAttribute('[COLLECTION_ID]', ''); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/delete-collection.md b/docs/examples/0.15.x/server-php/examples/database/delete-collection.md deleted file mode 100644 index 4018420188..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/delete-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->deleteCollection('[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/delete-document.md b/docs/examples/0.15.x/server-php/examples/database/delete-document.md deleted file mode 100644 index 3ed45d6ee1..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/delete-document.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/delete-index.md b/docs/examples/0.15.x/server-php/examples/database/delete-index.md deleted file mode 100644 index 353c03c8c0..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->deleteIndex('[COLLECTION_ID]', ''); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/get-attribute.md b/docs/examples/0.15.x/server-php/examples/database/get-attribute.md deleted file mode 100644 index 020f91597a..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/get-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->getAttribute('[COLLECTION_ID]', ''); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/get-collection.md b/docs/examples/0.15.x/server-php/examples/database/get-collection.md deleted file mode 100644 index a088b24bb6..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/get-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->getCollection('[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/get-document.md b/docs/examples/0.15.x/server-php/examples/database/get-document.md deleted file mode 100644 index d506bd8414..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/get-document.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/get-index.md b/docs/examples/0.15.x/server-php/examples/database/get-index.md deleted file mode 100644 index af700b7184..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->getIndex('[COLLECTION_ID]', ''); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/list-attributes.md b/docs/examples/0.15.x/server-php/examples/database/list-attributes.md deleted file mode 100644 index 8d0e2b6fc5..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/list-attributes.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->listAttributes('[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/list-collections.md b/docs/examples/0.15.x/server-php/examples/database/list-collections.md deleted file mode 100644 index 4f4aa1b775..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/list-collections.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->listCollections(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/list-documents.md b/docs/examples/0.15.x/server-php/examples/database/list-documents.md deleted file mode 100644 index 359da4ce33..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/list-documents.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->listDocuments('[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/list-indexes.md b/docs/examples/0.15.x/server-php/examples/database/list-indexes.md deleted file mode 100644 index ab8e40753c..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/list-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->listIndexes('[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/update-collection.md b/docs/examples/0.15.x/server-php/examples/database/update-collection.md deleted file mode 100644 index 190838b949..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/update-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->updateCollection('[COLLECTION_ID]', '[NAME]', 'document'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/database/update-document.md b/docs/examples/0.15.x/server-php/examples/database/update-document.md deleted file mode 100644 index b4c2eac092..0000000000 --- a/docs/examples/0.15.x/server-php/examples/database/update-document.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$database = new Database($client); - -$result = $database->updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', []); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/builds.md b/docs/examples/0.15.x/server-php/examples/functions/builds.md deleted file mode 100644 index 5d9a53d075..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/builds.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->builds('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/create-deployment.md b/docs/examples/0.15.x/server-php/examples/functions/create-deployment.md deleted file mode 100644 index 4df1ad86f0..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/create-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', 'file.png', false); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/create-execution.md b/docs/examples/0.15.x/server-php/examples/functions/create-execution.md deleted file mode 100644 index 422331a0df..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/create-execution.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->createExecution('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/create-tag.md b/docs/examples/0.15.x/server-php/examples/functions/create-tag.md deleted file mode 100644 index 72007a7d4f..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/create-tag.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->createTag('[FUNCTION_ID]', '[COMMAND]', new \CURLFile('/path/to/file.png', 'image/png', 'file.png')); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/create.md b/docs/examples/0.15.x/server-php/examples/functions/create.md deleted file mode 100644 index 69f8d7fa86..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/create.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/delete-deployment.md b/docs/examples/0.15.x/server-php/examples/functions/delete-deployment.md deleted file mode 100644 index 002840bce3..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/delete-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->deleteDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/delete-tag.md b/docs/examples/0.15.x/server-php/examples/functions/delete-tag.md deleted file mode 100644 index 0a47accec9..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/delete-tag.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->deleteTag('[FUNCTION_ID]', '[TAG_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/delete.md b/docs/examples/0.15.x/server-php/examples/functions/delete.md deleted file mode 100644 index 319856522e..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/delete.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->delete('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/get-build.md b/docs/examples/0.15.x/server-php/examples/functions/get-build.md deleted file mode 100644 index eab4bf2a01..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/get-build.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->getBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/get-deployment.md b/docs/examples/0.15.x/server-php/examples/functions/get-deployment.md deleted file mode 100644 index 9176e9ca3d..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/get-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->getDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/get-execution.md b/docs/examples/0.15.x/server-php/examples/functions/get-execution.md deleted file mode 100644 index b02cfa08f7..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/get-execution.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/get-tag.md b/docs/examples/0.15.x/server-php/examples/functions/get-tag.md deleted file mode 100644 index 5cee355f7e..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/get-tag.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->getTag('[FUNCTION_ID]', '[TAG_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/get.md b/docs/examples/0.15.x/server-php/examples/functions/get.md deleted file mode 100644 index 06ddece1ca..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->get('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/list-deployments.md b/docs/examples/0.15.x/server-php/examples/functions/list-deployments.md deleted file mode 100644 index ac854a61d0..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/list-deployments.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->listDeployments('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/list-executions.md b/docs/examples/0.15.x/server-php/examples/functions/list-executions.md deleted file mode 100644 index 4417fc8860..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/list-executions.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->listExecutions('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/list-runtimes.md b/docs/examples/0.15.x/server-php/examples/functions/list-runtimes.md deleted file mode 100644 index 78e560ee19..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/list-runtimes.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->listRuntimes(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/list-tags.md b/docs/examples/0.15.x/server-php/examples/functions/list-tags.md deleted file mode 100644 index ac652d5647..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/list-tags.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->listTags('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/list.md b/docs/examples/0.15.x/server-php/examples/functions/list.md deleted file mode 100644 index 3eaa8c567e..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/list.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->list(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/retry-build.md b/docs/examples/0.15.x/server-php/examples/functions/retry-build.md deleted file mode 100644 index f0d703a28e..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/retry-build.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->retryBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/update-deployment.md b/docs/examples/0.15.x/server-php/examples/functions/update-deployment.md deleted file mode 100644 index dfcd7ae343..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/update-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->updateDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/update-tag.md b/docs/examples/0.15.x/server-php/examples/functions/update-tag.md deleted file mode 100644 index 42c74d4f95..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/update-tag.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->updateTag('[FUNCTION_ID]', '[TAG]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/update.md b/docs/examples/0.15.x/server-php/examples/functions/update.md deleted file mode 100644 index b33ac8abd2..0000000000 --- a/docs/examples/0.15.x/server-php/examples/functions/update.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->update('[FUNCTION_ID]', '[NAME]', []); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/health/get-antivirus.md b/docs/examples/0.15.x/server-php/examples/health/get-antivirus.md deleted file mode 100644 index 0f21d5da06..0000000000 --- a/docs/examples/0.15.x/server-php/examples/health/get-antivirus.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getAntivirus(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/health/get-cache.md b/docs/examples/0.15.x/server-php/examples/health/get-cache.md deleted file mode 100644 index e654c26f51..0000000000 --- a/docs/examples/0.15.x/server-php/examples/health/get-cache.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getCache(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/health/get-d-b.md b/docs/examples/0.15.x/server-php/examples/health/get-d-b.md deleted file mode 100644 index 2d37991a3d..0000000000 --- a/docs/examples/0.15.x/server-php/examples/health/get-d-b.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getDB(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/0.15.x/server-php/examples/health/get-queue-certificates.md deleted file mode 100644 index 57f2c5793e..0000000000 --- a/docs/examples/0.15.x/server-php/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getQueueCertificates(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/health/get-queue-functions.md b/docs/examples/0.15.x/server-php/examples/health/get-queue-functions.md deleted file mode 100644 index 8ff6510e1c..0000000000 --- a/docs/examples/0.15.x/server-php/examples/health/get-queue-functions.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getQueueFunctions(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/health/get-queue-logs.md b/docs/examples/0.15.x/server-php/examples/health/get-queue-logs.md deleted file mode 100644 index fa723d7391..0000000000 --- a/docs/examples/0.15.x/server-php/examples/health/get-queue-logs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getQueueLogs(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/health/get-queue-usage.md b/docs/examples/0.15.x/server-php/examples/health/get-queue-usage.md deleted file mode 100644 index 371d02f5b4..0000000000 --- a/docs/examples/0.15.x/server-php/examples/health/get-queue-usage.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getQueueUsage(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/0.15.x/server-php/examples/health/get-queue-webhooks.md deleted file mode 100644 index af48a72d06..0000000000 --- a/docs/examples/0.15.x/server-php/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getQueueWebhooks(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/health/get-storage-local.md b/docs/examples/0.15.x/server-php/examples/health/get-storage-local.md deleted file mode 100644 index eba15a1652..0000000000 --- a/docs/examples/0.15.x/server-php/examples/health/get-storage-local.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getStorageLocal(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/health/get-time.md b/docs/examples/0.15.x/server-php/examples/health/get-time.md deleted file mode 100644 index 849f499460..0000000000 --- a/docs/examples/0.15.x/server-php/examples/health/get-time.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getTime(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/health/get.md b/docs/examples/0.15.x/server-php/examples/health/get.md deleted file mode 100644 index 9f1ec8970c..0000000000 --- a/docs/examples/0.15.x/server-php/examples/health/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->get(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/locale/get-continents.md b/docs/examples/0.15.x/server-php/examples/locale/get-continents.md deleted file mode 100644 index bb099d31f5..0000000000 --- a/docs/examples/0.15.x/server-php/examples/locale/get-continents.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->getContinents(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/locale/get-countries-e-u.md b/docs/examples/0.15.x/server-php/examples/locale/get-countries-e-u.md deleted file mode 100644 index 87287a5cea..0000000000 --- a/docs/examples/0.15.x/server-php/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->getCountriesEU(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/locale/get-countries-phones.md b/docs/examples/0.15.x/server-php/examples/locale/get-countries-phones.md deleted file mode 100644 index 71a39303da..0000000000 --- a/docs/examples/0.15.x/server-php/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->getCountriesPhones(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/locale/get-countries.md b/docs/examples/0.15.x/server-php/examples/locale/get-countries.md deleted file mode 100644 index 1c8f863a76..0000000000 --- a/docs/examples/0.15.x/server-php/examples/locale/get-countries.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->getCountries(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/locale/get-currencies.md b/docs/examples/0.15.x/server-php/examples/locale/get-currencies.md deleted file mode 100644 index b799bf6b80..0000000000 --- a/docs/examples/0.15.x/server-php/examples/locale/get-currencies.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->getCurrencies(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/locale/get-languages.md b/docs/examples/0.15.x/server-php/examples/locale/get-languages.md deleted file mode 100644 index 47fdc6eb34..0000000000 --- a/docs/examples/0.15.x/server-php/examples/locale/get-languages.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->getLanguages(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/locale/get.md b/docs/examples/0.15.x/server-php/examples/locale/get.md deleted file mode 100644 index 8e11f17689..0000000000 --- a/docs/examples/0.15.x/server-php/examples/locale/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->get(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/create-bucket.md b/docs/examples/0.15.x/server-php/examples/storage/create-bucket.md deleted file mode 100644 index 8dc1498a86..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/create-bucket.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->createBucket('[BUCKET_ID]', '[NAME]', 'file'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/create-file.md b/docs/examples/0.15.x/server-php/examples/storage/create-file.md deleted file mode 100644 index 883f565577..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/create-file.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->createFile('[BUCKET_ID]', '[FILE_ID]', 'file.png'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/delete-bucket.md b/docs/examples/0.15.x/server-php/examples/storage/delete-bucket.md deleted file mode 100644 index 71583fc4df..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/delete-bucket.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->deleteBucket('[BUCKET_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/delete-file.md b/docs/examples/0.15.x/server-php/examples/storage/delete-file.md deleted file mode 100644 index 3803659548..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/delete-file.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->deleteFile('[BUCKET_ID]', '[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/get-bucket.md b/docs/examples/0.15.x/server-php/examples/storage/get-bucket.md deleted file mode 100644 index 2eee6f017d..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/get-bucket.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->getBucket('[BUCKET_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/get-file-download.md b/docs/examples/0.15.x/server-php/examples/storage/get-file-download.md deleted file mode 100644 index c9dfa317d6..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/get-file-download.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->getFileDownload('[BUCKET_ID]', '[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/get-file-preview.md b/docs/examples/0.15.x/server-php/examples/storage/get-file-preview.md deleted file mode 100644 index df1edac6ff..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/get-file-preview.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->getFilePreview('[BUCKET_ID]', '[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/get-file-view.md b/docs/examples/0.15.x/server-php/examples/storage/get-file-view.md deleted file mode 100644 index a14685cc8b..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/get-file-view.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->getFileView('[BUCKET_ID]', '[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/get-file.md b/docs/examples/0.15.x/server-php/examples/storage/get-file.md deleted file mode 100644 index 96b2ab01be..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/get-file.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->getFile('[BUCKET_ID]', '[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/list-buckets.md b/docs/examples/0.15.x/server-php/examples/storage/list-buckets.md deleted file mode 100644 index d29b9373a5..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/list-buckets.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->listBuckets(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/list-files.md b/docs/examples/0.15.x/server-php/examples/storage/list-files.md deleted file mode 100644 index 22d3dd292f..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/list-files.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->listFiles('[BUCKET_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/update-bucket.md b/docs/examples/0.15.x/server-php/examples/storage/update-bucket.md deleted file mode 100644 index 57dca9c269..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/update-bucket.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->updateBucket('[BUCKET_ID]', '[NAME]', 'file'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/update-file.md b/docs/examples/0.15.x/server-php/examples/storage/update-file.md deleted file mode 100644 index dbfadb3885..0000000000 --- a/docs/examples/0.15.x/server-php/examples/storage/update-file.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->updateFile('[BUCKET_ID]', '[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/teams/create-membership.md b/docs/examples/0.15.x/server-php/examples/teams/create-membership.md deleted file mode 100644 index 9c88b1bba5..0000000000 --- a/docs/examples/0.15.x/server-php/examples/teams/create-membership.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/teams/create.md b/docs/examples/0.15.x/server-php/examples/teams/create.md deleted file mode 100644 index 67c7601841..0000000000 --- a/docs/examples/0.15.x/server-php/examples/teams/create.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->create('[TEAM_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/teams/delete-membership.md b/docs/examples/0.15.x/server-php/examples/teams/delete-membership.md deleted file mode 100644 index 32eb37a709..0000000000 --- a/docs/examples/0.15.x/server-php/examples/teams/delete-membership.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/teams/delete.md b/docs/examples/0.15.x/server-php/examples/teams/delete.md deleted file mode 100644 index 394a1940fc..0000000000 --- a/docs/examples/0.15.x/server-php/examples/teams/delete.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->delete('[TEAM_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/teams/get-membership.md b/docs/examples/0.15.x/server-php/examples/teams/get-membership.md deleted file mode 100644 index 95992825fc..0000000000 --- a/docs/examples/0.15.x/server-php/examples/teams/get-membership.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/teams/get-memberships.md b/docs/examples/0.15.x/server-php/examples/teams/get-memberships.md deleted file mode 100644 index 56f6d59063..0000000000 --- a/docs/examples/0.15.x/server-php/examples/teams/get-memberships.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->getMemberships('[TEAM_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/teams/get.md b/docs/examples/0.15.x/server-php/examples/teams/get.md deleted file mode 100644 index 6f0b705707..0000000000 --- a/docs/examples/0.15.x/server-php/examples/teams/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->get('[TEAM_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/teams/list.md b/docs/examples/0.15.x/server-php/examples/teams/list.md deleted file mode 100644 index d17bb7689b..0000000000 --- a/docs/examples/0.15.x/server-php/examples/teams/list.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->list(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/teams/update-membership-roles.md b/docs/examples/0.15.x/server-php/examples/teams/update-membership-roles.md deleted file mode 100644 index 66dcad785b..0000000000 --- a/docs/examples/0.15.x/server-php/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/teams/update-membership-status.md b/docs/examples/0.15.x/server-php/examples/teams/update-membership-status.md deleted file mode 100644 index c37e0d408c..0000000000 --- a/docs/examples/0.15.x/server-php/examples/teams/update-membership-status.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$teams = new Teams($client); - -$result = $teams->updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/teams/update.md b/docs/examples/0.15.x/server-php/examples/teams/update.md deleted file mode 100644 index 945001dc36..0000000000 --- a/docs/examples/0.15.x/server-php/examples/teams/update.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->update('[TEAM_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/create-argon2user.md b/docs/examples/0.15.x/server-php/examples/users/create-argon2user.md deleted file mode 100644 index acd40e281b..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/create-argon2user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createArgon2User('[USER_ID]', 'email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/0.15.x/server-php/examples/users/create-bcrypt-user.md deleted file mode 100644 index a9d218e310..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createBcryptUser('[USER_ID]', 'email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/create-m-d5user.md b/docs/examples/0.15.x/server-php/examples/users/create-m-d5user.md deleted file mode 100644 index 11f47ec07a..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/create-m-d5user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createMD5User('[USER_ID]', 'email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/0.15.x/server-php/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 57f8074e52..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createPHPassUser('[USER_ID]', 'email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/create-s-crypt-modified-user.md b/docs/examples/0.15.x/server-php/examples/users/create-s-crypt-modified-user.md deleted file mode 100644 index 4744ab0539..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/create-s-crypt-modified-user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createSCryptModifiedUser('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', '[PASSWORD_SALT_SEPARATOR]', '[PASSWORD_SIGNER_KEY]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/create-s-crypt-user.md b/docs/examples/0.15.x/server-php/examples/users/create-s-crypt-user.md deleted file mode 100644 index e900cc5c02..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/create-s-crypt-user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createSCryptUser('[USER_ID]', 'email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/0.15.x/server-php/examples/users/create-s-h-a-user.md deleted file mode 100644 index 018bb2c990..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createSHAUser('[USER_ID]', 'email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/create.md b/docs/examples/0.15.x/server-php/examples/users/create.md deleted file mode 100644 index 5292b21349..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/create.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->create('[USER_ID]', 'email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/delete-session.md b/docs/examples/0.15.x/server-php/examples/users/delete-session.md deleted file mode 100644 index ead6de7549..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/delete-session.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->deleteSession('[USER_ID]', '[SESSION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/delete-sessions.md b/docs/examples/0.15.x/server-php/examples/users/delete-sessions.md deleted file mode 100644 index 968d788ea7..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/delete-sessions.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->deleteSessions('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/delete.md b/docs/examples/0.15.x/server-php/examples/users/delete.md deleted file mode 100644 index 8a24d63059..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/delete.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->delete('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/get-logs.md b/docs/examples/0.15.x/server-php/examples/users/get-logs.md deleted file mode 100644 index 5602536920..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/get-logs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->getLogs('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/get-memberships.md b/docs/examples/0.15.x/server-php/examples/users/get-memberships.md deleted file mode 100644 index ab2a847619..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/get-memberships.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->getMemberships('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/get-prefs.md b/docs/examples/0.15.x/server-php/examples/users/get-prefs.md deleted file mode 100644 index 1c9978a0fb..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/get-prefs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->getPrefs('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/get-sessions.md b/docs/examples/0.15.x/server-php/examples/users/get-sessions.md deleted file mode 100644 index fef9f1db74..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/get-sessions.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->getSessions('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/get.md b/docs/examples/0.15.x/server-php/examples/users/get.md deleted file mode 100644 index 16c29f9a5a..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->get('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/list.md b/docs/examples/0.15.x/server-php/examples/users/list.md deleted file mode 100644 index efce771ea1..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/list.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->list(); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/update-email.md b/docs/examples/0.15.x/server-php/examples/users/update-email.md deleted file mode 100644 index 37efbe4244..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/update-email.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updateEmail('[USER_ID]', 'email@example.com'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/update-name.md b/docs/examples/0.15.x/server-php/examples/users/update-name.md deleted file mode 100644 index 6c552e7a35..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/update-name.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updateName('[USER_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/update-password.md b/docs/examples/0.15.x/server-php/examples/users/update-password.md deleted file mode 100644 index 1959ff0694..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/update-password.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updatePassword('[USER_ID]', 'password'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/update-prefs.md b/docs/examples/0.15.x/server-php/examples/users/update-prefs.md deleted file mode 100644 index 9e9141f8a7..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/update-prefs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updatePrefs('[USER_ID]', []); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/update-status.md b/docs/examples/0.15.x/server-php/examples/users/update-status.md deleted file mode 100644 index 6d6c7b1d26..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/update-status.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updateStatus('[USER_ID]', false); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/users/update-verification.md b/docs/examples/0.15.x/server-php/examples/users/update-verification.md deleted file mode 100644 index 5b1f08693a..0000000000 --- a/docs/examples/0.15.x/server-php/examples/users/update-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updateVerification('[USER_ID]', false); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-python/examples/account/create-recovery.md b/docs/examples/0.15.x/server-python/examples/account/create-recovery.md deleted file mode 100644 index 71026337a4..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/create-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.create_recovery('email@example.com', 'https://example.com') diff --git a/docs/examples/0.15.x/server-python/examples/account/create-verification.md b/docs/examples/0.15.x/server-python/examples/account/create-verification.md deleted file mode 100644 index 53939ca669..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/create-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.create_verification('https://example.com') diff --git a/docs/examples/0.15.x/server-python/examples/account/delete-session.md b/docs/examples/0.15.x/server-python/examples/account/delete-session.md deleted file mode 100644 index 940367dfcf..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.delete_session('[SESSION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/account/delete-sessions.md b/docs/examples/0.15.x/server-python/examples/account/delete-sessions.md deleted file mode 100644 index 317dd043d3..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.delete_sessions() diff --git a/docs/examples/0.15.x/server-python/examples/account/delete.md b/docs/examples/0.15.x/server-python/examples/account/delete.md deleted file mode 100644 index 3ddc987bfe..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.delete() diff --git a/docs/examples/0.15.x/server-python/examples/account/get-logs.md b/docs/examples/0.15.x/server-python/examples/account/get-logs.md deleted file mode 100644 index 3ccddc4658..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/get-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.get_logs() diff --git a/docs/examples/0.15.x/server-python/examples/account/get-prefs.md b/docs/examples/0.15.x/server-python/examples/account/get-prefs.md deleted file mode 100644 index 616b1774b9..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.get_prefs() diff --git a/docs/examples/0.15.x/server-python/examples/account/get-session.md b/docs/examples/0.15.x/server-python/examples/account/get-session.md deleted file mode 100644 index 96fef2e50e..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/get-session.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.get_session('[SESSION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/account/get-sessions.md b/docs/examples/0.15.x/server-python/examples/account/get-sessions.md deleted file mode 100644 index d35dde2378..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/get-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.get_sessions() diff --git a/docs/examples/0.15.x/server-python/examples/account/get.md b/docs/examples/0.15.x/server-python/examples/account/get.md deleted file mode 100644 index f561eb9446..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.get() diff --git a/docs/examples/0.15.x/server-python/examples/account/update-email.md b/docs/examples/0.15.x/server-python/examples/account/update-email.md deleted file mode 100644 index d18eed406f..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_email('email@example.com', 'password') diff --git a/docs/examples/0.15.x/server-python/examples/account/update-name.md b/docs/examples/0.15.x/server-python/examples/account/update-name.md deleted file mode 100644 index eec145325a..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_name('[NAME]') diff --git a/docs/examples/0.15.x/server-python/examples/account/update-o-auth2tokens.md b/docs/examples/0.15.x/server-python/examples/account/update-o-auth2tokens.md deleted file mode 100644 index 2e01c28ae3..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/update-o-auth2tokens.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_o_auth2_tokens('[SESSION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/account/update-password.md b/docs/examples/0.15.x/server-python/examples/account/update-password.md deleted file mode 100644 index 2e89031dc8..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_password('password') diff --git a/docs/examples/0.15.x/server-python/examples/account/update-prefs.md b/docs/examples/0.15.x/server-python/examples/account/update-prefs.md deleted file mode 100644 index 5bf6d7478b..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_prefs({}) diff --git a/docs/examples/0.15.x/server-python/examples/account/update-recovery.md b/docs/examples/0.15.x/server-python/examples/account/update-recovery.md deleted file mode 100644 index badc07d0af..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/update-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_recovery('[USER_ID]', '[SECRET]', 'password', 'password') diff --git a/docs/examples/0.15.x/server-python/examples/account/update-session.md b/docs/examples/0.15.x/server-python/examples/account/update-session.md deleted file mode 100644 index 14f3541b10..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/update-session.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_session('[SESSION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/account/update-status.md b/docs/examples/0.15.x/server-python/examples/account/update-status.md deleted file mode 100644 index d6a36e6878..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/update-status.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_status() diff --git a/docs/examples/0.15.x/server-python/examples/account/update-verification.md b/docs/examples/0.15.x/server-python/examples/account/update-verification.md deleted file mode 100644 index 02d01257c8..0000000000 --- a/docs/examples/0.15.x/server-python/examples/account/update-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_verification('[USER_ID]', '[SECRET]') diff --git a/docs/examples/0.15.x/server-python/examples/avatars/get-browser.md b/docs/examples/0.15.x/server-python/examples/avatars/get-browser.md deleted file mode 100644 index 138c0d1b3e..0000000000 --- a/docs/examples/0.15.x/server-python/examples/avatars/get-browser.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_browser('aa') diff --git a/docs/examples/0.15.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/0.15.x/server-python/examples/avatars/get-credit-card.md deleted file mode 100644 index 83f76aca42..0000000000 --- a/docs/examples/0.15.x/server-python/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_credit_card('amex') diff --git a/docs/examples/0.15.x/server-python/examples/avatars/get-favicon.md b/docs/examples/0.15.x/server-python/examples/avatars/get-favicon.md deleted file mode 100644 index 6946080bee..0000000000 --- a/docs/examples/0.15.x/server-python/examples/avatars/get-favicon.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_favicon('https://example.com') diff --git a/docs/examples/0.15.x/server-python/examples/avatars/get-flag.md b/docs/examples/0.15.x/server-python/examples/avatars/get-flag.md deleted file mode 100644 index 188d6d35bd..0000000000 --- a/docs/examples/0.15.x/server-python/examples/avatars/get-flag.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_flag('af') diff --git a/docs/examples/0.15.x/server-python/examples/avatars/get-image.md b/docs/examples/0.15.x/server-python/examples/avatars/get-image.md deleted file mode 100644 index 29a6430eab..0000000000 --- a/docs/examples/0.15.x/server-python/examples/avatars/get-image.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_image('https://example.com') diff --git a/docs/examples/0.15.x/server-python/examples/avatars/get-initials.md b/docs/examples/0.15.x/server-python/examples/avatars/get-initials.md deleted file mode 100644 index 0c300af5da..0000000000 --- a/docs/examples/0.15.x/server-python/examples/avatars/get-initials.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_initials() diff --git a/docs/examples/0.15.x/server-python/examples/avatars/get-q-r.md b/docs/examples/0.15.x/server-python/examples/avatars/get-q-r.md deleted file mode 100644 index 38378e9235..0000000000 --- a/docs/examples/0.15.x/server-python/examples/avatars/get-q-r.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_qr('[TEXT]') diff --git a/docs/examples/0.15.x/server-python/examples/database/create-boolean-attribute.md b/docs/examples/0.15.x/server-python/examples/database/create-boolean-attribute.md deleted file mode 100644 index ca3d549876..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/create-boolean-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.create_boolean_attribute('[COLLECTION_ID]', '', False) diff --git a/docs/examples/0.15.x/server-python/examples/database/create-collection.md b/docs/examples/0.15.x/server-python/examples/database/create-collection.md deleted file mode 100644 index c1bf0b4082..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/create-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.create_collection('[COLLECTION_ID]', '[NAME]', 'document', ["role:all"], ["role:all"]) diff --git a/docs/examples/0.15.x/server-python/examples/database/create-document.md b/docs/examples/0.15.x/server-python/examples/database/create-document.md deleted file mode 100644 index 8cef31cfd6..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/create-document.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.create_document('[COLLECTION_ID]', '[DOCUMENT_ID]', {}) diff --git a/docs/examples/0.15.x/server-python/examples/database/create-email-attribute.md b/docs/examples/0.15.x/server-python/examples/database/create-email-attribute.md deleted file mode 100644 index 339b4b7b13..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/create-email-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.create_email_attribute('[COLLECTION_ID]', '', False) diff --git a/docs/examples/0.15.x/server-python/examples/database/create-enum-attribute.md b/docs/examples/0.15.x/server-python/examples/database/create-enum-attribute.md deleted file mode 100644 index e9014ef2ce..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/create-enum-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.create_enum_attribute('[COLLECTION_ID]', '', [], False) diff --git a/docs/examples/0.15.x/server-python/examples/database/create-float-attribute.md b/docs/examples/0.15.x/server-python/examples/database/create-float-attribute.md deleted file mode 100644 index 22d6ed37c5..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/create-float-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.create_float_attribute('[COLLECTION_ID]', '', False) diff --git a/docs/examples/0.15.x/server-python/examples/database/create-index.md b/docs/examples/0.15.x/server-python/examples/database/create-index.md deleted file mode 100644 index 7553e75392..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/create-index.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.create_index('[COLLECTION_ID]', '', 'key', []) diff --git a/docs/examples/0.15.x/server-python/examples/database/create-integer-attribute.md b/docs/examples/0.15.x/server-python/examples/database/create-integer-attribute.md deleted file mode 100644 index 5b4ae60f24..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/create-integer-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.create_integer_attribute('[COLLECTION_ID]', '', False) diff --git a/docs/examples/0.15.x/server-python/examples/database/create-ip-attribute.md b/docs/examples/0.15.x/server-python/examples/database/create-ip-attribute.md deleted file mode 100644 index 6e79f0b147..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/create-ip-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.create_ip_attribute('[COLLECTION_ID]', '', False) diff --git a/docs/examples/0.15.x/server-python/examples/database/create-string-attribute.md b/docs/examples/0.15.x/server-python/examples/database/create-string-attribute.md deleted file mode 100644 index 96f3410fde..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/create-string-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.create_string_attribute('[COLLECTION_ID]', '', 1, False) diff --git a/docs/examples/0.15.x/server-python/examples/database/create-url-attribute.md b/docs/examples/0.15.x/server-python/examples/database/create-url-attribute.md deleted file mode 100644 index dc8efd5beb..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/create-url-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.create_url_attribute('[COLLECTION_ID]', '', False) diff --git a/docs/examples/0.15.x/server-python/examples/database/delete-attribute.md b/docs/examples/0.15.x/server-python/examples/database/delete-attribute.md deleted file mode 100644 index 9cc8b4cefb..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/delete-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.delete_attribute('[COLLECTION_ID]', '') diff --git a/docs/examples/0.15.x/server-python/examples/database/delete-collection.md b/docs/examples/0.15.x/server-python/examples/database/delete-collection.md deleted file mode 100644 index 0e188ade41..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/delete-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.delete_collection('[COLLECTION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/database/delete-document.md b/docs/examples/0.15.x/server-python/examples/database/delete-document.md deleted file mode 100644 index c085547c16..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/delete-document.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.delete_document('[COLLECTION_ID]', '[DOCUMENT_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/database/delete-index.md b/docs/examples/0.15.x/server-python/examples/database/delete-index.md deleted file mode 100644 index 5289b13fef..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.delete_index('[COLLECTION_ID]', '') diff --git a/docs/examples/0.15.x/server-python/examples/database/get-attribute.md b/docs/examples/0.15.x/server-python/examples/database/get-attribute.md deleted file mode 100644 index 584a51c77e..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/get-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.get_attribute('[COLLECTION_ID]', '') diff --git a/docs/examples/0.15.x/server-python/examples/database/get-collection.md b/docs/examples/0.15.x/server-python/examples/database/get-collection.md deleted file mode 100644 index f90f51f48b..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/get-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.get_collection('[COLLECTION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/database/get-document.md b/docs/examples/0.15.x/server-python/examples/database/get-document.md deleted file mode 100644 index 79891709d1..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/get-document.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.get_document('[COLLECTION_ID]', '[DOCUMENT_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/database/get-index.md b/docs/examples/0.15.x/server-python/examples/database/get-index.md deleted file mode 100644 index 0a492e1050..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.get_index('[COLLECTION_ID]', '') diff --git a/docs/examples/0.15.x/server-python/examples/database/list-attributes.md b/docs/examples/0.15.x/server-python/examples/database/list-attributes.md deleted file mode 100644 index ba69433b72..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/list-attributes.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.list_attributes('[COLLECTION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/database/list-collections.md b/docs/examples/0.15.x/server-python/examples/database/list-collections.md deleted file mode 100644 index f60d4b90e5..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/list-collections.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.list_collections() diff --git a/docs/examples/0.15.x/server-python/examples/database/list-documents.md b/docs/examples/0.15.x/server-python/examples/database/list-documents.md deleted file mode 100644 index cecb57d2fa..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/list-documents.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.list_documents('[COLLECTION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/database/list-indexes.md b/docs/examples/0.15.x/server-python/examples/database/list-indexes.md deleted file mode 100644 index 0c7b7dbd51..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.list_indexes('[COLLECTION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/database/update-collection.md b/docs/examples/0.15.x/server-python/examples/database/update-collection.md deleted file mode 100644 index adb809c942..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/update-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.update_collection('[COLLECTION_ID]', '[NAME]', 'document') diff --git a/docs/examples/0.15.x/server-python/examples/database/update-document.md b/docs/examples/0.15.x/server-python/examples/database/update-document.md deleted file mode 100644 index 2f4f89fc14..0000000000 --- a/docs/examples/0.15.x/server-python/examples/database/update-document.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.database import Database - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -database = Database(client) - -result = database.update_document('[COLLECTION_ID]', '[DOCUMENT_ID]', {}) diff --git a/docs/examples/0.15.x/server-python/examples/functions/builds.md b/docs/examples/0.15.x/server-python/examples/functions/builds.md deleted file mode 100644 index 4804958360..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/builds.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.builds('[FUNCTION_ID]', '[DEPLOYMENT_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/create-deployment.md b/docs/examples/0.15.x/server-python/examples/functions/create-deployment.md deleted file mode 100644 index 715c20ccf0..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/create-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.create_deployment('[FUNCTION_ID]', '[ENTRYPOINT]', 'file.png', False) diff --git a/docs/examples/0.15.x/server-python/examples/functions/create-execution.md b/docs/examples/0.15.x/server-python/examples/functions/create-execution.md deleted file mode 100644 index dc4442cd84..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/create-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.create_execution('[FUNCTION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/create-tag.md b/docs/examples/0.15.x/server-python/examples/functions/create-tag.md deleted file mode 100644 index 1995a64c33..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/create-tag.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.create_tag('[FUNCTION_ID]', '[COMMAND]', open('/path/to/file.png', 'rb')) diff --git a/docs/examples/0.15.x/server-python/examples/functions/create.md b/docs/examples/0.15.x/server-python/examples/functions/create.md deleted file mode 100644 index 53629a58c0..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/create.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5') diff --git a/docs/examples/0.15.x/server-python/examples/functions/delete-deployment.md b/docs/examples/0.15.x/server-python/examples/functions/delete-deployment.md deleted file mode 100644 index ebd3877eaf..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/delete-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.delete_deployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/delete-tag.md b/docs/examples/0.15.x/server-python/examples/functions/delete-tag.md deleted file mode 100644 index a4cb1b7a85..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/delete-tag.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.delete_tag('[FUNCTION_ID]', '[TAG_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/delete.md b/docs/examples/0.15.x/server-python/examples/functions/delete.md deleted file mode 100644 index 52658e8c30..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.delete('[FUNCTION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/get-build.md b/docs/examples/0.15.x/server-python/examples/functions/get-build.md deleted file mode 100644 index 2928bc5691..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/get-build.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.get_build('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/get-deployment.md b/docs/examples/0.15.x/server-python/examples/functions/get-deployment.md deleted file mode 100644 index e94bab7e33..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/get-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.get_deployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/get-execution.md b/docs/examples/0.15.x/server-python/examples/functions/get-execution.md deleted file mode 100644 index 1e101304d3..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/get-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.get_execution('[FUNCTION_ID]', '[EXECUTION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/get-tag.md b/docs/examples/0.15.x/server-python/examples/functions/get-tag.md deleted file mode 100644 index 4cded469dd..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/get-tag.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.get_tag('[FUNCTION_ID]', '[TAG_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/get.md b/docs/examples/0.15.x/server-python/examples/functions/get.md deleted file mode 100644 index 0007667da6..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.get('[FUNCTION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/list-deployments.md b/docs/examples/0.15.x/server-python/examples/functions/list-deployments.md deleted file mode 100644 index 15e37de7e5..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/list-deployments.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.list_deployments('[FUNCTION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/list-executions.md b/docs/examples/0.15.x/server-python/examples/functions/list-executions.md deleted file mode 100644 index 6d75e093f4..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/list-executions.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.list_executions('[FUNCTION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/list-runtimes.md b/docs/examples/0.15.x/server-python/examples/functions/list-runtimes.md deleted file mode 100644 index a832a4dcdc..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/list-runtimes.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.list_runtimes() diff --git a/docs/examples/0.15.x/server-python/examples/functions/list-tags.md b/docs/examples/0.15.x/server-python/examples/functions/list-tags.md deleted file mode 100644 index 67a81a9d89..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/list-tags.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.list_tags('[FUNCTION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/list.md b/docs/examples/0.15.x/server-python/examples/functions/list.md deleted file mode 100644 index cc1f04d9c6..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/list.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.list() diff --git a/docs/examples/0.15.x/server-python/examples/functions/retry-build.md b/docs/examples/0.15.x/server-python/examples/functions/retry-build.md deleted file mode 100644 index 1a5e1b95da..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/retry-build.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.retry_build('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/update-deployment.md b/docs/examples/0.15.x/server-python/examples/functions/update-deployment.md deleted file mode 100644 index 473276f787..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/update-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.update_deployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/update-tag.md b/docs/examples/0.15.x/server-python/examples/functions/update-tag.md deleted file mode 100644 index 7a9da50b2f..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/update-tag.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.update_tag('[FUNCTION_ID]', '[TAG]') diff --git a/docs/examples/0.15.x/server-python/examples/functions/update.md b/docs/examples/0.15.x/server-python/examples/functions/update.md deleted file mode 100644 index 675338185e..0000000000 --- a/docs/examples/0.15.x/server-python/examples/functions/update.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.update('[FUNCTION_ID]', '[NAME]', []) diff --git a/docs/examples/0.15.x/server-python/examples/health/get-antivirus.md b/docs/examples/0.15.x/server-python/examples/health/get-antivirus.md deleted file mode 100644 index 97ee120365..0000000000 --- a/docs/examples/0.15.x/server-python/examples/health/get-antivirus.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_antivirus() diff --git a/docs/examples/0.15.x/server-python/examples/health/get-cache.md b/docs/examples/0.15.x/server-python/examples/health/get-cache.md deleted file mode 100644 index 57c7939b7f..0000000000 --- a/docs/examples/0.15.x/server-python/examples/health/get-cache.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_cache() diff --git a/docs/examples/0.15.x/server-python/examples/health/get-d-b.md b/docs/examples/0.15.x/server-python/examples/health/get-d-b.md deleted file mode 100644 index 4c2bafec96..0000000000 --- a/docs/examples/0.15.x/server-python/examples/health/get-d-b.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_db() diff --git a/docs/examples/0.15.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/0.15.x/server-python/examples/health/get-queue-certificates.md deleted file mode 100644 index 1f87c2758a..0000000000 --- a/docs/examples/0.15.x/server-python/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_queue_certificates() diff --git a/docs/examples/0.15.x/server-python/examples/health/get-queue-functions.md b/docs/examples/0.15.x/server-python/examples/health/get-queue-functions.md deleted file mode 100644 index 3e0b0c01e0..0000000000 --- a/docs/examples/0.15.x/server-python/examples/health/get-queue-functions.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_queue_functions() diff --git a/docs/examples/0.15.x/server-python/examples/health/get-queue-logs.md b/docs/examples/0.15.x/server-python/examples/health/get-queue-logs.md deleted file mode 100644 index fdf80c6d82..0000000000 --- a/docs/examples/0.15.x/server-python/examples/health/get-queue-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_queue_logs() diff --git a/docs/examples/0.15.x/server-python/examples/health/get-queue-usage.md b/docs/examples/0.15.x/server-python/examples/health/get-queue-usage.md deleted file mode 100644 index aeb8e83130..0000000000 --- a/docs/examples/0.15.x/server-python/examples/health/get-queue-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_queue_usage() diff --git a/docs/examples/0.15.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/0.15.x/server-python/examples/health/get-queue-webhooks.md deleted file mode 100644 index 90c4238987..0000000000 --- a/docs/examples/0.15.x/server-python/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_queue_webhooks() diff --git a/docs/examples/0.15.x/server-python/examples/health/get-storage-local.md b/docs/examples/0.15.x/server-python/examples/health/get-storage-local.md deleted file mode 100644 index b06dcef245..0000000000 --- a/docs/examples/0.15.x/server-python/examples/health/get-storage-local.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_storage_local() diff --git a/docs/examples/0.15.x/server-python/examples/health/get-time.md b/docs/examples/0.15.x/server-python/examples/health/get-time.md deleted file mode 100644 index df68c1a0f9..0000000000 --- a/docs/examples/0.15.x/server-python/examples/health/get-time.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_time() diff --git a/docs/examples/0.15.x/server-python/examples/health/get.md b/docs/examples/0.15.x/server-python/examples/health/get.md deleted file mode 100644 index f3416aef75..0000000000 --- a/docs/examples/0.15.x/server-python/examples/health/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get() diff --git a/docs/examples/0.15.x/server-python/examples/locale/get-continents.md b/docs/examples/0.15.x/server-python/examples/locale/get-continents.md deleted file mode 100644 index 393326ddab..0000000000 --- a/docs/examples/0.15.x/server-python/examples/locale/get-continents.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.get_continents() diff --git a/docs/examples/0.15.x/server-python/examples/locale/get-countries-e-u.md b/docs/examples/0.15.x/server-python/examples/locale/get-countries-e-u.md deleted file mode 100644 index 51178ddd66..0000000000 --- a/docs/examples/0.15.x/server-python/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.get_countries_eu() diff --git a/docs/examples/0.15.x/server-python/examples/locale/get-countries-phones.md b/docs/examples/0.15.x/server-python/examples/locale/get-countries-phones.md deleted file mode 100644 index 8c7693a35c..0000000000 --- a/docs/examples/0.15.x/server-python/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.get_countries_phones() diff --git a/docs/examples/0.15.x/server-python/examples/locale/get-countries.md b/docs/examples/0.15.x/server-python/examples/locale/get-countries.md deleted file mode 100644 index 8a6c7cb1c3..0000000000 --- a/docs/examples/0.15.x/server-python/examples/locale/get-countries.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.get_countries() diff --git a/docs/examples/0.15.x/server-python/examples/locale/get-currencies.md b/docs/examples/0.15.x/server-python/examples/locale/get-currencies.md deleted file mode 100644 index 17586de230..0000000000 --- a/docs/examples/0.15.x/server-python/examples/locale/get-currencies.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.get_currencies() diff --git a/docs/examples/0.15.x/server-python/examples/locale/get-languages.md b/docs/examples/0.15.x/server-python/examples/locale/get-languages.md deleted file mode 100644 index 292a401f75..0000000000 --- a/docs/examples/0.15.x/server-python/examples/locale/get-languages.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.get_languages() diff --git a/docs/examples/0.15.x/server-python/examples/locale/get.md b/docs/examples/0.15.x/server-python/examples/locale/get.md deleted file mode 100644 index 752df0123d..0000000000 --- a/docs/examples/0.15.x/server-python/examples/locale/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.get() diff --git a/docs/examples/0.15.x/server-python/examples/storage/create-bucket.md b/docs/examples/0.15.x/server-python/examples/storage/create-bucket.md deleted file mode 100644 index 639336fcd4..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/create-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.create_bucket('[BUCKET_ID]', '[NAME]', 'file') diff --git a/docs/examples/0.15.x/server-python/examples/storage/create-file.md b/docs/examples/0.15.x/server-python/examples/storage/create-file.md deleted file mode 100644 index 2ccb023a03..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/create-file.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.create_file('[BUCKET_ID]', '[FILE_ID]', 'file.png') diff --git a/docs/examples/0.15.x/server-python/examples/storage/delete-bucket.md b/docs/examples/0.15.x/server-python/examples/storage/delete-bucket.md deleted file mode 100644 index e992670f8d..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/delete-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.delete_bucket('[BUCKET_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/storage/delete-file.md b/docs/examples/0.15.x/server-python/examples/storage/delete-file.md deleted file mode 100644 index d38b70b83c..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/delete-file.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.delete_file('[BUCKET_ID]', '[FILE_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/storage/get-bucket.md b/docs/examples/0.15.x/server-python/examples/storage/get-bucket.md deleted file mode 100644 index 85f870b48f..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/get-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.get_bucket('[BUCKET_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/storage/get-file-download.md b/docs/examples/0.15.x/server-python/examples/storage/get-file-download.md deleted file mode 100644 index dcc5790b9c..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/get-file-download.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.get_file_download('[BUCKET_ID]', '[FILE_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/storage/get-file-preview.md b/docs/examples/0.15.x/server-python/examples/storage/get-file-preview.md deleted file mode 100644 index cbba840ded..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/get-file-preview.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.get_file_preview('[BUCKET_ID]', '[FILE_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/storage/get-file-view.md b/docs/examples/0.15.x/server-python/examples/storage/get-file-view.md deleted file mode 100644 index 4648e80169..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/get-file-view.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.get_file_view('[BUCKET_ID]', '[FILE_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/storage/get-file.md b/docs/examples/0.15.x/server-python/examples/storage/get-file.md deleted file mode 100644 index 818acf24a7..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/get-file.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.get_file('[BUCKET_ID]', '[FILE_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/storage/list-buckets.md b/docs/examples/0.15.x/server-python/examples/storage/list-buckets.md deleted file mode 100644 index 7dde490e0c..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/list-buckets.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.list_buckets() diff --git a/docs/examples/0.15.x/server-python/examples/storage/list-files.md b/docs/examples/0.15.x/server-python/examples/storage/list-files.md deleted file mode 100644 index 4c9891a9eb..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/list-files.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.list_files('[BUCKET_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/storage/update-bucket.md b/docs/examples/0.15.x/server-python/examples/storage/update-bucket.md deleted file mode 100644 index c8d0d37c5d..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/update-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.update_bucket('[BUCKET_ID]', '[NAME]', 'file') diff --git a/docs/examples/0.15.x/server-python/examples/storage/update-file.md b/docs/examples/0.15.x/server-python/examples/storage/update-file.md deleted file mode 100644 index 09d371a6ca..0000000000 --- a/docs/examples/0.15.x/server-python/examples/storage/update-file.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.update_file('[BUCKET_ID]', '[FILE_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/teams/create-membership.md b/docs/examples/0.15.x/server-python/examples/teams/create-membership.md deleted file mode 100644 index 9e2c832b3c..0000000000 --- a/docs/examples/0.15.x/server-python/examples/teams/create-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.create_membership('[TEAM_ID]', 'email@example.com', [], 'https://example.com') diff --git a/docs/examples/0.15.x/server-python/examples/teams/create.md b/docs/examples/0.15.x/server-python/examples/teams/create.md deleted file mode 100644 index 36b4494e11..0000000000 --- a/docs/examples/0.15.x/server-python/examples/teams/create.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.create('[TEAM_ID]', '[NAME]') diff --git a/docs/examples/0.15.x/server-python/examples/teams/delete-membership.md b/docs/examples/0.15.x/server-python/examples/teams/delete-membership.md deleted file mode 100644 index 50c259a52d..0000000000 --- a/docs/examples/0.15.x/server-python/examples/teams/delete-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.delete_membership('[TEAM_ID]', '[MEMBERSHIP_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/teams/delete.md b/docs/examples/0.15.x/server-python/examples/teams/delete.md deleted file mode 100644 index 8fb037cd4a..0000000000 --- a/docs/examples/0.15.x/server-python/examples/teams/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.delete('[TEAM_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/teams/get-membership.md b/docs/examples/0.15.x/server-python/examples/teams/get-membership.md deleted file mode 100644 index 2586e943f9..0000000000 --- a/docs/examples/0.15.x/server-python/examples/teams/get-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.get_membership('[TEAM_ID]', '[MEMBERSHIP_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/teams/get-memberships.md b/docs/examples/0.15.x/server-python/examples/teams/get-memberships.md deleted file mode 100644 index 6c6482418b..0000000000 --- a/docs/examples/0.15.x/server-python/examples/teams/get-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.get_memberships('[TEAM_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/teams/get.md b/docs/examples/0.15.x/server-python/examples/teams/get.md deleted file mode 100644 index 6c2b404517..0000000000 --- a/docs/examples/0.15.x/server-python/examples/teams/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.get('[TEAM_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/teams/list.md b/docs/examples/0.15.x/server-python/examples/teams/list.md deleted file mode 100644 index c538aea340..0000000000 --- a/docs/examples/0.15.x/server-python/examples/teams/list.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.list() diff --git a/docs/examples/0.15.x/server-python/examples/teams/update-membership-roles.md b/docs/examples/0.15.x/server-python/examples/teams/update-membership-roles.md deleted file mode 100644 index d637dd6e9c..0000000000 --- a/docs/examples/0.15.x/server-python/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.update_membership_roles('[TEAM_ID]', '[MEMBERSHIP_ID]', []) diff --git a/docs/examples/0.15.x/server-python/examples/teams/update-membership-status.md b/docs/examples/0.15.x/server-python/examples/teams/update-membership-status.md deleted file mode 100644 index 357d4091c4..0000000000 --- a/docs/examples/0.15.x/server-python/examples/teams/update-membership-status.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -teams = Teams(client) - -result = teams.update_membership_status('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]') diff --git a/docs/examples/0.15.x/server-python/examples/teams/update.md b/docs/examples/0.15.x/server-python/examples/teams/update.md deleted file mode 100644 index 2b9c222be0..0000000000 --- a/docs/examples/0.15.x/server-python/examples/teams/update.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.update('[TEAM_ID]', '[NAME]') diff --git a/docs/examples/0.15.x/server-python/examples/users/create-argon2user.md b/docs/examples/0.15.x/server-python/examples/users/create-argon2user.md deleted file mode 100644 index ac7fafb787..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/create-argon2user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_argon2_user('[USER_ID]', 'email@example.com', 'password') diff --git a/docs/examples/0.15.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/0.15.x/server-python/examples/users/create-bcrypt-user.md deleted file mode 100644 index e30c7431e2..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_bcrypt_user('[USER_ID]', 'email@example.com', 'password') diff --git a/docs/examples/0.15.x/server-python/examples/users/create-m-d5user.md b/docs/examples/0.15.x/server-python/examples/users/create-m-d5user.md deleted file mode 100644 index b235a0104b..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/create-m-d5user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_md5_user('[USER_ID]', 'email@example.com', 'password') diff --git a/docs/examples/0.15.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/0.15.x/server-python/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 5fca1ab89b..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_ph_pass_user('[USER_ID]', 'email@example.com', 'password') diff --git a/docs/examples/0.15.x/server-python/examples/users/create-s-crypt-modified-user.md b/docs/examples/0.15.x/server-python/examples/users/create-s-crypt-modified-user.md deleted file mode 100644 index 2a99ed544f..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/create-s-crypt-modified-user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_s_crypt_modified_user('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', '[PASSWORD_SALT_SEPARATOR]', '[PASSWORD_SIGNER_KEY]') diff --git a/docs/examples/0.15.x/server-python/examples/users/create-s-crypt-user.md b/docs/examples/0.15.x/server-python/examples/users/create-s-crypt-user.md deleted file mode 100644 index 6b4f026a88..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/create-s-crypt-user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_s_crypt_user('[USER_ID]', 'email@example.com', 'password') diff --git a/docs/examples/0.15.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/0.15.x/server-python/examples/users/create-s-h-a-user.md deleted file mode 100644 index fe42af4272..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_sha_user('[USER_ID]', 'email@example.com', 'password') diff --git a/docs/examples/0.15.x/server-python/examples/users/create.md b/docs/examples/0.15.x/server-python/examples/users/create.md deleted file mode 100644 index 6fbd16f15e..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/create.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create('[USER_ID]', 'email@example.com', 'password') diff --git a/docs/examples/0.15.x/server-python/examples/users/delete-session.md b/docs/examples/0.15.x/server-python/examples/users/delete-session.md deleted file mode 100644 index d25cfb3abc..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.delete_session('[USER_ID]', '[SESSION_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/users/delete-sessions.md b/docs/examples/0.15.x/server-python/examples/users/delete-sessions.md deleted file mode 100644 index 9b24db1b5c..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.delete_sessions('[USER_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/users/delete.md b/docs/examples/0.15.x/server-python/examples/users/delete.md deleted file mode 100644 index 820eead71f..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.delete('[USER_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/users/get-logs.md b/docs/examples/0.15.x/server-python/examples/users/get-logs.md deleted file mode 100644 index c93ae244c8..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/get-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.get_logs('[USER_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/users/get-memberships.md b/docs/examples/0.15.x/server-python/examples/users/get-memberships.md deleted file mode 100644 index 311d725b24..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/get-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.get_memberships('[USER_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/users/get-prefs.md b/docs/examples/0.15.x/server-python/examples/users/get-prefs.md deleted file mode 100644 index 9ef100f9e6..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.get_prefs('[USER_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/users/get-sessions.md b/docs/examples/0.15.x/server-python/examples/users/get-sessions.md deleted file mode 100644 index 4de3120dfb..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/get-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.get_sessions('[USER_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/users/get.md b/docs/examples/0.15.x/server-python/examples/users/get.md deleted file mode 100644 index c11f96e64b..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.get('[USER_ID]') diff --git a/docs/examples/0.15.x/server-python/examples/users/list.md b/docs/examples/0.15.x/server-python/examples/users/list.md deleted file mode 100644 index c4a66e42d2..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/list.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.list() diff --git a/docs/examples/0.15.x/server-python/examples/users/update-email.md b/docs/examples/0.15.x/server-python/examples/users/update-email.md deleted file mode 100644 index 1803623f8f..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_email('[USER_ID]', 'email@example.com') diff --git a/docs/examples/0.15.x/server-python/examples/users/update-name.md b/docs/examples/0.15.x/server-python/examples/users/update-name.md deleted file mode 100644 index 728940d2a0..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_name('[USER_ID]', '[NAME]') diff --git a/docs/examples/0.15.x/server-python/examples/users/update-password.md b/docs/examples/0.15.x/server-python/examples/users/update-password.md deleted file mode 100644 index 56b15e7dba..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_password('[USER_ID]', 'password') diff --git a/docs/examples/0.15.x/server-python/examples/users/update-prefs.md b/docs/examples/0.15.x/server-python/examples/users/update-prefs.md deleted file mode 100644 index 7e0fe7c35a..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_prefs('[USER_ID]', {}) diff --git a/docs/examples/0.15.x/server-python/examples/users/update-status.md b/docs/examples/0.15.x/server-python/examples/users/update-status.md deleted file mode 100644 index 55b32b1c1c..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/update-status.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_status('[USER_ID]', False) diff --git a/docs/examples/0.15.x/server-python/examples/users/update-verification.md b/docs/examples/0.15.x/server-python/examples/users/update-verification.md deleted file mode 100644 index 6923e034d8..0000000000 --- a/docs/examples/0.15.x/server-python/examples/users/update-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_verification('[USER_ID]', False) diff --git a/docs/examples/0.15.x/server-ruby/examples/account/create-recovery.md b/docs/examples/0.15.x/server-ruby/examples/account/create-recovery.md deleted file mode 100644 index e8d2e55435..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/create-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.create_recovery(email: 'email@example.com', url: 'https://example.com') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/create-verification.md b/docs/examples/0.15.x/server-ruby/examples/account/create-verification.md deleted file mode 100644 index e2793d190f..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/create-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.create_verification(url: 'https://example.com') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/delete-session.md b/docs/examples/0.15.x/server-ruby/examples/account/delete-session.md deleted file mode 100644 index 31eb776cb1..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.delete_session(session_id: '[SESSION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/0.15.x/server-ruby/examples/account/delete-sessions.md deleted file mode 100644 index b2cd8719bb..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.delete_sessions() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/delete.md b/docs/examples/0.15.x/server-ruby/examples/account/delete.md deleted file mode 100644 index 2d78d31153..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.delete() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/get-logs.md b/docs/examples/0.15.x/server-ruby/examples/account/get-logs.md deleted file mode 100644 index 31d1aebd12..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/get-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.get_logs() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/get-prefs.md b/docs/examples/0.15.x/server-ruby/examples/account/get-prefs.md deleted file mode 100644 index 399b02f84e..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.get_prefs() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/get-session.md b/docs/examples/0.15.x/server-ruby/examples/account/get-session.md deleted file mode 100644 index c5da75976e..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/get-session.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.get_session(session_id: '[SESSION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/get-sessions.md b/docs/examples/0.15.x/server-ruby/examples/account/get-sessions.md deleted file mode 100644 index 67302aa556..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/get-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.get_sessions() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/get.md b/docs/examples/0.15.x/server-ruby/examples/account/get.md deleted file mode 100644 index 15feca12b5..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.get() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/update-email.md b/docs/examples/0.15.x/server-ruby/examples/account/update-email.md deleted file mode 100644 index a036b30974..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.update_email(email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/update-name.md b/docs/examples/0.15.x/server-ruby/examples/account/update-name.md deleted file mode 100644 index 217be57b15..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.update_name(name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/update-o-auth2tokens.md b/docs/examples/0.15.x/server-ruby/examples/account/update-o-auth2tokens.md deleted file mode 100644 index ca2ad4f009..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/update-o-auth2tokens.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.update_o_auth2_tokens(session_id: '[SESSION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/update-password.md b/docs/examples/0.15.x/server-ruby/examples/account/update-password.md deleted file mode 100644 index 0e6914d26a..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.update_password(password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/update-prefs.md b/docs/examples/0.15.x/server-ruby/examples/account/update-prefs.md deleted file mode 100644 index 6a78546b15..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.update_prefs(prefs: {}) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/update-recovery.md b/docs/examples/0.15.x/server-ruby/examples/account/update-recovery.md deleted file mode 100644 index d6d0050fe3..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/update-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.update_recovery(user_id: '[USER_ID]', secret: '[SECRET]', password: 'password', password_again: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/update-session.md b/docs/examples/0.15.x/server-ruby/examples/account/update-session.md deleted file mode 100644 index 281efc72f7..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/update-session.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.update_session(session_id: '[SESSION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/update-status.md b/docs/examples/0.15.x/server-ruby/examples/account/update-status.md deleted file mode 100644 index c609271182..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/update-status.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.update_status() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/account/update-verification.md b/docs/examples/0.15.x/server-ruby/examples/account/update-verification.md deleted file mode 100644 index c2079c05b5..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/account/update-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Appwrite::Account.new(client) - -response = account.update_verification(user_id: '[USER_ID]', secret: '[SECRET]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/0.15.x/server-ruby/examples/avatars/get-browser.md deleted file mode 100644 index e339445186..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/avatars/get-browser.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Appwrite::Avatars.new(client) - -response = avatars.get_browser(code: 'aa') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/0.15.x/server-ruby/examples/avatars/get-credit-card.md deleted file mode 100644 index bf2d103536..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Appwrite::Avatars.new(client) - -response = avatars.get_credit_card(code: 'amex') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/0.15.x/server-ruby/examples/avatars/get-favicon.md deleted file mode 100644 index 3b3d14ab1d..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/avatars/get-favicon.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Appwrite::Avatars.new(client) - -response = avatars.get_favicon(url: 'https://example.com') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/0.15.x/server-ruby/examples/avatars/get-flag.md deleted file mode 100644 index 37a0bc8577..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/avatars/get-flag.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Appwrite::Avatars.new(client) - -response = avatars.get_flag(code: 'af') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/avatars/get-image.md b/docs/examples/0.15.x/server-ruby/examples/avatars/get-image.md deleted file mode 100644 index 251573ece7..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/avatars/get-image.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Appwrite::Avatars.new(client) - -response = avatars.get_image(url: 'https://example.com') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/0.15.x/server-ruby/examples/avatars/get-initials.md deleted file mode 100644 index 6e30f179d9..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/avatars/get-initials.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Appwrite::Avatars.new(client) - -response = avatars.get_initials() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/0.15.x/server-ruby/examples/avatars/get-q-r.md deleted file mode 100644 index 3714d545eb..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/avatars/get-q-r.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Appwrite::Avatars.new(client) - -response = avatars.get_qr(text: '[TEXT]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/create-boolean-attribute.md b/docs/examples/0.15.x/server-ruby/examples/database/create-boolean-attribute.md deleted file mode 100644 index b3228f27fe..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/create-boolean-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.create_boolean_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/create-collection.md b/docs/examples/0.15.x/server-ruby/examples/database/create-collection.md deleted file mode 100644 index 81325a8b79..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/create-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.create_collection(collection_id: '[COLLECTION_ID]', name: '[NAME]', permission: 'document', read: ["role:all"], write: ["role:all"]) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/create-document.md b/docs/examples/0.15.x/server-ruby/examples/database/create-document.md deleted file mode 100644 index 97300f92d8..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/create-document.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.create_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]', data: {}) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/create-email-attribute.md b/docs/examples/0.15.x/server-ruby/examples/database/create-email-attribute.md deleted file mode 100644 index fbf9d4fbe0..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/create-email-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.create_email_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/create-enum-attribute.md b/docs/examples/0.15.x/server-ruby/examples/database/create-enum-attribute.md deleted file mode 100644 index 9d0c372f4c..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/create-enum-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.create_enum_attribute(collection_id: '[COLLECTION_ID]', key: '', elements: [], required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/create-float-attribute.md b/docs/examples/0.15.x/server-ruby/examples/database/create-float-attribute.md deleted file mode 100644 index 753191b586..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/create-float-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.create_float_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/create-index.md b/docs/examples/0.15.x/server-ruby/examples/database/create-index.md deleted file mode 100644 index 3404c76763..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/create-index.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.create_index(collection_id: '[COLLECTION_ID]', key: '', type: 'key', attributes: []) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/create-integer-attribute.md b/docs/examples/0.15.x/server-ruby/examples/database/create-integer-attribute.md deleted file mode 100644 index 870405e478..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/create-integer-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.create_integer_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/create-ip-attribute.md b/docs/examples/0.15.x/server-ruby/examples/database/create-ip-attribute.md deleted file mode 100644 index f956cb1eb8..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/create-ip-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.create_ip_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/create-string-attribute.md b/docs/examples/0.15.x/server-ruby/examples/database/create-string-attribute.md deleted file mode 100644 index 5d42170fa4..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/create-string-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.create_string_attribute(collection_id: '[COLLECTION_ID]', key: '', size: 1, required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/create-url-attribute.md b/docs/examples/0.15.x/server-ruby/examples/database/create-url-attribute.md deleted file mode 100644 index a91948f1d5..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/create-url-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.create_url_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/delete-attribute.md b/docs/examples/0.15.x/server-ruby/examples/database/delete-attribute.md deleted file mode 100644 index 2b38d31bea..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/delete-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.delete_attribute(collection_id: '[COLLECTION_ID]', key: '') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/delete-collection.md b/docs/examples/0.15.x/server-ruby/examples/database/delete-collection.md deleted file mode 100644 index 9694d36cc0..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/delete-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.delete_collection(collection_id: '[COLLECTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/delete-document.md b/docs/examples/0.15.x/server-ruby/examples/database/delete-document.md deleted file mode 100644 index 87a6436550..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/delete-document.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.delete_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/delete-index.md b/docs/examples/0.15.x/server-ruby/examples/database/delete-index.md deleted file mode 100644 index 50b8a8d1f4..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.delete_index(collection_id: '[COLLECTION_ID]', key: '') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/get-attribute.md b/docs/examples/0.15.x/server-ruby/examples/database/get-attribute.md deleted file mode 100644 index 7315a50ae3..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/get-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.get_attribute(collection_id: '[COLLECTION_ID]', key: '') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/get-collection.md b/docs/examples/0.15.x/server-ruby/examples/database/get-collection.md deleted file mode 100644 index 213c19cc7f..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/get-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.get_collection(collection_id: '[COLLECTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/get-document.md b/docs/examples/0.15.x/server-ruby/examples/database/get-document.md deleted file mode 100644 index c2d3da2a78..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/get-document.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.get_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/get-index.md b/docs/examples/0.15.x/server-ruby/examples/database/get-index.md deleted file mode 100644 index 69d190d8fd..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.get_index(collection_id: '[COLLECTION_ID]', key: '') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/list-attributes.md b/docs/examples/0.15.x/server-ruby/examples/database/list-attributes.md deleted file mode 100644 index 84162b9087..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/list-attributes.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.list_attributes(collection_id: '[COLLECTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/list-collections.md b/docs/examples/0.15.x/server-ruby/examples/database/list-collections.md deleted file mode 100644 index f26ad8f281..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/list-collections.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.list_collections() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/list-documents.md b/docs/examples/0.15.x/server-ruby/examples/database/list-documents.md deleted file mode 100644 index 4e4e9ab5ab..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/list-documents.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.list_documents(collection_id: '[COLLECTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/list-indexes.md b/docs/examples/0.15.x/server-ruby/examples/database/list-indexes.md deleted file mode 100644 index bf6df474f4..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.list_indexes(collection_id: '[COLLECTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/update-collection.md b/docs/examples/0.15.x/server-ruby/examples/database/update-collection.md deleted file mode 100644 index 0cbda72a3f..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/update-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.update_collection(collection_id: '[COLLECTION_ID]', name: '[NAME]', permission: 'document') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/database/update-document.md b/docs/examples/0.15.x/server-ruby/examples/database/update-document.md deleted file mode 100644 index 4b5344b5d7..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/database/update-document.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -database = Appwrite::Database.new(client) - -response = database.update_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]', data: {}) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/builds.md b/docs/examples/0.15.x/server-ruby/examples/functions/builds.md deleted file mode 100644 index ffad0538e6..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/builds.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.builds(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/0.15.x/server-ruby/examples/functions/create-deployment.md deleted file mode 100644 index 1df2a286c5..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/create-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.create_deployment(function_id: '[FUNCTION_ID]', entrypoint: '[ENTRYPOINT]', code: 'dir/file.png', activate: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/create-execution.md b/docs/examples/0.15.x/server-ruby/examples/functions/create-execution.md deleted file mode 100644 index 25d48ddadf..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/create-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.create_execution(function_id: '[FUNCTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/create-tag.md b/docs/examples/0.15.x/server-ruby/examples/functions/create-tag.md deleted file mode 100644 index edd7d95ca3..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/create-tag.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.create_tag(function_id: '[FUNCTION_ID]', command: '[COMMAND]', code: File.new()) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/create.md b/docs/examples/0.15.x/server-ruby/examples/functions/create.md deleted file mode 100644 index 7834441203..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/create.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.create(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: [], runtime: 'node-14.5') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/0.15.x/server-ruby/examples/functions/delete-deployment.md deleted file mode 100644 index 6ae40f76f4..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/delete-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.delete_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/delete-tag.md b/docs/examples/0.15.x/server-ruby/examples/functions/delete-tag.md deleted file mode 100644 index 48a140a547..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/delete-tag.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.delete_tag(function_id: '[FUNCTION_ID]', tag_id: '[TAG_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/delete.md b/docs/examples/0.15.x/server-ruby/examples/functions/delete.md deleted file mode 100644 index 33d2154958..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.delete(function_id: '[FUNCTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/get-build.md b/docs/examples/0.15.x/server-ruby/examples/functions/get-build.md deleted file mode 100644 index c2bc6b98ba..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/get-build.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.get_build(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]', build_id: '[BUILD_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/0.15.x/server-ruby/examples/functions/get-deployment.md deleted file mode 100644 index f9cbff3800..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/get-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.get_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/get-execution.md b/docs/examples/0.15.x/server-ruby/examples/functions/get-execution.md deleted file mode 100644 index dd43307553..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/get-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.get_execution(function_id: '[FUNCTION_ID]', execution_id: '[EXECUTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/get-tag.md b/docs/examples/0.15.x/server-ruby/examples/functions/get-tag.md deleted file mode 100644 index ed28377a54..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/get-tag.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.get_tag(function_id: '[FUNCTION_ID]', tag_id: '[TAG_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/get.md b/docs/examples/0.15.x/server-ruby/examples/functions/get.md deleted file mode 100644 index 463f6a406b..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.get(function_id: '[FUNCTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/0.15.x/server-ruby/examples/functions/list-deployments.md deleted file mode 100644 index 36df28c8ab..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/list-deployments.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.list_deployments(function_id: '[FUNCTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/list-executions.md b/docs/examples/0.15.x/server-ruby/examples/functions/list-executions.md deleted file mode 100644 index da66723679..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/list-executions.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.list_executions(function_id: '[FUNCTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/0.15.x/server-ruby/examples/functions/list-runtimes.md deleted file mode 100644 index b8f0a75aff..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/list-runtimes.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.list_runtimes() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/list-tags.md b/docs/examples/0.15.x/server-ruby/examples/functions/list-tags.md deleted file mode 100644 index 6df195b60b..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/list-tags.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.list_tags(function_id: '[FUNCTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/list.md b/docs/examples/0.15.x/server-ruby/examples/functions/list.md deleted file mode 100644 index ce82a162a5..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/list.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.list() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/retry-build.md b/docs/examples/0.15.x/server-ruby/examples/functions/retry-build.md deleted file mode 100644 index 1e27f85af4..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/retry-build.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.retry_build(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]', build_id: '[BUILD_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/0.15.x/server-ruby/examples/functions/update-deployment.md deleted file mode 100644 index 02a5bb5014..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/update-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.update_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/update-tag.md b/docs/examples/0.15.x/server-ruby/examples/functions/update-tag.md deleted file mode 100644 index bb790c8457..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/update-tag.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.update_tag(function_id: '[FUNCTION_ID]', tag: '[TAG]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/update.md b/docs/examples/0.15.x/server-ruby/examples/functions/update.md deleted file mode 100644 index 606e336343..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/functions/update.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Appwrite::Functions.new(client) - -response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: []) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/0.15.x/server-ruby/examples/health/get-antivirus.md deleted file mode 100644 index c9c0bd45f5..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/health/get-antivirus.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Appwrite::Health.new(client) - -response = health.get_antivirus() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/health/get-cache.md b/docs/examples/0.15.x/server-ruby/examples/health/get-cache.md deleted file mode 100644 index cbaa4b959f..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/health/get-cache.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Appwrite::Health.new(client) - -response = health.get_cache() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/health/get-d-b.md b/docs/examples/0.15.x/server-ruby/examples/health/get-d-b.md deleted file mode 100644 index 9f7bedd7f5..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/health/get-d-b.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Appwrite::Health.new(client) - -response = health.get_db() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/0.15.x/server-ruby/examples/health/get-queue-certificates.md deleted file mode 100644 index db44d4da4e..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Appwrite::Health.new(client) - -response = health.get_queue_certificates() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/0.15.x/server-ruby/examples/health/get-queue-functions.md deleted file mode 100644 index 14b2043cd2..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/health/get-queue-functions.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Appwrite::Health.new(client) - -response = health.get_queue_functions() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/0.15.x/server-ruby/examples/health/get-queue-logs.md deleted file mode 100644 index 9c19ac25d2..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/health/get-queue-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Appwrite::Health.new(client) - -response = health.get_queue_logs() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/health/get-queue-usage.md b/docs/examples/0.15.x/server-ruby/examples/health/get-queue-usage.md deleted file mode 100644 index 06705163e5..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/health/get-queue-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Appwrite::Health.new(client) - -response = health.get_queue_usage() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/0.15.x/server-ruby/examples/health/get-queue-webhooks.md deleted file mode 100644 index 288b27207e..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Appwrite::Health.new(client) - -response = health.get_queue_webhooks() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/0.15.x/server-ruby/examples/health/get-storage-local.md deleted file mode 100644 index fc7ae24da4..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/health/get-storage-local.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Appwrite::Health.new(client) - -response = health.get_storage_local() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/health/get-time.md b/docs/examples/0.15.x/server-ruby/examples/health/get-time.md deleted file mode 100644 index b29672255f..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/health/get-time.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Appwrite::Health.new(client) - -response = health.get_time() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/health/get.md b/docs/examples/0.15.x/server-ruby/examples/health/get.md deleted file mode 100644 index b7a82e6c2b..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/health/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Appwrite::Health.new(client) - -response = health.get() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/locale/get-continents.md b/docs/examples/0.15.x/server-ruby/examples/locale/get-continents.md deleted file mode 100644 index 8857911dab..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/locale/get-continents.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Appwrite::Locale.new(client) - -response = locale.get_continents() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/locale/get-countries-e-u.md b/docs/examples/0.15.x/server-ruby/examples/locale/get-countries-e-u.md deleted file mode 100644 index 92e593edf0..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Appwrite::Locale.new(client) - -response = locale.get_countries_eu() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/locale/get-countries-phones.md b/docs/examples/0.15.x/server-ruby/examples/locale/get-countries-phones.md deleted file mode 100644 index d3ae0c4e8a..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Appwrite::Locale.new(client) - -response = locale.get_countries_phones() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/locale/get-countries.md b/docs/examples/0.15.x/server-ruby/examples/locale/get-countries.md deleted file mode 100644 index 895917e42d..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/locale/get-countries.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Appwrite::Locale.new(client) - -response = locale.get_countries() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/locale/get-currencies.md b/docs/examples/0.15.x/server-ruby/examples/locale/get-currencies.md deleted file mode 100644 index 48278af4ed..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/locale/get-currencies.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Appwrite::Locale.new(client) - -response = locale.get_currencies() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/locale/get-languages.md b/docs/examples/0.15.x/server-ruby/examples/locale/get-languages.md deleted file mode 100644 index dccf02d769..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/locale/get-languages.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Appwrite::Locale.new(client) - -response = locale.get_languages() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/locale/get.md b/docs/examples/0.15.x/server-ruby/examples/locale/get.md deleted file mode 100644 index f8e37d34a8..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/locale/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Appwrite::Locale.new(client) - -response = locale.get() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/0.15.x/server-ruby/examples/storage/create-bucket.md deleted file mode 100644 index 121796809c..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/create-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.create_bucket(bucket_id: '[BUCKET_ID]', name: '[NAME]', permission: 'file') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/create-file.md b/docs/examples/0.15.x/server-ruby/examples/storage/create-file.md deleted file mode 100644 index 066cc51c51..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/create-file.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.create_file(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]', file: 'dir/file.png') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/0.15.x/server-ruby/examples/storage/delete-bucket.md deleted file mode 100644 index e44be3581e..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/delete-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.delete_bucket(bucket_id: '[BUCKET_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/delete-file.md b/docs/examples/0.15.x/server-ruby/examples/storage/delete-file.md deleted file mode 100644 index bba6c6e8da..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/delete-file.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.delete_file(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/0.15.x/server-ruby/examples/storage/get-bucket.md deleted file mode 100644 index d1d6b9a4cd..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/get-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.get_bucket(bucket_id: '[BUCKET_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/0.15.x/server-ruby/examples/storage/get-file-download.md deleted file mode 100644 index f3903072a3..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/get-file-download.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.get_file_download(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/0.15.x/server-ruby/examples/storage/get-file-preview.md deleted file mode 100644 index 6f2f249d5f..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/get-file-preview.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.get_file_preview(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/0.15.x/server-ruby/examples/storage/get-file-view.md deleted file mode 100644 index ea59ce1e25..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/get-file-view.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.get_file_view(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/get-file.md b/docs/examples/0.15.x/server-ruby/examples/storage/get-file.md deleted file mode 100644 index a7758d0855..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/get-file.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.get_file(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/0.15.x/server-ruby/examples/storage/list-buckets.md deleted file mode 100644 index 81ee829897..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/list-buckets.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.list_buckets() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/list-files.md b/docs/examples/0.15.x/server-ruby/examples/storage/list-files.md deleted file mode 100644 index f7c6bb88b4..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/list-files.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.list_files(bucket_id: '[BUCKET_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/0.15.x/server-ruby/examples/storage/update-bucket.md deleted file mode 100644 index d946c80732..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/update-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.update_bucket(bucket_id: '[BUCKET_ID]', name: '[NAME]', permission: 'file') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/update-file.md b/docs/examples/0.15.x/server-ruby/examples/storage/update-file.md deleted file mode 100644 index bf42b7e886..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/storage/update-file.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Appwrite::Storage.new(client) - -response = storage.update_file(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/teams/create-membership.md b/docs/examples/0.15.x/server-ruby/examples/teams/create-membership.md deleted file mode 100644 index 5c82311054..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/teams/create-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Appwrite::Teams.new(client) - -response = teams.create_membership(team_id: '[TEAM_ID]', email: 'email@example.com', roles: [], url: 'https://example.com') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/teams/create.md b/docs/examples/0.15.x/server-ruby/examples/teams/create.md deleted file mode 100644 index 58f09d8918..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/teams/create.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Appwrite::Teams.new(client) - -response = teams.create(team_id: '[TEAM_ID]', name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/0.15.x/server-ruby/examples/teams/delete-membership.md deleted file mode 100644 index 5d415622ed..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/teams/delete-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Appwrite::Teams.new(client) - -response = teams.delete_membership(team_id: '[TEAM_ID]', membership_id: '[MEMBERSHIP_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/teams/delete.md b/docs/examples/0.15.x/server-ruby/examples/teams/delete.md deleted file mode 100644 index 792abc25cd..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/teams/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Appwrite::Teams.new(client) - -response = teams.delete(team_id: '[TEAM_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/teams/get-membership.md b/docs/examples/0.15.x/server-ruby/examples/teams/get-membership.md deleted file mode 100644 index be37320c11..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/teams/get-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Appwrite::Teams.new(client) - -response = teams.get_membership(team_id: '[TEAM_ID]', membership_id: '[MEMBERSHIP_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/teams/get-memberships.md b/docs/examples/0.15.x/server-ruby/examples/teams/get-memberships.md deleted file mode 100644 index de0d1a7ae3..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/teams/get-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Appwrite::Teams.new(client) - -response = teams.get_memberships(team_id: '[TEAM_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/teams/get.md b/docs/examples/0.15.x/server-ruby/examples/teams/get.md deleted file mode 100644 index eb42acfdb9..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/teams/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Appwrite::Teams.new(client) - -response = teams.get(team_id: '[TEAM_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/teams/list.md b/docs/examples/0.15.x/server-ruby/examples/teams/list.md deleted file mode 100644 index f660fd7f95..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/teams/list.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Appwrite::Teams.new(client) - -response = teams.list() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/teams/update-membership-roles.md b/docs/examples/0.15.x/server-ruby/examples/teams/update-membership-roles.md deleted file mode 100644 index e754ec42f4..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Appwrite::Teams.new(client) - -response = teams.update_membership_roles(team_id: '[TEAM_ID]', membership_id: '[MEMBERSHIP_ID]', roles: []) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/0.15.x/server-ruby/examples/teams/update-membership-status.md deleted file mode 100644 index 7f539905d5..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/teams/update-membership-status.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -teams = Appwrite::Teams.new(client) - -response = teams.update_membership_status(team_id: '[TEAM_ID]', membership_id: '[MEMBERSHIP_ID]', user_id: '[USER_ID]', secret: '[SECRET]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/teams/update.md b/docs/examples/0.15.x/server-ruby/examples/teams/update.md deleted file mode 100644 index 2fb0e774e4..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/teams/update.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Appwrite::Teams.new(client) - -response = teams.update(team_id: '[TEAM_ID]', name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/0.15.x/server-ruby/examples/users/create-argon2user.md deleted file mode 100644 index f042e1228d..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/create-argon2user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.create_argon2_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/0.15.x/server-ruby/examples/users/create-bcrypt-user.md deleted file mode 100644 index 35318375b7..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.create_bcrypt_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/0.15.x/server-ruby/examples/users/create-m-d5user.md deleted file mode 100644 index dba9b494ad..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/create-m-d5user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.create_md5_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/0.15.x/server-ruby/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 73dd93045a..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.create_ph_pass_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/create-s-crypt-modified-user.md b/docs/examples/0.15.x/server-ruby/examples/users/create-s-crypt-modified-user.md deleted file mode 100644 index 983b95b005..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/create-s-crypt-modified-user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.create_s_crypt_modified_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password', password_salt: '[PASSWORD_SALT]', password_salt_separator: '[PASSWORD_SALT_SEPARATOR]', password_signer_key: '[PASSWORD_SIGNER_KEY]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/create-s-crypt-user.md b/docs/examples/0.15.x/server-ruby/examples/users/create-s-crypt-user.md deleted file mode 100644 index 2c84c017af..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/create-s-crypt-user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.create_s_crypt_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/0.15.x/server-ruby/examples/users/create-s-h-a-user.md deleted file mode 100644 index a2aae34ff7..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.create_sha_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/create.md b/docs/examples/0.15.x/server-ruby/examples/users/create.md deleted file mode 100644 index b8302e02f8..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/create.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.create(user_id: '[USER_ID]', email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/delete-session.md b/docs/examples/0.15.x/server-ruby/examples/users/delete-session.md deleted file mode 100644 index 676d8dda8f..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.delete_session(user_id: '[USER_ID]', session_id: '[SESSION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/0.15.x/server-ruby/examples/users/delete-sessions.md deleted file mode 100644 index 8578572dc1..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.delete_sessions(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/delete.md b/docs/examples/0.15.x/server-ruby/examples/users/delete.md deleted file mode 100644 index 2504751dd2..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.delete(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/get-logs.md b/docs/examples/0.15.x/server-ruby/examples/users/get-logs.md deleted file mode 100644 index e010503c3c..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/get-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.get_logs(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/get-memberships.md b/docs/examples/0.15.x/server-ruby/examples/users/get-memberships.md deleted file mode 100644 index e842039404..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/get-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.get_memberships(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/get-prefs.md b/docs/examples/0.15.x/server-ruby/examples/users/get-prefs.md deleted file mode 100644 index d818802801..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.get_prefs(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/get-sessions.md b/docs/examples/0.15.x/server-ruby/examples/users/get-sessions.md deleted file mode 100644 index 8a4b0e902e..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/get-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.get_sessions(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/get.md b/docs/examples/0.15.x/server-ruby/examples/users/get.md deleted file mode 100644 index 93d1063178..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.get(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/list.md b/docs/examples/0.15.x/server-ruby/examples/users/list.md deleted file mode 100644 index 5a17e194d9..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/list.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.list() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/update-email.md b/docs/examples/0.15.x/server-ruby/examples/users/update-email.md deleted file mode 100644 index 5d798145b6..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.update_email(user_id: '[USER_ID]', email: 'email@example.com') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/update-name.md b/docs/examples/0.15.x/server-ruby/examples/users/update-name.md deleted file mode 100644 index 6ddfe659ec..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.update_name(user_id: '[USER_ID]', name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/update-password.md b/docs/examples/0.15.x/server-ruby/examples/users/update-password.md deleted file mode 100644 index 020893f76e..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.update_password(user_id: '[USER_ID]', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/update-prefs.md b/docs/examples/0.15.x/server-ruby/examples/users/update-prefs.md deleted file mode 100644 index bd2055e079..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.update_prefs(user_id: '[USER_ID]', prefs: {}) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/update-status.md b/docs/examples/0.15.x/server-ruby/examples/users/update-status.md deleted file mode 100644 index 4ff25309ef..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/update-status.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.update_status(user_id: '[USER_ID]', status: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/users/update-verification.md b/docs/examples/0.15.x/server-ruby/examples/users/update-verification.md deleted file mode 100644 index 714eeec218..0000000000 --- a/docs/examples/0.15.x/server-ruby/examples/users/update-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -client = Appwrite::Client.new - -client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Appwrite::Users.new(client) - -response = users.update_verification(user_id: '[USER_ID]', email_verification: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-swift/examples/account/create-recovery.md b/docs/examples/0.15.x/server-swift/examples/account/create-recovery.md deleted file mode 100644 index e0048ea302..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/create-recovery.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let token = try await account.createRecovery( - email: "email@example.com", - url: "https://example.com" - ) - - print(String(describing: token) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/create-verification.md b/docs/examples/0.15.x/server-swift/examples/account/create-verification.md deleted file mode 100644 index 530dc6638d..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/create-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let token = try await account.createVerification( - url: "https://example.com" - ) - - print(String(describing: token) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/delete-session.md b/docs/examples/0.15.x/server-swift/examples/account/delete-session.md deleted file mode 100644 index 38cdf4ac38..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let result = try await account.deleteSession( - sessionId: "[SESSION_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/delete-sessions.md b/docs/examples/0.15.x/server-swift/examples/account/delete-sessions.md deleted file mode 100644 index 3ea9dc10d8..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/delete-sessions.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let result = try await account.deleteSessions() - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/delete.md b/docs/examples/0.15.x/server-swift/examples/account/delete.md deleted file mode 100644 index fd1711b15b..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/delete.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - let account = Account(client) - account.delete() { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let ): - print(String(describing: ) - } - } -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/get-logs.md b/docs/examples/0.15.x/server-swift/examples/account/get-logs.md deleted file mode 100644 index ef45c16fb5..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/get-logs.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let logList = try await account.getLogs() - - print(String(describing: logList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/get-prefs.md b/docs/examples/0.15.x/server-swift/examples/account/get-prefs.md deleted file mode 100644 index 1585b2b940..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/get-prefs.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let preferences = try await account.getPrefs() - - print(String(describing: preferences) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/get-session.md b/docs/examples/0.15.x/server-swift/examples/account/get-session.md deleted file mode 100644 index d21b42a702..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/get-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let session = try await account.getSession( - sessionId: "[SESSION_ID]" - ) - - print(String(describing: session) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/get-sessions.md b/docs/examples/0.15.x/server-swift/examples/account/get-sessions.md deleted file mode 100644 index 279657d2da..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/get-sessions.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let sessionList = try await account.getSessions() - - print(String(describing: sessionList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/get.md b/docs/examples/0.15.x/server-swift/examples/account/get.md deleted file mode 100644 index ddd54288e9..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/get.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.get() - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/update-email.md b/docs/examples/0.15.x/server-swift/examples/account/update-email.md deleted file mode 100644 index ac546af4b3..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/update-email.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.updateEmail( - email: "email@example.com", - password: "password" - ) - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/update-name.md b/docs/examples/0.15.x/server-swift/examples/account/update-name.md deleted file mode 100644 index aaaa1c5876..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.updateName( - name: "[NAME]" - ) - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/update-o-auth2tokens.md b/docs/examples/0.15.x/server-swift/examples/account/update-o-auth2tokens.md deleted file mode 100644 index af5c8955cf..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/update-o-auth2tokens.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - let account = Account(client) - account.updateOAuth2Tokens( - sessionId: "[SESSION_ID]" - ) { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let session): - print(String(describing: session) - } - } -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/update-password.md b/docs/examples/0.15.x/server-swift/examples/account/update-password.md deleted file mode 100644 index 223891673b..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.updatePassword( - password: "password" - ) - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/update-prefs.md b/docs/examples/0.15.x/server-swift/examples/account/update-prefs.md deleted file mode 100644 index e0858d4bb0..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.updatePrefs( - prefs: - ) - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/update-recovery.md b/docs/examples/0.15.x/server-swift/examples/account/update-recovery.md deleted file mode 100644 index 2814bf124f..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/update-recovery.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let token = try await account.updateRecovery( - userId: "[USER_ID]", - secret: "[SECRET]", - password: "password", - passwordAgain: "password" - ) - - print(String(describing: token) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/update-session.md b/docs/examples/0.15.x/server-swift/examples/account/update-session.md deleted file mode 100644 index 8ce9c3ce79..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/update-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let session = try await account.updateSession( - sessionId: "[SESSION_ID]" - ) - - print(String(describing: session) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/update-status.md b/docs/examples/0.15.x/server-swift/examples/account/update-status.md deleted file mode 100644 index eb5a0fee27..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/update-status.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.updateStatus() - - print(String(describing: account) -} diff --git a/docs/examples/0.15.x/server-swift/examples/account/update-verification.md b/docs/examples/0.15.x/server-swift/examples/account/update-verification.md deleted file mode 100644 index b8255614e6..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/account/update-verification.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let token = try await account.updateVerification( - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: token) -} diff --git a/docs/examples/0.15.x/server-swift/examples/avatars/get-browser.md b/docs/examples/0.15.x/server-swift/examples/avatars/get-browser.md deleted file mode 100644 index fe5be8cfa4..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/avatars/get-browser.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getBrowser( - code: "aa" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/0.15.x/server-swift/examples/avatars/get-credit-card.md deleted file mode 100644 index ad5296d06c..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getCreditCard( - code: "amex" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/0.15.x/server-swift/examples/avatars/get-favicon.md deleted file mode 100644 index c7cdfa7142..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/avatars/get-favicon.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getFavicon( - url: "https://example.com" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/server-swift/examples/avatars/get-flag.md b/docs/examples/0.15.x/server-swift/examples/avatars/get-flag.md deleted file mode 100644 index 7e8e94b4c5..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/avatars/get-flag.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getFlag( - code: "af" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/server-swift/examples/avatars/get-image.md b/docs/examples/0.15.x/server-swift/examples/avatars/get-image.md deleted file mode 100644 index 63ba881d4b..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/avatars/get-image.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getImage( - url: "https://example.com" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/server-swift/examples/avatars/get-initials.md b/docs/examples/0.15.x/server-swift/examples/avatars/get-initials.md deleted file mode 100644 index e783f5b47d..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/avatars/get-initials.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getInitials() - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/0.15.x/server-swift/examples/avatars/get-q-r.md deleted file mode 100644 index ae8d51c0a3..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/avatars/get-q-r.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getQR( - text: "[TEXT]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/create-boolean-attribute.md b/docs/examples/0.15.x/server-swift/examples/database/create-boolean-attribute.md deleted file mode 100644 index 1a59923305..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/create-boolean-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let attributeBoolean = try await database.createBooleanAttribute( - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeBoolean) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/create-collection.md b/docs/examples/0.15.x/server-swift/examples/database/create-collection.md deleted file mode 100644 index 4c5e2987a5..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/create-collection.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let collection = try await database.createCollection( - collectionId: "[COLLECTION_ID]", - name: "[NAME]", - permission: "document", - read: ["role:all"], - write: ["role:all"] - ) - - print(String(describing: collection) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/create-document.md b/docs/examples/0.15.x/server-swift/examples/database/create-document.md deleted file mode 100644 index c2b4c47759..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/create-document.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let document = try await database.createDocument( - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]", - data: - ) - - print(String(describing: document) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/create-email-attribute.md b/docs/examples/0.15.x/server-swift/examples/database/create-email-attribute.md deleted file mode 100644 index 90ce11c6e4..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/create-email-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let attributeEmail = try await database.createEmailAttribute( - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeEmail) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/create-enum-attribute.md b/docs/examples/0.15.x/server-swift/examples/database/create-enum-attribute.md deleted file mode 100644 index 6595e2b002..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/create-enum-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let attributeEnum = try await database.createEnumAttribute( - collectionId: "[COLLECTION_ID]", - key: "", - elements: [], - required: xfalse - ) - - print(String(describing: attributeEnum) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/create-float-attribute.md b/docs/examples/0.15.x/server-swift/examples/database/create-float-attribute.md deleted file mode 100644 index 573e201648..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/create-float-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let attributeFloat = try await database.createFloatAttribute( - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeFloat) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/create-index.md b/docs/examples/0.15.x/server-swift/examples/database/create-index.md deleted file mode 100644 index 0ee0ceb9a0..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/create-index.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let index = try await database.createIndex( - collectionId: "[COLLECTION_ID]", - key: "", - type: "key", - attributes: [] - ) - - print(String(describing: index) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/create-integer-attribute.md b/docs/examples/0.15.x/server-swift/examples/database/create-integer-attribute.md deleted file mode 100644 index a893203994..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/create-integer-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let attributeInteger = try await database.createIntegerAttribute( - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeInteger) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/create-ip-attribute.md b/docs/examples/0.15.x/server-swift/examples/database/create-ip-attribute.md deleted file mode 100644 index 26b14ab126..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/create-ip-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let attributeIp = try await database.createIpAttribute( - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeIp) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/create-string-attribute.md b/docs/examples/0.15.x/server-swift/examples/database/create-string-attribute.md deleted file mode 100644 index 126415bac0..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/create-string-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let attributeString = try await database.createStringAttribute( - collectionId: "[COLLECTION_ID]", - key: "", - size: 1, - required: xfalse - ) - - print(String(describing: attributeString) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/create-url-attribute.md b/docs/examples/0.15.x/server-swift/examples/database/create-url-attribute.md deleted file mode 100644 index 24d7f668af..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/create-url-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let attributeUrl = try await database.createUrlAttribute( - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeUrl) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/delete-attribute.md b/docs/examples/0.15.x/server-swift/examples/database/delete-attribute.md deleted file mode 100644 index 1202fd4147..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/delete-attribute.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let result = try await database.deleteAttribute( - collectionId: "[COLLECTION_ID]", - key: "" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/delete-collection.md b/docs/examples/0.15.x/server-swift/examples/database/delete-collection.md deleted file mode 100644 index 63c7261758..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/delete-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let result = try await database.deleteCollection( - collectionId: "[COLLECTION_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/delete-document.md b/docs/examples/0.15.x/server-swift/examples/database/delete-document.md deleted file mode 100644 index d481ca5828..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/delete-document.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let result = try await database.deleteDocument( - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/delete-index.md b/docs/examples/0.15.x/server-swift/examples/database/delete-index.md deleted file mode 100644 index 317de6a3df..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/delete-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let result = try await database.deleteIndex( - collectionId: "[COLLECTION_ID]", - key: "" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/get-attribute.md b/docs/examples/0.15.x/server-swift/examples/database/get-attribute.md deleted file mode 100644 index 9bcbf53f61..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/get-attribute.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let result = try await database.getAttribute( - collectionId: "[COLLECTION_ID]", - key: "" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/get-collection.md b/docs/examples/0.15.x/server-swift/examples/database/get-collection.md deleted file mode 100644 index 08206a8241..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/get-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let collection = try await database.getCollection( - collectionId: "[COLLECTION_ID]" - ) - - print(String(describing: collection) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/get-document.md b/docs/examples/0.15.x/server-swift/examples/database/get-document.md deleted file mode 100644 index f10b7da615..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/get-document.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let document = try await database.getDocument( - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) - - print(String(describing: document) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/get-index.md b/docs/examples/0.15.x/server-swift/examples/database/get-index.md deleted file mode 100644 index c7ef827359..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/get-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let index = try await database.getIndex( - collectionId: "[COLLECTION_ID]", - key: "" - ) - - print(String(describing: index) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/list-attributes.md b/docs/examples/0.15.x/server-swift/examples/database/list-attributes.md deleted file mode 100644 index d51bb9577b..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/list-attributes.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let attributeList = try await database.listAttributes( - collectionId: "[COLLECTION_ID]" - ) - - print(String(describing: attributeList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/list-collections.md b/docs/examples/0.15.x/server-swift/examples/database/list-collections.md deleted file mode 100644 index 87dc2386ed..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/list-collections.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let collectionList = try await database.listCollections() - - print(String(describing: collectionList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/list-documents.md b/docs/examples/0.15.x/server-swift/examples/database/list-documents.md deleted file mode 100644 index 27c32f5e27..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/list-documents.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let documentList = try await database.listDocuments( - collectionId: "[COLLECTION_ID]" - ) - - print(String(describing: documentList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/list-indexes.md b/docs/examples/0.15.x/server-swift/examples/database/list-indexes.md deleted file mode 100644 index 6210d6f79c..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let indexList = try await database.listIndexes( - collectionId: "[COLLECTION_ID]" - ) - - print(String(describing: indexList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/update-collection.md b/docs/examples/0.15.x/server-swift/examples/database/update-collection.md deleted file mode 100644 index 817be46374..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/update-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let collection = try await database.updateCollection( - collectionId: "[COLLECTION_ID]", - name: "[NAME]", - permission: "document" - ) - - print(String(describing: collection) -} diff --git a/docs/examples/0.15.x/server-swift/examples/database/update-document.md b/docs/examples/0.15.x/server-swift/examples/database/update-document.md deleted file mode 100644 index 82222ddb20..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/database/update-document.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let database = Database(client) - let document = try await database.updateDocument( - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]", - data: - ) - - print(String(describing: document) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/builds.md b/docs/examples/0.15.x/server-swift/examples/functions/builds.md deleted file mode 100644 index 8906264e3f..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/builds.md +++ /dev/null @@ -1,21 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - let functions = Functions(client) - functions.builds( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]" - ) { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let buildList): - print(String(describing: buildList) - } - } -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/create-deployment.md b/docs/examples/0.15.x/server-swift/examples/functions/create-deployment.md deleted file mode 100644 index 9e580fe807..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/create-deployment.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let deployment = try await functions.createDeployment( - functionId: "[FUNCTION_ID]", - entrypoint: "[ENTRYPOINT]", - code: File(name: "image.jpg", buffer: yourByteBuffer), - activate: xfalse - ) - - print(String(describing: deployment) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/create-execution.md b/docs/examples/0.15.x/server-swift/examples/functions/create-execution.md deleted file mode 100644 index 02dde0c312..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/create-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let execution = try await functions.createExecution( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: execution) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/create-tag.md b/docs/examples/0.15.x/server-swift/examples/functions/create-tag.md deleted file mode 100644 index f98c66a4f2..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/create-tag.md +++ /dev/null @@ -1,22 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - let functions = Functions(client) - functions.createTag( - functionId: "[FUNCTION_ID]", - command: "[COMMAND]", - code: File(name: "image.jpg", buffer: yourByteBuffer) - ) { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let tag): - print(String(describing: tag) - } - } -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/create.md b/docs/examples/0.15.x/server-swift/examples/functions/create.md deleted file mode 100644 index e6775116f3..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/create.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let function = try await functions.create( - functionId: "[FUNCTION_ID]", - name: "[NAME]", - execute: [], - runtime: "node-14.5" - ) - - print(String(describing: function) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/0.15.x/server-swift/examples/functions/delete-deployment.md deleted file mode 100644 index 322c52b7ed..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/delete-deployment.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let result = try await functions.deleteDeployment( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/delete-tag.md b/docs/examples/0.15.x/server-swift/examples/functions/delete-tag.md deleted file mode 100644 index 016bd118c5..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/delete-tag.md +++ /dev/null @@ -1,21 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - let functions = Functions(client) - functions.deleteTag( - functionId: "[FUNCTION_ID]", - tagId: "[TAG_ID]" - ) { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let ): - print(String(describing: ) - } - } -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/delete.md b/docs/examples/0.15.x/server-swift/examples/functions/delete.md deleted file mode 100644 index c5628163da..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let result = try await functions.delete( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/get-build.md b/docs/examples/0.15.x/server-swift/examples/functions/get-build.md deleted file mode 100644 index a585937277..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/get-build.md +++ /dev/null @@ -1,22 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - let functions = Functions(client) - functions.getBuild( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]", - buildId: "[BUILD_ID]" - ) { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let build): - print(String(describing: build) - } - } -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/get-deployment.md b/docs/examples/0.15.x/server-swift/examples/functions/get-deployment.md deleted file mode 100644 index 897d5315d2..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/get-deployment.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let deploymentList = try await functions.getDeployment( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]" - ) - - print(String(describing: deploymentList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/get-execution.md b/docs/examples/0.15.x/server-swift/examples/functions/get-execution.md deleted file mode 100644 index d5bcf092ac..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/get-execution.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let execution = try await functions.getExecution( - functionId: "[FUNCTION_ID]", - executionId: "[EXECUTION_ID]" - ) - - print(String(describing: execution) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/get-tag.md b/docs/examples/0.15.x/server-swift/examples/functions/get-tag.md deleted file mode 100644 index 149736c91e..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/get-tag.md +++ /dev/null @@ -1,21 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - let functions = Functions(client) - functions.getTag( - functionId: "[FUNCTION_ID]", - tagId: "[TAG_ID]" - ) { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let tag): - print(String(describing: tag) - } - } -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/get.md b/docs/examples/0.15.x/server-swift/examples/functions/get.md deleted file mode 100644 index 6675916a47..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/get.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let function = try await functions.get( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: function) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/list-deployments.md b/docs/examples/0.15.x/server-swift/examples/functions/list-deployments.md deleted file mode 100644 index fce719736a..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/list-deployments.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let deploymentList = try await functions.listDeployments( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: deploymentList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/list-executions.md b/docs/examples/0.15.x/server-swift/examples/functions/list-executions.md deleted file mode 100644 index 95d27cbc05..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/list-executions.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let executionList = try await functions.listExecutions( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: executionList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/0.15.x/server-swift/examples/functions/list-runtimes.md deleted file mode 100644 index e87ad2c46c..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/list-runtimes.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let runtimeList = try await functions.listRuntimes() - - print(String(describing: runtimeList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/list-tags.md b/docs/examples/0.15.x/server-swift/examples/functions/list-tags.md deleted file mode 100644 index 419a1bba8c..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/list-tags.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - let functions = Functions(client) - functions.listTags( - functionId: "[FUNCTION_ID]" - ) { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let tagList): - print(String(describing: tagList) - } - } -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/list.md b/docs/examples/0.15.x/server-swift/examples/functions/list.md deleted file mode 100644 index 695350d95a..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/list.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let functionList = try await functions.list() - - print(String(describing: functionList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/retry-build.md b/docs/examples/0.15.x/server-swift/examples/functions/retry-build.md deleted file mode 100644 index ba995313c5..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/retry-build.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let result = try await functions.retryBuild( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]", - buildId: "[BUILD_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/update-deployment.md b/docs/examples/0.15.x/server-swift/examples/functions/update-deployment.md deleted file mode 100644 index 37d8cbb8fd..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/update-deployment.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let function = try await functions.updateDeployment( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]" - ) - - print(String(describing: function) -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/update-tag.md b/docs/examples/0.15.x/server-swift/examples/functions/update-tag.md deleted file mode 100644 index 519f4afa87..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/update-tag.md +++ /dev/null @@ -1,21 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - let functions = Functions(client) - functions.updateTag( - functionId: "[FUNCTION_ID]", - tag: "[TAG]" - ) { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let function): - print(String(describing: function) - } - } -} diff --git a/docs/examples/0.15.x/server-swift/examples/functions/update.md b/docs/examples/0.15.x/server-swift/examples/functions/update.md deleted file mode 100644 index 7a7e5ed6d0..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/functions/update.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let function = try await functions.update( - functionId: "[FUNCTION_ID]", - name: "[NAME]", - execute: [] - ) - - print(String(describing: function) -} diff --git a/docs/examples/0.15.x/server-swift/examples/health/get-antivirus.md b/docs/examples/0.15.x/server-swift/examples/health/get-antivirus.md deleted file mode 100644 index 3eafa2c2f1..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/health/get-antivirus.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthAntivirus = try await health.getAntivirus() - - print(String(describing: healthAntivirus) -} diff --git a/docs/examples/0.15.x/server-swift/examples/health/get-cache.md b/docs/examples/0.15.x/server-swift/examples/health/get-cache.md deleted file mode 100644 index 20831b4d39..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/health/get-cache.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthStatus = try await health.getCache() - - print(String(describing: healthStatus) -} diff --git a/docs/examples/0.15.x/server-swift/examples/health/get-d-b.md b/docs/examples/0.15.x/server-swift/examples/health/get-d-b.md deleted file mode 100644 index 5808c99a73..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/health/get-d-b.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthStatus = try await health.getDB() - - print(String(describing: healthStatus) -} diff --git a/docs/examples/0.15.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/0.15.x/server-swift/examples/health/get-queue-certificates.md deleted file mode 100644 index 123b452f99..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthQueue = try await health.getQueueCertificates() - - print(String(describing: healthQueue) -} diff --git a/docs/examples/0.15.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/0.15.x/server-swift/examples/health/get-queue-functions.md deleted file mode 100644 index c3949a769c..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/health/get-queue-functions.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthQueue = try await health.getQueueFunctions() - - print(String(describing: healthQueue) -} diff --git a/docs/examples/0.15.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/0.15.x/server-swift/examples/health/get-queue-logs.md deleted file mode 100644 index 6a36fa966c..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/health/get-queue-logs.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthQueue = try await health.getQueueLogs() - - print(String(describing: healthQueue) -} diff --git a/docs/examples/0.15.x/server-swift/examples/health/get-queue-usage.md b/docs/examples/0.15.x/server-swift/examples/health/get-queue-usage.md deleted file mode 100644 index c2ab62a31b..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/health/get-queue-usage.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -func main() { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - let health = Health(client) - health.getQueueUsage() { result in - switch result { - case .failure(let error): - print(error.message) - case .success(let healthQueue): - print(String(describing: healthQueue) - } - } -} diff --git a/docs/examples/0.15.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/0.15.x/server-swift/examples/health/get-queue-webhooks.md deleted file mode 100644 index bc6b7bcb14..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthQueue = try await health.getQueueWebhooks() - - print(String(describing: healthQueue) -} diff --git a/docs/examples/0.15.x/server-swift/examples/health/get-storage-local.md b/docs/examples/0.15.x/server-swift/examples/health/get-storage-local.md deleted file mode 100644 index 773d8dd483..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/health/get-storage-local.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthStatus = try await health.getStorageLocal() - - print(String(describing: healthStatus) -} diff --git a/docs/examples/0.15.x/server-swift/examples/health/get-time.md b/docs/examples/0.15.x/server-swift/examples/health/get-time.md deleted file mode 100644 index edbc171ea9..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/health/get-time.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthTime = try await health.getTime() - - print(String(describing: healthTime) -} diff --git a/docs/examples/0.15.x/server-swift/examples/health/get.md b/docs/examples/0.15.x/server-swift/examples/health/get.md deleted file mode 100644 index 770c09aa66..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/health/get.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthStatus = try await health.get() - - print(String(describing: healthStatus) -} diff --git a/docs/examples/0.15.x/server-swift/examples/locale/get-continents.md b/docs/examples/0.15.x/server-swift/examples/locale/get-continents.md deleted file mode 100644 index a7f89e0176..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/locale/get-continents.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let continentList = try await locale.getContinents() - - print(String(describing: continentList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/locale/get-countries-e-u.md b/docs/examples/0.15.x/server-swift/examples/locale/get-countries-e-u.md deleted file mode 100644 index f357bd3990..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let countryList = try await locale.getCountriesEU() - - print(String(describing: countryList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/locale/get-countries-phones.md b/docs/examples/0.15.x/server-swift/examples/locale/get-countries-phones.md deleted file mode 100644 index 052caa1dda..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let phoneList = try await locale.getCountriesPhones() - - print(String(describing: phoneList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/locale/get-countries.md b/docs/examples/0.15.x/server-swift/examples/locale/get-countries.md deleted file mode 100644 index 3e37c4b22b..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/locale/get-countries.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let countryList = try await locale.getCountries() - - print(String(describing: countryList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/locale/get-currencies.md b/docs/examples/0.15.x/server-swift/examples/locale/get-currencies.md deleted file mode 100644 index a548db9b2e..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/locale/get-currencies.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let currencyList = try await locale.getCurrencies() - - print(String(describing: currencyList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/locale/get-languages.md b/docs/examples/0.15.x/server-swift/examples/locale/get-languages.md deleted file mode 100644 index 23d9b44245..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/locale/get-languages.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let languageList = try await locale.getLanguages() - - print(String(describing: languageList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/locale/get.md b/docs/examples/0.15.x/server-swift/examples/locale/get.md deleted file mode 100644 index fd0a9dd1e7..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/locale/get.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let locale = try await locale.get() - - print(String(describing: locale) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/create-bucket.md b/docs/examples/0.15.x/server-swift/examples/storage/create-bucket.md deleted file mode 100644 index d930c56b65..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/create-bucket.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let bucket = try await storage.createBucket( - bucketId: "[BUCKET_ID]", - name: "[NAME]", - permission: "file" - ) - - print(String(describing: bucket) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/create-file.md b/docs/examples/0.15.x/server-swift/examples/storage/create-file.md deleted file mode 100644 index e55bca79a1..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/create-file.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let file = try await storage.createFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]", - file: File(name: "image.jpg", buffer: yourByteBuffer) - ) - - print(String(describing: file) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/0.15.x/server-swift/examples/storage/delete-bucket.md deleted file mode 100644 index 18687fb278..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/delete-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let result = try await storage.deleteBucket( - bucketId: "[BUCKET_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/delete-file.md b/docs/examples/0.15.x/server-swift/examples/storage/delete-file.md deleted file mode 100644 index 305d6e1d81..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/delete-file.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let result = try await storage.deleteFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/get-bucket.md b/docs/examples/0.15.x/server-swift/examples/storage/get-bucket.md deleted file mode 100644 index f04e2db3c9..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/get-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let bucket = try await storage.getBucket( - bucketId: "[BUCKET_ID]" - ) - - print(String(describing: bucket) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/get-file-download.md b/docs/examples/0.15.x/server-swift/examples/storage/get-file-download.md deleted file mode 100644 index 28c427c620..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/get-file-download.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let byteBuffer = try await storage.getFileDownload( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/0.15.x/server-swift/examples/storage/get-file-preview.md deleted file mode 100644 index 20b87191e1..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/get-file-preview.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let byteBuffer = try await storage.getFilePreview( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/get-file-view.md b/docs/examples/0.15.x/server-swift/examples/storage/get-file-view.md deleted file mode 100644 index a17fba0a14..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/get-file-view.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let byteBuffer = try await storage.getFileView( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/get-file.md b/docs/examples/0.15.x/server-swift/examples/storage/get-file.md deleted file mode 100644 index 6b02fcd0ee..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/get-file.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let file = try await storage.getFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: file) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/list-buckets.md b/docs/examples/0.15.x/server-swift/examples/storage/list-buckets.md deleted file mode 100644 index 361ef626b5..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/list-buckets.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let bucketList = try await storage.listBuckets() - - print(String(describing: bucketList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/list-files.md b/docs/examples/0.15.x/server-swift/examples/storage/list-files.md deleted file mode 100644 index 68a6ca40c4..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/list-files.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let fileList = try await storage.listFiles( - bucketId: "[BUCKET_ID]" - ) - - print(String(describing: fileList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/update-bucket.md b/docs/examples/0.15.x/server-swift/examples/storage/update-bucket.md deleted file mode 100644 index 259ac6ad64..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/update-bucket.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let bucket = try await storage.updateBucket( - bucketId: "[BUCKET_ID]", - name: "[NAME]", - permission: "file" - ) - - print(String(describing: bucket) -} diff --git a/docs/examples/0.15.x/server-swift/examples/storage/update-file.md b/docs/examples/0.15.x/server-swift/examples/storage/update-file.md deleted file mode 100644 index 12f8150085..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/storage/update-file.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let file = try await storage.updateFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: file) -} diff --git a/docs/examples/0.15.x/server-swift/examples/teams/create-membership.md b/docs/examples/0.15.x/server-swift/examples/teams/create-membership.md deleted file mode 100644 index a732ec676a..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/teams/create-membership.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let membership = try await teams.createMembership( - teamId: "[TEAM_ID]", - email: "email@example.com", - roles: [], - url: "https://example.com" - ) - - print(String(describing: membership) -} diff --git a/docs/examples/0.15.x/server-swift/examples/teams/create.md b/docs/examples/0.15.x/server-swift/examples/teams/create.md deleted file mode 100644 index 80edd0cadc..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/teams/create.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let team = try await teams.create( - teamId: "[TEAM_ID]", - name: "[NAME]" - ) - - print(String(describing: team) -} diff --git a/docs/examples/0.15.x/server-swift/examples/teams/delete-membership.md b/docs/examples/0.15.x/server-swift/examples/teams/delete-membership.md deleted file mode 100644 index 84f3157550..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/teams/delete-membership.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let result = try await teams.deleteMembership( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/teams/delete.md b/docs/examples/0.15.x/server-swift/examples/teams/delete.md deleted file mode 100644 index d8808a6565..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/teams/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let result = try await teams.delete( - teamId: "[TEAM_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/teams/get-membership.md b/docs/examples/0.15.x/server-swift/examples/teams/get-membership.md deleted file mode 100644 index b85d7dc0de..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/teams/get-membership.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let membershipList = try await teams.getMembership( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]" - ) - - print(String(describing: membershipList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/teams/get-memberships.md b/docs/examples/0.15.x/server-swift/examples/teams/get-memberships.md deleted file mode 100644 index 06ca6761eb..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/teams/get-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let membershipList = try await teams.getMemberships( - teamId: "[TEAM_ID]" - ) - - print(String(describing: membershipList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/teams/get.md b/docs/examples/0.15.x/server-swift/examples/teams/get.md deleted file mode 100644 index d1c4500442..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/teams/get.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let team = try await teams.get( - teamId: "[TEAM_ID]" - ) - - print(String(describing: team) -} diff --git a/docs/examples/0.15.x/server-swift/examples/teams/list.md b/docs/examples/0.15.x/server-swift/examples/teams/list.md deleted file mode 100644 index 3a9fa822ae..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/teams/list.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let teamList = try await teams.list() - - print(String(describing: teamList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/teams/update-membership-roles.md b/docs/examples/0.15.x/server-swift/examples/teams/update-membership-roles.md deleted file mode 100644 index fd0084786a..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let membership = try await teams.updateMembershipRoles( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]", - roles: [] - ) - - print(String(describing: membership) -} diff --git a/docs/examples/0.15.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/0.15.x/server-swift/examples/teams/update-membership-status.md deleted file mode 100644 index 4b6f3eda43..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/teams/update-membership-status.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let teams = Teams(client) - let membership = try await teams.updateMembershipStatus( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]", - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: membership) -} diff --git a/docs/examples/0.15.x/server-swift/examples/teams/update.md b/docs/examples/0.15.x/server-swift/examples/teams/update.md deleted file mode 100644 index 683dfd4e30..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/teams/update.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let team = try await teams.update( - teamId: "[TEAM_ID]", - name: "[NAME]" - ) - - print(String(describing: team) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/create-argon2user.md b/docs/examples/0.15.x/server-swift/examples/users/create-argon2user.md deleted file mode 100644 index f54ebb15ec..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/create-argon2user.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createArgon2User( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/0.15.x/server-swift/examples/users/create-bcrypt-user.md deleted file mode 100644 index 379bff9c85..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createBcryptUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/0.15.x/server-swift/examples/users/create-m-d5user.md deleted file mode 100644 index c1a057ec7b..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/create-m-d5user.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createMD5User( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/0.15.x/server-swift/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 4492272329..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createPHPassUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/create-s-crypt-modified-user.md b/docs/examples/0.15.x/server-swift/examples/users/create-s-crypt-modified-user.md deleted file mode 100644 index 569a14ea5f..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/create-s-crypt-modified-user.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createSCryptModifiedUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password", - passwordSalt: "[PASSWORD_SALT]", - passwordSaltSeparator: "[PASSWORD_SALT_SEPARATOR]", - passwordSignerKey: "[PASSWORD_SIGNER_KEY]" - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/create-s-crypt-user.md b/docs/examples/0.15.x/server-swift/examples/users/create-s-crypt-user.md deleted file mode 100644 index 5834f21940..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/create-s-crypt-user.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createSCryptUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/0.15.x/server-swift/examples/users/create-s-h-a-user.md deleted file mode 100644 index f6b30066d1..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createSHAUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/create.md b/docs/examples/0.15.x/server-swift/examples/users/create.md deleted file mode 100644 index 8aa45d4e3a..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/create.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.create( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/delete-session.md b/docs/examples/0.15.x/server-swift/examples/users/delete-session.md deleted file mode 100644 index 50cbf470d3..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/delete-session.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let result = try await users.deleteSession( - userId: "[USER_ID]", - sessionId: "[SESSION_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/delete-sessions.md b/docs/examples/0.15.x/server-swift/examples/users/delete-sessions.md deleted file mode 100644 index a8b7802577..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let result = try await users.deleteSessions( - userId: "[USER_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/delete.md b/docs/examples/0.15.x/server-swift/examples/users/delete.md deleted file mode 100644 index f970492afa..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let result = try await users.delete( - userId: "[USER_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/get-logs.md b/docs/examples/0.15.x/server-swift/examples/users/get-logs.md deleted file mode 100644 index 62554054ed..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/get-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let logList = try await users.getLogs( - userId: "[USER_ID]" - ) - - print(String(describing: logList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/get-memberships.md b/docs/examples/0.15.x/server-swift/examples/users/get-memberships.md deleted file mode 100644 index b1343c7439..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/get-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let membershipList = try await users.getMemberships( - userId: "[USER_ID]" - ) - - print(String(describing: membershipList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/get-prefs.md b/docs/examples/0.15.x/server-swift/examples/users/get-prefs.md deleted file mode 100644 index d664dbbb0d..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let preferences = try await users.getPrefs( - userId: "[USER_ID]" - ) - - print(String(describing: preferences) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/get-sessions.md b/docs/examples/0.15.x/server-swift/examples/users/get-sessions.md deleted file mode 100644 index dc37960c32..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/get-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let sessionList = try await users.getSessions( - userId: "[USER_ID]" - ) - - print(String(describing: sessionList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/get.md b/docs/examples/0.15.x/server-swift/examples/users/get.md deleted file mode 100644 index dc57a924ba..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/get.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.get( - userId: "[USER_ID]" - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/list.md b/docs/examples/0.15.x/server-swift/examples/users/list.md deleted file mode 100644 index 7ea73d0515..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/list.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let userList = try await users.list() - - print(String(describing: userList) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/update-email.md b/docs/examples/0.15.x/server-swift/examples/users/update-email.md deleted file mode 100644 index 602191c6f0..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/update-email.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.updateEmail( - userId: "[USER_ID]", - email: "email@example.com" - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/update-name.md b/docs/examples/0.15.x/server-swift/examples/users/update-name.md deleted file mode 100644 index 7fa3b543ec..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/update-name.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.updateName( - userId: "[USER_ID]", - name: "[NAME]" - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/update-password.md b/docs/examples/0.15.x/server-swift/examples/users/update-password.md deleted file mode 100644 index 5a3bde40b6..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/update-password.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.updatePassword( - userId: "[USER_ID]", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/update-prefs.md b/docs/examples/0.15.x/server-swift/examples/users/update-prefs.md deleted file mode 100644 index 9fee0fc012..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/update-prefs.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let preferences = try await users.updatePrefs( - userId: "[USER_ID]", - prefs: - ) - - print(String(describing: preferences) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/update-status.md b/docs/examples/0.15.x/server-swift/examples/users/update-status.md deleted file mode 100644 index 28dc7d7844..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/update-status.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.updateStatus( - userId: "[USER_ID]", - status: xfalse - ) - - print(String(describing: user) -} diff --git a/docs/examples/0.15.x/server-swift/examples/users/update-verification.md b/docs/examples/0.15.x/server-swift/examples/users/update-verification.md deleted file mode 100644 index 8c711370e4..0000000000 --- a/docs/examples/0.15.x/server-swift/examples/users/update-verification.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.updateVerification( - userId: "[USER_ID]", - emailVerification: xfalse - ) - - print(String(describing: user) -}